Skip to main content

ColtaneDB Python SDK (coltanedb)

Official Python client and query SDK for ColtaneDB — the multi-model database engine and the Colt (.colt) declarative query language.


Installation

Install the package via pip:

pip install coltanedb

Quickstart

1. Initialize the Client

from coltanedb import ColtaneClient

# Connect to ColtaneDB server or local dev instance
client = ColtaneClient(
    base_url="http://localhost:3000",
    api_key="clt_live_your_api_key",
    tenant_id="tnt_your_project_id",
)

2. Execute a Colt Query

result = client.execute("""
    FIND books SELECT title, author, views
    WHERE views > 10
    ORDER BY views DESC
    LIMIT 20
""")

print("Query success:", result.success)
print("Returned rows:", result.rows)

3. Parameterized Execution

Pass named parameters safely:

result = client.execute(
    source="FIND users SELECT id, email WHERE email == $target_email",
    parameters={"target_email": "alice@example.com"}
)

4. Compile & Plan Queries

Inspect the multi-engine execution plan produced by the Colt compiler:

plan = client.plan("""
    DEFINE COLLECTION articles STRICT @backend(neon) {
        id: uuid @key,
        title: text,
        published: time @default(now)
    }
""")

for step in plan.steps:
    print(f"Backend: {step.backend}")
    print(f"Operation: {step.operation}")
    print(f"Statement: {step.parameterized_statement}")

5. Parse Colt Source (AST)

ast_result = client.parse("FIND products SELECT id, price")
print("AST Program:", ast_result.ast)

License

Apache-2.0 © ColtaneDB Team

Metadata

Release files for coltanedb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coltanedb 0.1.0
File Size Uploaded Provenance
coltanedb-0.1.0.tar.gz 10.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for coltanedb 0.1.0
File Interpreter ABI Platform
coltanedb-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / coltanedb-0.1.0.tar.gz

Download URL coltanedb-0.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ac6a0007ae55b87691b647c60cfc8b54cb013bc1c2773cfc0828f5c98710002
BLAKE2b-256 checksum
How to use checksums
ffc4f4c5b2033d336ee378df18d69dd10041e8710af960ab89ce1d76b05c75bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release files / coltanedb-0.1.0-py3-none-any.whl

Download URL coltanedb-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9347c8ac3a427639c53a17ff2ae7ebe88fc25514fcfbf90531aaf677279a32b
BLAKE2b-256 checksum
How to use checksums
6f86f9b5d4431660b4fd1d7a1bbb922bc21b78ac1094a4d1fd5137a806389929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Security for coltanedb 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for coltanedb-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page