A high-performance graph database with ACID transactions
Project description
Sombra - Python Bindings
High-performance graph database for Python, powered by Rust.
Note: This is alpha software under active development. APIs may change between minor versions.
Installation
pip install sombra
Features
- Property Graph Model: Nodes, edges, and flexible properties
- ACID Transactions: Full transactional support with rollback
- Native Performance: Rust implementation with PyO3 bindings
- Type Hints: Full type annotations and IDE support
- Cross-Platform: Pre-built wheels for Linux, macOS, and Windows
Quick Start
from sombra import GraphDB
db = GraphDB("my_graph.db")
user = db.add_node()
db.set_node_label(user, "User")
db.set_node_property(user, "name", "Alice")
post = db.add_node()
db.set_node_label(post, "Post")
db.add_edge(user, post, "AUTHORED")
neighbors = db.get_neighbors(user)
print(f"User {user} authored {len(neighbors)} posts")
Transactions
from sombra import GraphDB
db = GraphDB("my_graph.db")
tx = db.begin_transaction()
try:
user = tx.add_node()
post = tx.add_node()
tx.add_edge(user, post, "AUTHORED")
tx.commit()
except Exception as e:
tx.rollback()
raise
Documentation
Building from Source
pip install maturin
maturin develop
pytest
Repository
License
MIT
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 Distributions
Built Distributions
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 sombra-0.3.7-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: sombra-0.3.7-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 465.4 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ff4d5b6efad1549291b19caa30982bb73bdec74a69f6ee2f4c012c66d73b87
|
|
| MD5 |
eff806a1d799ced11e92a060377ed845
|
|
| BLAKE2b-256 |
7047a30b61f654ea2c8c9e7e71fedcabf4ea49a0fe899e5b26592358e8a5b72c
|
File details
Details for the file sombra-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: sombra-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 696.8 kB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf894aaf88ac135d003f540f0c25bd75ae49d41287e4499ba72ebbf296ce00c8
|
|
| MD5 |
64d7691828213eca04595510538e835b
|
|
| BLAKE2b-256 |
20a074f8ef32ba4a7dc8bb946a82646a7c7162a9f84d6a55412b357abb6fa701
|
File details
Details for the file sombra-0.3.7-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: sombra-0.3.7-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 581.0 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4e02884f29e78c1f82d4a7920c95297ceb44107794d83bb4aa4128eb337655
|
|
| MD5 |
f5a61ce92af8e3fb8d1685fe8b33df20
|
|
| BLAKE2b-256 |
aebf626dc8018b1fc8f6d18c511e225b6eac6e4b9d32b91251697d10db902c32
|
File details
Details for the file sombra-0.3.7-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: sombra-0.3.7-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 466.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3ff2c958782c3fadae08be6bd0dbd18f1c846aab924be77fde4c5d52cbf4eb9
|
|
| MD5 |
35ad10f4860bd5eb92b669e1d51b2cf3
|
|
| BLAKE2b-256 |
5d410458e7e23ea660eb83e514a9862edeec9b253a830dd9ee6609f3c96638bd
|
File details
Details for the file sombra-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: sombra-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 698.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c723670f94598e5a5c3c66e83cbd4c71f846029131338d3bb8d10d3e9dca29e4
|
|
| MD5 |
607232a8be97152473e96c5ca0fa5a31
|
|
| BLAKE2b-256 |
62819cbce96dd39c416d97f87b02be8d14e68b47dcb3188f343e002c62892016
|
File details
Details for the file sombra-0.3.7-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: sombra-0.3.7-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 581.3 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ce9c3c3296ea891b00e738fde8f65129cb32deb28a1f3e4c2dc1f08b04e02e0
|
|
| MD5 |
461718ba80ff3f618a2c48edf8a1131a
|
|
| BLAKE2b-256 |
dcfc41ff2b16f9a0ff892728266234d4654b96f22c321992642b30f1c2f3f7f8
|
File details
Details for the file sombra-0.3.7-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: sombra-0.3.7-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 461.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faecf553063a7858792ab6d673929299340f722bb26a56555017de5f9a3f1ec2
|
|
| MD5 |
13e91f7220e6be34876044822cd3ee76
|
|
| BLAKE2b-256 |
a1adf436c460dbb8f91dfa45f9aeed405e9436003258a4a38748530f06efff6c
|
File details
Details for the file sombra-0.3.7-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: sombra-0.3.7-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 690.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89c3ebc7594374aeb9a8a86efcd49fdb9138841a526d2d22424dec5096f36362
|
|
| MD5 |
eda796196f65a23d076b0ed7c38d9949
|
|
| BLAKE2b-256 |
d524cd312afe854c985253a2e6faa171bf282fb29dc9220b01ac03e06f723c77
|
File details
Details for the file sombra-0.3.7-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: sombra-0.3.7-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 578.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14349ba3ab1495f7b7bf54bc0fe68eee0d2e4c418071fa2545a8a8913658be11
|
|
| MD5 |
da7400a46d564c5530b636f083f0e947
|
|
| BLAKE2b-256 |
3212f6e294fbae945f2eb9f994d1669d1d8a4a884267718387595fc1c03c747c
|