Official Python HTTP client for Traverse — Truespar's in-memory graph database. Cypher queries, schema introspection, CSV import, database management.
Project description
traverse-http
Official Python HTTP client for Traverse — Truespar's in-memory graph database.
- Execute Cypher queries with parameterized values
- Database management (create, drop, rename, load, unload)
- Schema introspection (labels, types, properties, indexes, constraints)
- CSV and Cypher import with async task polling
- File management (upload, download, delete
.tvdbfiles) - User and alias management
- Typed response models with dataclass return types
- Python 3.10+, MIT licensed
Installation
pip install traverse-http
Quick Start
from traverse_http import TraverseHttpClient
client = TraverseHttpClient("http://localhost:7691", api_key="tvs_your_key")
# Execute a query
result = client.query("MATCH (n:Person) RETURN n.name, n.age LIMIT 10")
for row in result.rows:
print(row)
# List databases
databases = client.list_databases()
for db in databases:
print(f"{db.name}: {db.node_count} nodes, {db.edge_count} edges")
# Get schema
schema = client.schema()
print(schema.labels)
Database Management
client.create_database("mydb")
client.rename_database("mydb", "production")
client.drop_database("production") # requires --allow-drop-database on server
CSV Import
result = client.import_csv(
file_path="people.csv",
label="Person",
database="mydb",
)
print(f"Imported {result.nodes_created} nodes")
Documentation
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
traverse_http-0.6.7.tar.gz
(13.4 kB
view details)
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 traverse_http-0.6.7.tar.gz.
File metadata
- Download URL: traverse_http-0.6.7.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee594120827c7af202d473c5a3644d37fcbd0229efae52e5d84fcf121d1aef2f
|
|
| MD5 |
9f98c1750e50e5c9c67f899c44f83ad1
|
|
| BLAKE2b-256 |
a58a64a89c25107729614aee3d18b459b3aeeae5896f3e97c75db5b8de25b5e6
|
File details
Details for the file traverse_http-0.6.7-py3-none-any.whl.
File metadata
- Download URL: traverse_http-0.6.7-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e99016b070f641e6d875c41c23b4453fddb7c89c1e8aabb83153edf18d4f3726
|
|
| MD5 |
3968cd075c2069559e014790988ca28a
|
|
| BLAKE2b-256 |
f271ff457c9843a29a95c1a576de4d58b419ae07200d3cee8e97ab89a8927852
|