β‘οΈ QuickStart: TuringDB Python SDK
This guide walks you through the essentials of getting started with theturingdb
Python SDK: installing the SDK, connecting to your cloud instance, creating your first graph, and running Cypher queries.
π 1. Install the SDK
Option A: Using pip
Option B: Using uv
(modern package manager)
Requires an initialized Python project
π 2. Connect to Your TuringDB Instance
To interact with TuringDB, youβll need:- β Your Instance ID
- π Your API Token
𧬠3. Create a Graph:
Create a graph:π§± 4. Create Nodes & Edges
First of all, create a new Change on the graphCREATE
queries to add data:
β All created entities must have at least one label (:Label)Once youβre ready, commit and submit your changes
π 5. Query the Graph
Retrieve data using CypherMATCH
queries.
Results are returned as a pandas DataFrame for easy inspection:
Approximate string search
π¦ 6. Version Control & Snapshots
TuringDB supports versioned graphs and snapshot isolation.Create a new change (branch):
Query a specific commit:
Go back to main branch:
π§ͺ Example: Full Session
π Whatβs Next?
- π Learn the Query Language
- π Explore Versioning & Changes
- π€ Try AI Workflows