Skip to main content

Kōji - Hybrid SQL + Recursive + Vector Database

Reason this release was yanked:

- Root cause: koji/__init__.py uses PEP 604 X | None annotations with no from __future__ import annotations. Lines 51–52 are class-level annotations, evaluated at import time — which only works on Python 3.10+. (Confirmed the breakage is purely annotations — no match/union-isinstance elsewhere.) - False compatibility claim: the package declares requires-python = ">=3.9" and ships a cp39-abi3 wheel, so pip installs it on 3.9 and it then fails at first import.

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

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

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

koji_db-0.5.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.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86594a47b51d0bf2c2908b849ce0abe7b661e6b3fa3fe1bdb4241e21f5b566c2
MD5 605ee2d206c8d9650b4c6d4f7184cfa5
BLAKE2b-256 37ab65cd0634eff61f48d04699777d6d380d3c1b222c9ef95efbbe2e19efd26e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.5.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fb97d2624dcb7c3c00c65d7201eb95f2c072d251f147ad055b11141b2ced8ad
MD5 9477861da8eab363b4bea6526f7d2ebc
BLAKE2b-256 b161343d87332392a4f66c4af612ef2aee13ea23bcee8a5b4217d3389f1675f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.5.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 493023d6235949a8a11963bb08e09efba6a82b4bc6d1dc8b888bff6242107c7b
MD5 176a074bb688337b1cb22d43c18befe6
BLAKE2b-256 ad6bab8848d9798691a342087f2e3e1de303f984dbca5e5f151aa0beae497df5

See more details on using hashes here.

Provenance

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