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.6-cp313-cp313-win_amd64.whl (423.0 kB view details)

Uploaded CPython 3.13Windows x86-64

sombra-0.3.6-cp313-cp313-manylinux_2_34_x86_64.whl (654.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

sombra-0.3.6-cp313-cp313-macosx_11_0_arm64.whl (538.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

sombra-0.3.6-cp312-cp312-win_amd64.whl (423.3 kB view details)

Uploaded CPython 3.12Windows x86-64

sombra-0.3.6-cp312-cp312-manylinux_2_34_x86_64.whl (655.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

sombra-0.3.6-cp312-cp312-macosx_11_0_arm64.whl (539.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

sombra-0.3.6-cp311-cp311-win_amd64.whl (419.6 kB view details)

Uploaded CPython 3.11Windows x86-64

sombra-0.3.6-cp311-cp311-manylinux_2_34_x86_64.whl (649.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

sombra-0.3.6-cp311-cp311-macosx_11_0_arm64.whl (535.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: sombra-0.3.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 423.0 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.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6c3c3109c7426320d2089fa8e7ff2766b6897c0252850f185ea82c10407fa7d1
MD5 b41e59479bc3cff2986afeccf9d7db2b
BLAKE2b-256 10d563c7b1a36dfacad58355d338e6712c943a1393f3905e4f8e558d266a3776

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 24a50c9e980a7f67b354e8c0d490b72bb80df89b08538b47bee5d81911bb81a7
MD5 d42db4ce59a6ef0953c7feb5e89b6976
BLAKE2b-256 40de0d585add33f091b425749da2fa2c86c4af831e9648c2c01d6a37bb4e817f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60f1feb2e9ec59c64a7d03723c1af5122f238e57aa29087bd3a4379ac6348035
MD5 b5e392a4fa37e9f29e20c639d4302207
BLAKE2b-256 25eea4231b9fb4577661d8a839a9bca9f4fe6150771842af197a73366b8e5dd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sombra-0.3.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 423.3 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da444e55d53728fb7479090c617ad5f56eeb5cd87dbd79b657694047402dbf8a
MD5 fb4d5b9dc81d6af20623c7506e7f7116
BLAKE2b-256 c822dfdf862825f822382b59f71982e2b8630564069ea0f0c0919fb4f2d16902

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 32bc00913d6612003b6a20df77366c31c64c8a81ff5d9c9055cdff5776b325bc
MD5 10834f8ae61828d84bd706d4a7c17b3f
BLAKE2b-256 56856bc20a1f2003608c1edd52870d36c4ca66406a8b894f3e40d1a02967c1d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb13cc4edbbbeda7ccfc5df38bed44d7431046afb09219ea595fef3c48908379
MD5 fdc374f13355ec46589b9d828a219cd9
BLAKE2b-256 c25763b8ca36046c7650650a868c9f1571bece4e00e0d5bd82434832c03a7ef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sombra-0.3.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 419.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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 213288d6ede1348f846a9cf08377a2ade55b36833f99b71953340fc09e593dad
MD5 e7a740316b7368cd317c260b5d3b4014
BLAKE2b-256 09fafcbf8d4265e9877bfece7c36af99fe0a19f0faf1b0b83288423b8268a076

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cdd1f01ceb73a37c6370550a3718885f0c85993fafb693e6fd06a36ecef0308a
MD5 285535b4be1363e24f545a100ea2257f
BLAKE2b-256 e12f787be0c5acfaa5cfa6c15a14f4d52e864d75e771fd047709b1d7f9313a08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sombra-0.3.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fcdf8a5d9b3b61ddaf105640e69831893288d8a4bcbff30395754056ad7786c
MD5 493c3bee15fb7d26fda8fa653e65efcb
BLAKE2b-256 c2d8ec0226b39b08cf111b804fe721fa59af47b9352ab291207a835cf2713043

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