Python Client for Cayley
This is a work in progress official Python client for the next version of Cayley.
import cayley
client = cayley.Client()
for node in client.query(cayley.path.vertex().limit(10)):
print(node)
- If not installed, install
poetry
globally withpip3 install poetry
In project's directory:
- Install dependencies with
poetry install
The client uses the LinkedQL OWL schema file to generate the code for the client.
- Copy
schema.json
for generation - Test with
poetry run python test.py