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.2.0.tar.gz (950.7 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.2.0-cp310-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

sqlitegraph-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl (1.6 MB view details)

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

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

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

sqlitegraph-0.2.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.2.0.tar.gz.

File metadata

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

File hashes

Hashes for sqlitegraph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2ee46f2c7f637659c0307a66e5118daeaac81da302d7ed02f42747f77247bda
MD5 e8ab4b25d70567ad6cf379c5469aa08f
BLAKE2b-256 f7a2afab2f8604c42f3324907d113c78c3a519e8c4f92d28a46f4eb7f0166ab1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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.2.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: sqlitegraph-0.2.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.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6018a30f44644af3824dcce63a241831d979030f43f695696dd3b78a25c4711b
MD5 72fb10e934c5321848c42393ae621aa5
BLAKE2b-256 edb58f212cbffd1b82969b750957dd162a18472e8afdea5fba4666cdfe03b16d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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.2.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9b16f5f88f6ee80136ea478b1d47bba1cb437407a6b62643017b79d12abd22b
MD5 80cafccad736b4ef4da3b84e3a1b0274
BLAKE2b-256 98ef5c8bb18abaabf8f9142b6e1331d70b58157d94369123a244732efd119fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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.2.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 368b6a5ee6945febda4bddec3e193581c4998912e35cd217bb7cbe509dc0007b
MD5 0ed5b724325c928a86d6101e69d40fd7
BLAKE2b-256 bce56152e7f0b0cb2c06d2ecf76acf26bfaff6ea73bda04cd31619d7fcf903f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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.2.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38132c3c0286417301c2a88cffe57ede0d7afa4d63324c0044ae4f317485f2f4
MD5 29e11a8727c66fb792e56aca1d0f6667
BLAKE2b-256 528392d0eddf9e2c1a2cc49839e953273dd577157f05e697ba469b03f25b15ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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.2.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sqlitegraph-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d8581df9b901dbce8084191c69d07ead7b2e77d46916cc676171ea37b0131f24
MD5 70c7858595df444b12af4420dfd02904
BLAKE2b-256 a7e1770deef604abec7fbe862e0da5659dd1552cf121ceb8a3d1ebf4bffb9d5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqlitegraph-0.2.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