Skip to main content

Embedded graph database with HNSW vector search — Python bindings to the sqlitegraph Rust crate.

Project description

sqlitegraph

Python bindings to the sqlitegraph embedded graph database. Storage, graph algorithms, and HNSW vector search run in a reviewed Rust core; this package is the Pythonic surface.

Alpha — API subject to change before 1.0.

Install

pip install sqlitegraph

Quick start

from sqlitegraph import Graph

g = Graph.open_in_memory()
alice = g.add_node(kind="User", name="Alice", data={"age": 30})
order = g.add_node(kind="Order", name="Order-123")
g.add_edge(alice, order, "placed")

print(g.neighbors(alice))

Examples

The examples/ directory contains runnable scripts:

Example What it shows
01_basic_crud.py Nodes, edges, update, delete, query by kind/pattern, degrees
02_graph_algorithms.py BFS, k-hop, shortest path, PageRank, Louvain communities, connected components
03_vector_search.py HNSW index creation, insert, search, bulk insert, index listing
04_social_network.py Realistic network: influencers (PageRank), communities, connection paths, mutual follows
05_file_backed.py Persistent Graph.open(path), checkpoint, reopen, cleanup

Run any example from the repo root:

cd sqlitegraph-py
source .venv/bin/activate
python examples/01_basic_crud.py

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

sqlitegraph-0.3.0.tar.gz (954.6 kB view details)

Uploaded Source

Built Distributions

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

sqlitegraph-0.3.0-cp310-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

sqlitegraph-0.3.0-cp310-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

sqlitegraph-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file sqlitegraph-0.3.0.tar.gz.

File metadata

  • Download URL: sqlitegraph-0.3.0.tar.gz
  • Upload date:
  • Size: 954.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sqlitegraph-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ff0da3095e6cb20755cca1af16e7ef31448fb26ab7361dac029da486333eefde
MD5 0228b01e3e7bb5fd7e04ae6965178a98
BLAKE2b-256 4b87b9bde7c287e36dbb6ee0a4af4451a8a4f035a465ae86fd733c6ac903e190

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0.tar.gz:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlitegraph-0.3.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: sqlitegraph-0.3.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sqlitegraph-0.3.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 21cc6ddefad486c153232675f6d334d516336468d486c1dfeaccf61982f03a50
MD5 defa49a371535825b71acba28f25f345
BLAKE2b-256 47a63ea397adab5a788d381c8b3f73bf28fdeb108b21a5c1332614d2cc66a840

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0-cp310-abi3-win_amd64.whl:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f5803ffdd8fd0c3929640bac6b040f32ebcc1195a34a148f7de20f79d50d968
MD5 fc8eec63fee2c3f454ea5594ab758b5a
BLAKE2b-256 3d43f7a804dce63436711d8aadb54ed9555b65bc4ca13fd17204d6eef72abe5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4270ec5c7c5273946e08437b04e334e89c1c9f8467584cd4b77f4059b7e6f74
MD5 26c5b01ae94db66e55394a7551b4b08a
BLAKE2b-256 f4cf0bdd2285bb51aeb53fb8cf6ddbe6f0a1d9eb2b9c50acc86eba5c3f35e863

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlitegraph-0.3.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46cba1bfa6ed684f36ec2885ae08e543ae6c3fbf966543aad7520b736d49a9ff
MD5 c081612c9b4dd25079428a2b51d65e77
BLAKE2b-256 75d270e1a6847fb6f8a34016a31df6e30bba0ee9d3f2ad399c37a34a1123b1b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqlitegraph-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f1494b199e0346147950603d26f3b59a8d59b57b91a7cd5e6a663fc40933471d
MD5 aa0eadbf070200d359110523f8d9562d
BLAKE2b-256 a8b19e4756cf5c649681d1d704a08dafd45bd7d63932f5dd420baa121cf10b76

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on oldnordic/sqlitegraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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