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.13

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.13
File Size Uploaded Provenance Actions
pqbench-0.0.13.tar.gz 594.3 kB With provenance Details for pqbench-0.0.13.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pqbench 0.0.13
File Actions
pqbench-0.0.13-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.13-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pqbench-0.0.13-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for pqbench-0.0.13-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pqbench-0.0.13-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for pqbench-0.0.13-py3-none-macosx_13_0_x86_64.whl
pqbench-0.0.13-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pqbench-0.0.13-py3-none-macosx_11_0_arm64.whl

Total release size: 67.5 MB

Release files / pqbench-0.0.13.tar.gz

Download URL pqbench-0.0.13.tar.gz
Size 594.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c921f2744c1b017eedf29ee4c02255f51ceaed52cb959ea03ea5af697acf4e0e
BLAKE2b-256 checksum
How to use checksums
6a428a267dcdea5fd8f9109328befa7a332d9ee223e807adecd6e55bbe0b0f78
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 28, 2026.

Transparency log

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

Download URL pqbench-0.0.13-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 17.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6b676ce99f8c86d8a204d4daf71cdcefd09809ad253424ec085f453a9a0a94f3
BLAKE2b-256 checksum
How to use checksums
546039bf0583250587386f4651c33febb5566b1bb708bddc8e297a10eac1fe70
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 28, 2026.

Transparency log

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

Download URL pqbench-0.0.13-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 16.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5e988a292420f363af148f681593fec10db18a54699c2c95cb97cbaaf0aa14dc
BLAKE2b-256 checksum
How to use checksums
fd8fd7f78b6b72e185e7854315a8b80f50a35e6662b8eee8e4b9babc8e428282
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 28, 2026.

Transparency log

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

Download URL pqbench-0.0.13-py3-none-macosx_13_0_x86_64.whl
Size 16.7 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
65876819316cec5dbf26fc355b1e057788726ba3509a593c6f2476b20e318369
BLAKE2b-256 checksum
How to use checksums
7011647c31548bbf31e510bfff1dfde92b12b3447956de62556aedf49224ef92
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 28, 2026.

Transparency log

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

Download URL pqbench-0.0.13-py3-none-macosx_11_0_arm64.whl
Size 15.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f02ba48b6e2b52cdba58f838db1fd0d344899e7e0a93542b886314d1df5c6d1
BLAKE2b-256 checksum
How to use checksums
936a39f451bbe927abd555c47fb6159e0e6935c9c19f0337b41e1d395a9a3861
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 28, 2026.

Transparency log

Security for pqbench 0.0.13

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.13.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 28, 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