Skip to main content

High-performance multi-model database — KV, Graph, Relational, Vector

Project description

aresadb

Python bindings for AresaDB — a high-performance multi-model database engine in Rust.

Install

pip install aresadb
# or
uv add aresadb

Quick Start

from aresadb_python import Database

# Create a database
db = Database.create("./mydata", "demo")

# Insert data
user = db.insert("user", '{"name": "Alice", "age": 30}')
print(user.id, user.properties)

# Or use a dict directly
user2 = db.insert_dict("user", {"name": "Bob", "age": 25})

# Query with SQL
result = db.query("SELECT * FROM user WHERE age > 20")
for row in result.rows:
    print(dict(zip(result.columns, row)))

# Get by type
users = db.get_by_type("user")

# Get by ID
node = db.get(user.id)

# Delete
db.delete(user.id)

# Database status
status = db.status()
print(f"Nodes: {status.node_count}, Edges: {status.edge_count}")

Vector Search

# Insert with embedding
doc = db.insert_with_embedding(
    "document",
    '{"title": "ML Intro", "content": "Machine learning is..."}',
    "embedding",
    [0.9, 0.1, 0.0, 0.0]
)

# Similarity search
results = db.similarity_search(
    query_vector=[1.0, 0.0, 0.0, 0.0],
    node_type="document",
    field="embedding",
    k=10,
    metric="cosine"  # cosine, euclidean, dot, manhattan
)
for r in results:
    print(f"Node: {r.node_id}, Score: {r.score:.4f}")

Graph Edges

user = db.insert("user", '{"name": "Alice"}')
order = db.insert("order", '{"amount": 99.99}')

edge_id = db.create_edge(user.id, order.id, "placed")

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 Distribution

aresadb-0.1.3.tar.gz (192.9 kB view details)

Uploaded Source

Built Distributions

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

aresadb-0.1.3-cp313-cp313-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

aresadb-0.1.3-cp313-cp313-macosx_10_12_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

aresadb-0.1.3-cp312-cp312-manylinux_2_38_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ x86-64

aresadb-0.1.3-cp312-cp312-manylinux_2_38_aarch64.whl (7.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ ARM64

aresadb-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

aresadb-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

aresadb-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

aresadb-0.1.3-cp311-cp311-macosx_10_12_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

aresadb-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

aresadb-0.1.3-cp310-cp310-macosx_10_12_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

aresadb-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

aresadb-0.1.3-cp39-cp39-macosx_10_12_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file aresadb-0.1.3.tar.gz.

File metadata

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

File hashes

Hashes for aresadb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 04f9e06fda8bdac6e84767aeb9b36b6b942dccebb4baf3835ea9464655e6e3f7
MD5 35e046954d41fdb477053cd00f999339
BLAKE2b-256 6fb46598618dc73c871945d695209b19e1fd402886e43fed0bc7a50dbf8ba21e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3.tar.gz:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f21c35047ecb51537c219a8c699dd12f1d7e9dd8e8feff936f6eecde16479632
MD5 8fc50be68ab2122c5c42643bd196a1bc
BLAKE2b-256 03b9574027d014beb1e9c6ca5ee261bf53681de713235bfaba49992589cc2e7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fc956fc4ee49db6094c9462ed0fea856eac043b821a6e7431e0f7fd613ec33bf
MD5 bf8a94f991757d64c3e524229cb3056d
BLAKE2b-256 df31129ede781070bf9fdfd2373f791e26f0c5140c33292cc07aa4f1fa8d5280

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 d7dfcebbd26347b25955473b4221efb46a8383433cda74cd26f6babc24534f3d
MD5 846412dcc3a651fd7bdc144658e24d77
BLAKE2b-256 d707d81f867479a39836b63ef83730687b4bf4d3390447ecca40862a07865379

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp312-cp312-manylinux_2_38_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp312-cp312-manylinux_2_38_aarch64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp312-cp312-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 9fc40001927d8f9c8ed157f3bbc06e0e5da743b630b592cb7330be494bfd93a8
MD5 2fb18e4e8c64b8c3bbb6a391cbfde9da
BLAKE2b-256 7d496af647a081a99902243389755e7e3eb3d998821841cb4e27f5b01a697ee0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp312-cp312-manylinux_2_38_aarch64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e150692b52ea4e640d35632aad993a3db893ddc4421d337e384a356fdfcb1f76
MD5 020461db06466f36e9606b0587dd7668
BLAKE2b-256 617a549c1ad32ec3d71c475be2affcf681fdba3772a2226233dddb556ec70d53

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 be07a7edd33a1966ca6a29162df821985be0643e6ff0a37f14af27f9d2dab82b
MD5 3ed0234779578bbdb761085ac4c32bad
BLAKE2b-256 05f332218cdca4e8a75bf313ff7bbe388c0a5396ce96f522c43178b004e85742

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7579cd8a2df0c48364b162f7e40b4fab2b1144c0ed8b5a5cb320a987986580b4
MD5 01f13e80beb508d7ce153968db7167e1
BLAKE2b-256 76150c3cce50c56145ad371cf9372ae05ad86d093ce46968f22307560ab0392d

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 80e88ff279a2b398c9d19842dcfa38047020b0a091c6de8789d8f2ace635c5a4
MD5 5da0f606fbe43790533880ce11d78391
BLAKE2b-256 8da4e02e50441c2ae65ca2af74f49f29647bdf6d9844f7e3d833444fe2ce7f27

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a73d467d159e8710321558abee931c37b10656ae797fdf23afbda78f6d110867
MD5 0ea753b1d9dc05d07bca15d1f53bd1fb
BLAKE2b-256 1aacd56c982593112f74ca36c5604c1de013fae9b835a37c88fc122867610fc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 acbe711ef894e9ef7868a175d5731a2d0b69cf3ff3fd9b042dca109c48fdc180
MD5 2643551250c95e3d88f74c22a77aaa29
BLAKE2b-256 03454ed095a3ef2695dbc31b3ceaa5cf54325b91e7e2ea4cf7d5774bdd64c522

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d213df33c797ca26187d5ba09ba5b17686711a3af1a6f9757f659ff298a04c3
MD5 fd0fb0c92c15a9fa041cf3f6e0546ab1
BLAKE2b-256 95bc75fd8c7ff5c7d58c17402ce8afbb00c6bb15bbfca85bb73c4e735ff21a61

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: release.yml on yoreai/aresadb

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

File details

Details for the file aresadb-0.1.3-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for aresadb-0.1.3-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 922e7eae163341f683a031de510f384c59e510600a85824d328f30040cb8f89f
MD5 37615542f4d5709d144a58fa72cb8aa7
BLAKE2b-256 ee428fab470f67221406414ab429b7d4278eb2a6193aa4d504c64eae611011c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for aresadb-0.1.3-cp39-cp39-macosx_10_12_x86_64.whl:

Publisher: release.yml on yoreai/aresadb

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