Simple project demonstrating the use of pydgraph, the official python client for Dgraph.
Start by spinning up a Dgraph cluster locally. Run docker compose up
. Note that the security flag
uses a blanket whitelist. This is for convenience when testing locally. Do not use this in a
production environment.
pip install pydgraph
python simple.py
You can explore the source code in the simple.py
file. Run docker compose down
to tear down the
cluster.