I never saw anyone using this with Dgraph. But it should be simple. Just use the Py Client or the Raw HTTP calls.