Skip to main content

Kōji - Hybrid SQL + Recursive + Vector Database

Project description

Kōji Python Bindings

Python bindings for Kōji, the hybrid SQL + Recursive + Vector database.

Installation

pip install koji-db

Quick Start

import pyarrow as pa
import koji

# Create in-memory database
db = koji.open_memory()

# Create table with initial data (schema is inferred from the RecordBatch)
data = pa.table({"id": [1, 2], "name": ["Alice", "Bob"]})
db.create_table_from_batch("users", data)

# Insert additional data
more = pa.table({"id": [3], "name": ["Carol"]})
db.insert("users", more)

# Query
result = db.query("SELECT * FROM users")
print(result.to_pandas())

Features

  • Relational queries via SQL
  • Recursive CTEs for graph traversal
  • Vector similarity search with automatic indexing
  • Zero-copy data interchange with PyArrow

Documentation

See the full documentation.

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.

koji_db-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

koji_db-0.4.1-cp39-abi3-macosx_11_0_arm64.whl (22.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

koji_db-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file koji_db-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a14a536b76c5c72a2b98ccff1e95004604d8e32d00edae2006f2cdca5cdbbf5
MD5 0c3ab1877a79a1af5d05ff3a054cdc3a
BLAKE2b-256 b6fc7e720af51bd9c010485003cac440f9df8d95daff0ccbb331e193ce06f19a

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on tkr-projects/tkr-koji

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

File details

Details for the file koji_db-0.4.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aca5ba5b86f89daa7af6cc92979163885696dd3493c24ae7aef9b09455ca7892
MD5 f9543299602b7fc3026e20642dc44a63
BLAKE2b-256 2fcc3c1a0399416861fa1a17bbaf6d08fe9696f4c37c3dcdf2d9443bd28ddd55

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.1-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on tkr-projects/tkr-koji

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

File details

Details for the file koji_db-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5f9b8b89bd8936a03f74a25eb4734e8e2649770c5938d7502998c91379123e17
MD5 7b1f8a3cdaf6183cefccbe2b21abe335
BLAKE2b-256 6b7e0818ae11739cb410fd10f57ee1a195799d80f0d3935b70ee03b4ecc5aa79

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.1-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on tkr-projects/tkr-koji

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