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.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.1 MB view details)

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

koji_db-0.5.1-cp310-abi3-macosx_11_0_arm64.whl (22.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

koji_db-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl (24.3 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file koji_db-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5eb445c053db2121d6208673a58e77e0cc3355d07e39da34515a430eb3b252d6
MD5 efe29efdf0e80d32a5a51aa769b73846
BLAKE2b-256 15f5c8b981bc24d4938bc1f05b4ec86488d651881f2b378b4b59f13380a0da80

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.5.1-cp310-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.5.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for koji_db-0.5.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4c826f6b2c89b885c585518a2e8e87a84619133f15e2d698ca61a1b99fd4348
MD5 6579945845072cc412239f2f190c670a
BLAKE2b-256 ee3ab1cc52ec51a58225a2d025bf2f8ee6496b66b5b867f033c2f7dcb744ad2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for koji_db-0.5.1-cp310-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.5.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d73b0c8a6311f60626341766dd33415f51219d660b19626868c3b15a2a091a3f
MD5 7c2a87902928119f77445c73508b342c
BLAKE2b-256 5556305406f79669c6b04d167459fe05c1f4bba38b01191d14555dc3a48decda

See more details on using hashes here.

Provenance

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