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

Uploaded CPython 3.9+macOS 11.0+ ARM64

koji_db-0.4.3-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.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for koji_db-0.4.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ae1b41208087eac285d840ddd511104c115ab86b7f141d4ae7ae3dac703bc6a
MD5 9b44e22b192dc4f88211fa5723c4d480
BLAKE2b-256 dd9f80b8367b63136b88e0154cf3dda1ef47e46dd4a1261c1eac190cca9f0418

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.4.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97d06027b5cec7eb23e710c96520d3d1b81245a2f6d3d04d769b590a47f6c7ff
MD5 7e6a033695324346d4e8eda9c55daf09
BLAKE2b-256 560f9d4e47b0adf903c85fbf8f259b4d4d38fbb10396a4db1b2c4257271a217c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.4.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 98b0cc6f33054f2d6928f9fea3e97d38375ad084e7b6f1e070606cca701fa9b8
MD5 4af0f592074f0424737eee2a6f811ca3
BLAKE2b-256 6dea5586640d1aff749a1f799ab09dbd6687ccea0caacb372ccd1e8586e487a5

See more details on using hashes here.

Provenance

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