Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 634 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 634 Bytes

Simple Example Project

Simple project demonstrating the use of pydgraph, the official python client for Dgraph.

Running

Start 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.

Install pydgraph

pip install pydgraph

Run the Sample Code

python simple.py

You can explore the source code in the simple.py file. Run docker compose down to tear down the cluster.