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

Uploaded CPython 3.10+Windows x86-64

sqlitegraph-0.1.1-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.1.1-cp310-abi3-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

sqlitegraph-0.1.1-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.1.1.tar.gz.

File metadata

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

File hashes

Hashes for sqlitegraph-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cfb5a63dec010b074fe80f85001dcd8911fc64fc1d2c014ae7a0f237ae256d2
MD5 2c6818fea0e2a2490efe3e1c263e1983
BLAKE2b-256 a7ef739abc0c5c7c1041580df469466c7a21473659a5f9f91a27b83944369570

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sqlitegraph-0.1.1-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.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8655f71f99f7cd18db33a8b340476e49a4f896131a09e7d44abbb72c0c366944
MD5 c58b539c366641de7dc61bfc5730a151
BLAKE2b-256 f1e884695dcd3a6b725cdbf8d1b671b7659e88b2e18a71f4c931940961c48ac4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlitegraph-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28912facedd8c8bb5f86cccdb24320a08f0f8e5acbd5f4f0f8c7028f344975a3
MD5 826ef5f74c1b80f794472a84faa4c024
BLAKE2b-256 882637872ff747cae3c6c26167b51100f077e0e66e189b842169a3ab80e1bda8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlitegraph-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 986d8b3a3bfc008873b79057531db3a32377d4d4aad3752de0360448b7ef5cc5
MD5 1d131370d8c47746c5201ce5fa5c4bc9
BLAKE2b-256 7c230f6422db5f5c20b42d8de01c02c4a84c5d34189231ad3f5c39c713f137ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlitegraph-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c1f93fbbe261b54fd10a5098674462d7ffb3caf6f464e2db6167a969195efa5
MD5 e14c3878a12971be9cf25616530ad376
BLAKE2b-256 c20d658f40820f77c93f3faa5035fe67086fd464635501e3bb88e4f99327185e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sqlitegraph-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ac2518ea2d2818e97a03bf1dad1c0018223e8fa7d9fc4efd2495d2edff178af7
MD5 850eb4cf02c70913daba90d3da873aef
BLAKE2b-256 60500ffda0c0b3f883c5737d819fe2b5ab8a1f351add58852352e2d811d75c63

See more details on using hashes here.

Provenance

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