The AI-native database client — graph memory + vector search + real-time sync in 5.3 MB
Project description
DriftDB Python Client
The AI-native database client. Graph memory + vector search + real-time sync in 5.3 MB.
pip install driftdb
Quick Start
from driftdb import DriftDB
db = DriftDB("http://localhost:9211", token="your-token")
# Create nodes
db.create_node(labels=["User"], properties={"name": "Amrit", "age": 25})
# Query with DriftQL
result = db.query('FIND (u:User) RETURN u.name, u.age')
# AI Memory — one line to give your LLM a brain
db.remember("User prefers dark mode")
db.remember("Meeting at 3pm tomorrow", labels=["Event"])
# Recall via vector similarity
db.recall(vector=[0.1, 0.5, 0.9], limit=5)
# Vector similarity search
db.similar([0.1, 0.5, 0.9, 0.3], threshold=0.8, limit=10)
# Statistics
db.stats()
API
| Method | Description |
|---|---|
DriftDB(url, token) |
Connect to DriftDB |
db.query(driftql) |
Execute DriftQL query |
db.create_node(labels, properties) |
Create a node |
db.get_node(id) |
Get node by ID |
db.list_nodes() |
List all nodes |
db.delete_node(id) |
Soft-delete node |
db.find(label, where_clause, returns) |
Find by label |
db.create_edge(src, tgt, type, props) |
Create edge |
db.remember(text, labels, vector) |
Store AI memory |
db.recall(text, vector, limit) |
Recall memories |
db.similar(vector, threshold, limit) |
Vector similarity |
db.backup(directory, password) |
Backup database |
db.health() / db.is_healthy() |
Health check |
db.stats() |
Database stats |
Requirements
- Python 3.8+
- A running DriftDB server (
driftdb --serve --rest)
License
SSPL-1.0 (same as MongoDB)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file driftdb_ai-0.1.0.tar.gz.
File metadata
- Download URL: driftdb_ai-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
614100c43dea5e7fbd404757676c4bb246710d43b1c7d0123b9049e194ecaf7e
|
|
| MD5 |
f59b7417d7ab2a9dda3da08a34d02a99
|
|
| BLAKE2b-256 |
b339f4f4671f4a7c62f58c4759f1a9861dea2fd89765220f850a25fd2ef7f234
|
Provenance
The following attestation bundles were made for driftdb_ai-0.1.0.tar.gz:
Publisher:
workflow.yml on AmritRai1234/Driftdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
driftdb_ai-0.1.0.tar.gz -
Subject digest:
614100c43dea5e7fbd404757676c4bb246710d43b1c7d0123b9049e194ecaf7e - Sigstore transparency entry: 1109344053
- Sigstore integration time:
-
Permalink:
AmritRai1234/Driftdb@fc300dd8cb95af7b6c47ba35cbdd64dc41e2d5d8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AmritRai1234
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@fc300dd8cb95af7b6c47ba35cbdd64dc41e2d5d8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file driftdb_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: driftdb_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8acd97e111bd26ff002b6f3ce75826e083993d4b7ddcdabe00d2fc62a144a10c
|
|
| MD5 |
12550acb312cb0f7195e4d8beaa8988a
|
|
| BLAKE2b-256 |
b6c0626c60a97a6345a0789b289b1090a30bd075174787b94a359ef79eafe1d1
|
Provenance
The following attestation bundles were made for driftdb_ai-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on AmritRai1234/Driftdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
driftdb_ai-0.1.0-py3-none-any.whl -
Subject digest:
8acd97e111bd26ff002b6f3ce75826e083993d4b7ddcdabe00d2fc62a144a10c - Sigstore transparency entry: 1109344056
- Sigstore integration time:
-
Permalink:
AmritRai1234/Driftdb@fc300dd8cb95af7b6c47ba35cbdd64dc41e2d5d8 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/AmritRai1234
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@fc300dd8cb95af7b6c47ba35cbdd64dc41e2d5d8 -
Trigger Event:
release
-
Statement type: