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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koji_db-0.3.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: koji_db-0.3.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 26.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a469794290958e6979249abf1c2c8f0f2372a93b733fa0ff833b5e0ae95d09c0
|
|
| MD5 |
f66df9d8abd9727c7ce8765be4487248
|
|
| BLAKE2b-256 |
8773b5260a72cb70d8ac4df881d9010d5398b1aa9f49d072f968d4d69377660a
|
Provenance
The following attestation bundles were made for koji_db-0.3.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on tkr-projects/tkr-koji
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
koji_db-0.3.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
a469794290958e6979249abf1c2c8f0f2372a93b733fa0ff833b5e0ae95d09c0 - Sigstore transparency entry: 1988832753
- Sigstore integration time:
-
Permalink:
tkr-projects/tkr-koji@d9d81f0d09b35ce8c5f2eb3efc94cf7a137f78de -
Branch / Tag:
refs/tags/v0.3.0-rc.2 - Owner: https://github.com/tkr-projects
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d9d81f0d09b35ce8c5f2eb3efc94cf7a137f78de -
Trigger Event:
push
-
Statement type: