Skip to main content

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

GitHub

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sombra-0.3.5-cp313-cp313-win_amd64.whl (419.2 kB view details)

Uploaded CPython 3.13Windows x86-64

sombra-0.3.5-cp313-cp313-manylinux_2_34_x86_64.whl (651.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

sombra-0.3.5-cp313-cp313-macosx_11_0_arm64.whl (534.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

sombra-0.3.5-cp312-cp312-win_amd64.whl (419.6 kB view details)

Uploaded CPython 3.12Windows x86-64

sombra-0.3.5-cp312-cp312-manylinux_2_34_x86_64.whl (652.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

sombra-0.3.5-cp312-cp312-macosx_11_0_arm64.whl (535.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

sombra-0.3.5-cp311-cp311-win_amd64.whl (415.6 kB view details)

Uploaded CPython 3.11Windows x86-64

sombra-0.3.5-cp311-cp311-manylinux_2_34_x86_64.whl (646.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

sombra-0.3.5-cp311-cp311-macosx_11_0_arm64.whl (531.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file sombra-0.3.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: sombra-0.3.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 419.2 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

Hashes for sombra-0.3.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4b31523cf71c99430fc5b60f94298bc846766f841d94a343915ed1f1654d1f56
MD5 3f775c7d3ca08b9d505a4efa7c82c1b2
BLAKE2b-256 27029898db60e19688daa299d4e92a6b6c09e98f393eb6bd911543fbb6d1b126

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f6362376ebb9dd8a09d28418bb8e902857a01268c2963ea9645e8f724dc0c472
MD5 fd813325cb62c380e968749cb517fd3f
BLAKE2b-256 b6cf4afaa71e8599accaf75f90b0a3031b6f23556da851eda75430d6db03cd9d

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2da39c4efe4f9c430acf8d480b4ef98e153b76b6a19e072cf89df37b6e68736
MD5 91796898c96f861c6c1c4e284c003c08
BLAKE2b-256 0bbb6b148d4112a02ae98037459a1d8629f3248632284d8b3a793a3bddecc724

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: sombra-0.3.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 419.6 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

Hashes for sombra-0.3.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bf631ec6fa2f4805e51a5ad05e58b74ce39353a1af4cf3e7fc4e5979f2375f70
MD5 317946c8c3a235375cee172cdde55884
BLAKE2b-256 4e4ec6490c2b7583d354db7f3703c624e9c93a2bffc62fd326f543ee7ee7cf68

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5fd2a71feab8b16018fead7edc7cf17908735dfddaad19da4f15a80bf2efe26a
MD5 a49016388416ea12a89995175e3603bd
BLAKE2b-256 79a677cfe21190d69c7bdaf7449b4b499fa646ba5ecd05ffa8a808e7f253f956

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54d1101b7b83be1594cb1b76cc505220227d811156eaab734e06b23fd2e65c0a
MD5 ba0250b48f9a6a6ce7dd7ca96cc9be6c
BLAKE2b-256 bcdd12e1b658a1696cf50ee8c8dc6cb8ddf1ddafdaa9e7055744687ff8a9872c

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: sombra-0.3.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 415.6 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

Hashes for sombra-0.3.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a8db59f837712f41a01d0bd57c9f8eb98d2c1a7c7416b99bb39bb435c6667aa9
MD5 2a2c213bb12a6e8b030095d344b939ed
BLAKE2b-256 c42c0439a701ecf8dae8b904e07b2057196d7a7728e2329932d9f12e449a886f

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d63dbeea995ba587b831d62a57247e640ccff1d0ab53a95d710c85710a34d3b9
MD5 0b6c8d0ce2999f6e35977117d20795e3
BLAKE2b-256 ea3e6d71df9305a0ae399eef54659c50d5db9e9bb5449a1cb80a857c8ddecee6

See more details on using hashes here.

File details

Details for the file sombra-0.3.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sombra-0.3.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df31b34671c383b704862e3b7f24488ca85759a0b265ef039d36661e0d44893a
MD5 bc92867fbc52d6cfb6131ba06435cd06
BLAKE2b-256 75c65ffded7316b23fa03233ea399184ce7f742e6efcfdfab2510bb00559bc52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page