Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 630 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 630 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.