Skip to main content

imbue-datalib-reader

Read the stores of a Datalib library from Python. A Datalib store is a doltlite file: SQLite with git-shaped history kept inside it, which Python's own sqlite3 module cannot open. This package carries the doltlite library and a small module that calls it.

uv add imbue-datalib-reader==<version>     # or pip install; the version `datalib-pipeline --version` prints
from datalib_reader import Store

path = "my-library/gmail/ingest/entities.doltlite_db"

with Store(path) as store:  # the latest sealed state
    rows = store.query("SELECT id, subject FROM emails WHERE subject LIKE ?", "%invoice%")
    commit = store.query("SELECT dolt_hashof('main')")[0][0]  # keep this to come back to

with Store(path, commit) as store:  # that commit, however far the store moves on
    count = store.query("SELECT count(*) FROM emails")

with Store(path) as store:  # after a later sync: what changed since that commit
    latest = store.query("SELECT dolt_hashof('main')")[0][0]
    changed = store.query("SELECT diff_type, to_id FROM dolt_diff_emails(?, ?)", commit, latest)

query returns a list of rows. A row is a tuple, so row[0] and unpacking work, and it answers by column name too: row["subject"], row.as_dict(). The list's columns names the result's columns in order, even when no row came back.

from datalib_reader import Store, UnknownCommit, QueryError

try:
    with Store(path, commit) as store:
        rows = store.query("SELECT id, subject FROM emails LIMIT 5")
        print(rows.columns, [r["subject"] for r in rows])
except UnknownCommit:
    ...  # the store has no such commit: a `commit` kept from another store?
except QueryError:
    ...  # a syntax error, or a table or column this store does not have

Every failure is an OSError and a datalib_reader.Error, with SQLite's extended result code in code. Each kind has its own class:

class when
UnknownCommit Store(path, commit) named a commit or branch the store does not have
CannotOpen no store at the path, or one this process may not read
QueryError the SQL could not run: a syntax error, an unknown table or column
ReadOnly the statement would write
StoreBusy the store stayed locked past a five-second wait
  • It only reads. A write fails with attempt to write a readonly database, and the store comes out byte-identical.
  • It works under any Python 3.9 or later, the builds uv fetches included. It starts no process, replaces no module and leaves no temp file, and sqlite3 stays stock beside it.
  • Select a payload as json(payload). A Datalib payload column is SQLite's binary JSON (JSONB); selected bare it comes back as bytes, which json.loads refuses with a UnicodeDecodeError.
  • Give each thread its own Store.
  • Take the version of your Datalib, which datalib-pipeline --version prints. Each version carries the library that release's binaries were built from.

Wheels exist for Apple-silicon Macs on macOS 11 or later, and for Linux on x86_64 and aarch64: manylinux_2_17 for any glibc distribution from the last decade, and musllinux_1_2 for Alpine. pip and uv pick the right one. There is no source distribution, and no wheel for an Intel Mac.

What each table holds: Reading the raw stores.

Metadata

Release files for imbue-datalib-reader 0.57.1

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

Built distributions (wheels)

Table of built distributions (wheels) for imbue-datalib-reader 0.57.1
File Actions
imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_x86_64.whl
imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_aarch64.whl
imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
imbue_datalib_reader-0.57.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for imbue_datalib_reader-0.57.1-py3-none-macosx_11_0_arm64.whl

Total release size: 10.8 MB

Release files / imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_x86_64.whl

Download URL imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_x86_64.whl
Size 2.2 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a94e124df6f40405f9cc7e486b18a271532a92c8ce5ba8b64d3b90858ccacc0d
BLAKE2b-256 checksum
How to use checksums
d8c8562e685d3426171d3214d967e3cc71f1deb3c7ae143abbb9a3e3b897453a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Release files / imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_aarch64.whl

Download URL imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_aarch64.whl
Size 2.1 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
fed07a9a2ec64dc1182127658a7c55b84a7b66af4cf68497f6d955363b1f3aab
BLAKE2b-256 checksum
How to use checksums
796a5a59b448fd00c4f09d6092d88ec1a6b92653c97929ad9bd0669ba36633ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Release files / imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d2263bd2d9ef5010200bafcf415b3b4efded833ba7fbd3d0d1fa21ab299aa24a
BLAKE2b-256 checksum
How to use checksums
f6d11c5145a2e16ad75cef955a228c3f71414317ac09e025369d0eebc54c38c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Release files / imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL imbue_datalib_reader-0.57.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6d3182d99ad6d3aa1f40877ffbfc4f54dec5aaae2ce7f6d3ee7714326ebf2585
BLAKE2b-256 checksum
How to use checksums
4e5ddf0bf6bca5139a8d5f4d1dd70cf21f7e631da0ac749fd93e41c43baad838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Release files / imbue_datalib_reader-0.57.1-py3-none-macosx_11_0_arm64.whl

Download URL imbue_datalib_reader-0.57.1-py3-none-macosx_11_0_arm64.whl
Size 2.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bab98b79ef14736792b0deb5aa7356b73cfda4251bbda9bdf34113e0b35958bd
BLAKE2b-256 checksum
How to use checksums
6f2fcf10586f3a7643801be8f7083f2500acbfb255a4dec22bab133fb44526bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 26, 2026.

Transparency log

Security for imbue-datalib-reader 0.57.1

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for imbue_datalib_reader-0.57.1-py3-none-musllinux_1_2_x86_64.whl

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 Nov 26, 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.

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