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

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.11
File Size Uploaded Provenance Actions
pqbench-0.0.11.tar.gz 385.0 kB With provenance Details for pqbench-0.0.11.tar.gz

Built distributions (wheels)

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

Total release size: 64.8 MB

Release files / pqbench-0.0.11.tar.gz

Download URL pqbench-0.0.11.tar.gz
Size 385.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b9941b85ad825c07caf9c672394734cac665048764a67162f4cd9a862d16bad
BLAKE2b-256 checksum
How to use checksums
d5e9f11787eb2d309647a742ca7f5ec24b6106137607bf51cd871906aeaacaa3
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 3, 2026.

Transparency log

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

Download URL pqbench-0.0.11-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 17.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6e26a1d0e48cde5dbddf89fea3576e6e2f47f2a7243f3b5a262479f02153c6d7
BLAKE2b-256 checksum
How to use checksums
5ddf69a9dba50788b0e8229c44d020f0f22be7a218243c4e0616cd90aa670194
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 3, 2026.

Transparency log

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

Download URL pqbench-0.0.11-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
807b9fdbc5517e70f7bc8f9713c50af4a475fa1621f48e71759f253d99f5a1dd
BLAKE2b-256 checksum
How to use checksums
1bf6a380c869fea5c463a2d450248aa76f3544410c7c62352ba4a1cf537abce6
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 3, 2026.

Transparency log

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

Download URL pqbench-0.0.11-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
8741a9e2f10eb7c2ce47a0bd9a220d57e12d8ba5a98be61f0f73ef1ccc626ebb
BLAKE2b-256 checksum
How to use checksums
03d04970798b083ae33ad44ca9c25ab7266d2aa6f17ff9b286947ea49caacc86
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 3, 2026.

Transparency log

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

Download URL pqbench-0.0.11-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
ee2da84933a0698c6bbe6572e08106fe7404e2658c8fc7bbdfd38f5d9dac7350
BLAKE2b-256 checksum
How to use checksums
9acdbba66142d79f0ff3b03d24542e4277693d37037edf3c08a2e41db562b244
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 3, 2026.

Transparency log

Security for pqbench 0.0.11

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

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