⚡️ 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

