Skip to main content

Python

The pqbench wheel ships the same binary as the release archives. pip install pqbench puts pqbench on your PATH; there is no Python extension and no importable module. The CLI is the interface, and the files it writes are the data.

Install

$ pip install pqbench

The wheel carries every storage backend (delta-s3, iceberg-s3), so s3:// reads and Delta/Iceberg tables work out of the box. It is a data-only wheel: the binary lives in the wheel's .data/scripts/ directory, which pip installs into the environment's bin/.

From a checkout:

$ python -m pip install maturin
$ maturin build --release --out python/dist
$ python -m pip install python/dist/*.whl

Use from Python

Python runs the CLI and reads what it wrote. Nothing else.

The shortest version lets bash own the pipe:

import subprocess

subprocess.run(
    [
        "bash",
        "-o",
        "pipefail",
        "-c",
        "pqbench table-file examples/quickstart.parquet "
        "| pqbench bytemass > bytemass.ndjson",
    ],
    check=True,
)

pipefail is what makes the pipeline fail when an earlier stage does: without it, bytemass sees EOF from a dead producer, writes a partial stream, and exits 0. The child inherits the environment; keep PQB_ENDPOINT / PQB_TOKEN there, not in argv.

subprocess.run is one command at a time. When you want the records in Python as they arrive, use subprocess.Popen or a pipeline library such as plumbum. The Python orchestration guide walks through all three patterns and the trade-offs; the repository ships runnable versions under examples/python/.

Then read the measurement stream. It mixes one Blob per file with one Bytemass per column, so filter on the fields you need:

import json

with open("bytemass.ndjson") as stream:
    for line in stream:
        record = json.loads(line)
        if "compressed_bytes" in record:  # a column measurement
            print(record["name"], record["compressed_bytes"])

The file-list artifact (pqbench list files) is uniform and reads directly with polars, DuckDB, or Spark; the Python orchestration guide shows those.

What the wheel is not

  • There is no pqbench.native, no walk, and no DataFrame -> DataFrame API. Those would add a second concurrency model (Python's) beside the one the binary already has, and a surface to keep in sync.
  • python -m pqbench is not provided; run pqbench.
  • The binary is the only artifact. Composition is the shell's, and the reader is the user's.

If you need the library in-process — a Spark mapInPandas UDF that measures footers per batch, say — use the Rust crate (crates/pqbench) or call the binary. A narrow binding can be added for that case without bringing back a Python pipeline.

Documents

Each stage writes the documents the CLI reference defines (CLI reference). To inspect a stream as tables while building a pipeline:

$ pqbench list catalogs | pqbench format

The records are typed NDJSON; the schema is the pqbench.v1 model of each resource, and the command reference describes the CLI-only documents.

Metadata

Release files for pqbench 0.0.10

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

Source distribution (sdist)

Source distribution for pqbench 0.0.10
File Size Uploaded Provenance Actions
pqbench-0.0.10.tar.gz 366.5 kB With provenance Details for pqbench-0.0.10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pqbench 0.0.10
File Actions
pqbench-0.0.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for pqbench-0.0.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pqbench-0.0.10-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for pqbench-0.0.10-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pqbench-0.0.10-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for pqbench-0.0.10-py3-none-macosx_13_0_x86_64.whl
pqbench-0.0.10-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pqbench-0.0.10-py3-none-macosx_11_0_arm64.whl

Total release size: 64.6 MB

Release files / pqbench-0.0.10.tar.gz

Download URL pqbench-0.0.10.tar.gz
Size 366.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d58a6b0bd914f933ab89b1521bcd58731cd6560f3fc239d230695230a36ffa0
BLAKE2b-256 checksum
How to use checksums
30c2a33569e0f1db80d09a49b5be938a7076807ca3868a7ae71f0d0d15f222a9
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 1, 2026.

Transparency log

Release files / pqbench-0.0.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pqbench-0.0.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 17.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1a60ae6b61c6d486eb9c7018195b8e55373797eb6978698238ce3f1bba45c546
BLAKE2b-256 checksum
How to use checksums
40bcceeb27e1bde6e1f32f2d88bc669b483f3b94df2ecb2f17155dfa1623477c
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 1, 2026.

Transparency log

Release files / pqbench-0.0.10-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pqbench-0.0.10-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 15.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7139daca2b3bce121c2d839ea38ca544ecf2363de014626124c23396b3dcdcf1
BLAKE2b-256 checksum
How to use checksums
570358661ca3cfd87f86058f8baf624401d6f8da380f0fdb3330e82e9a4f7d8c
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 1, 2026.

Transparency log

Release files / pqbench-0.0.10-py3-none-macosx_13_0_x86_64.whl

Download URL pqbench-0.0.10-py3-none-macosx_13_0_x86_64.whl
Size 16.1 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
2546f240899c3c8a94ec3f26e15fa1194f8d10d5735f8166b99c36b7790e7ab5
BLAKE2b-256 checksum
How to use checksums
7b59626cd712e72e07919c815f54a4d7d10b18c5fde7b910f263f92c3537812d
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 1, 2026.

Transparency log

Release files / pqbench-0.0.10-py3-none-macosx_11_0_arm64.whl

Download URL pqbench-0.0.10-py3-none-macosx_11_0_arm64.whl
Size 15.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ef1abe6e09efe6ef9642439ff722e7d40e19e022a2ff4f20e06f4835d2e00150
BLAKE2b-256 checksum
How to use checksums
7694e6ea51414eb931dfb64b8cfb3b8b54862e348bf397cc1daad241d5664e37
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 1, 2026.

Transparency log

Security for pqbench 0.0.10

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 pqbench-0.0.10.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 Nov 1, 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