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

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

koji_db-0.3.0-cp39-abi3-macosx_11_0_arm64.whl (22.1 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

koji_db-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for koji_db-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2de11dea40edac1701a79bf600364af60fb6ae43d6e283c74247826dcecc1b97
MD5 828afc5575a4f8075562ad4b7837c828
BLAKE2b-256 4b1793f5a03986fbef30ac2c7bfc6975cffb23ac1fe5355d9fd4c42da70c681c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 933e2f256b910488b4f8e66dfe25eb02d0df013e8315461702663c4b3a0e1322
MD5 2001a13e56723ad21d55db7b8074f101
BLAKE2b-256 7b106667a73b1bdeb89c07e7cfa9fe818479dcfb098b33932ace706e9b3c1876

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for koji_db-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce164c4168f8c867357c70d6700a0a6cbd10164cdbbef16a4c71b15f322659fa
MD5 0f3307d8192cd8f472975c787800b2c5
BLAKE2b-256 6a3cb7545e26f9ac9327eb61568707d2212d6c35b4a2fec29975f6a6ca4557d2

See more details on using hashes here.

Provenance

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