Skip to main content

okf (Python binding)

Python binding of okf-ingest — a unified ingestion tool for Open Knowledge Format (OKF) bundles, spec v0.3. Validate a bundle, load it into a portable DuckDB catalog, and semantically search it.

pip install okf-ingest
okf validate ./bundle
okf ingest   ./bundle --db catalog.duckdb
okf embed    catalog.duckdb            # uses local Ollama nomic-embed-text by default
okf rag      catalog.duckdb --query "how is revenue computed?" -k 5
import okf
con, summary = okf.ingest("./bundle", db_path="catalog.duckdb")
okf.embed(con)                         # pluggable embedder
okf.rag_search(con, "revenue", k=5)

The catalog format is shared with the R binding (okf on CRAN-style install), so you can ingest/embed in one language and query from the other. See the project README and docs/ for the full spec-conformance notes and architecture.

Metadata

Release files for okf-ingest 0.14.2

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

Source distribution (sdist)

Source distribution for okf-ingest 0.14.2
File Size Uploaded Provenance Actions
okf_ingest-0.14.2.tar.gz 56.2 kB Without provenance Details for okf_ingest-0.14.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for okf-ingest 0.14.2
File Interpreter ABI Platform Actions
okf_ingest-0.14.2-py3-none-any.whl Python 3 none any Details for okf_ingest-0.14.2-py3-none-any.whl

Total release size: 116.8 kB

Release files / okf_ingest-0.14.2.tar.gz

Download URL okf_ingest-0.14.2.tar.gz
Size 56.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6083fe1509053bd24df4987bbd32847d3216bc1a42538683c911f67f86374466
BLAKE2b-256 checksum
How to use checksums
54e4171d50a9e99d63e961df86eed7df128a5fd7d61a335f2081fcafa56e8917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / okf_ingest-0.14.2-py3-none-any.whl

Download URL okf_ingest-0.14.2-py3-none-any.whl
Size 60.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d0ebbe0efca14cd1b36dc055588b174121712d623f70e0cfb116fd3a9a30863
BLAKE2b-256 checksum
How to use checksums
e8adb12a5962e10f6f379512e97287627080481d6df15fb23076234ab487329b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for okf-ingest 0.14.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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