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.0-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.0-cp39-abi3-macosx_11_0_arm64.whl (22.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

koji_db-0.4.0-cp39-abi3-macosx_10_12_x86_64.whl (24.3 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for koji_db-0.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63d2d92ccf2f8daa8a132f4b62597e04bb813275d04564490ca356417132f4c1
MD5 41b4fe37fe4e1eb93ff0616f0e652d1d
BLAKE2b-256 31a27e99accf62082cdf71c1313c9f31af13615378d34b765c4fe47c345184f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.0-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.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 069ab56821ce56e423e051c93c65f58a69815296eaecf697e6059f286b934b55
MD5 d66a9011ea58df2fd0ab4d07b89eb5c6
BLAKE2b-256 a7aba278b37eb3bfd9fceb16b687771b739cca127c0f36802b00fcd5897e82b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.0-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.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cbd3d11a46521ff54e6e00d5c861d43cde44ecfa4ee0b91fbe5644ae1a7a85ec
MD5 12d6f72626ed8f8d15801621e5663150
BLAKE2b-256 760f8a6252c05651f261f0b9158a477b8ef0b5f97c2ca333f07356058955bdbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.4.0-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