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, nowalk, and noDataFrame -> DataFrameAPI. 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 pqbenchis not provided; runpqbench.- 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.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pqbench-0.0.12.tar.gz | 408.0 kB | With provenance | Details for pqbench-0.0.12.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| pqbench-0.0.12-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.12-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| pqbench-0.0.12-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for pqbench-0.0.12-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| pqbench-0.0.12-py3-none-macosx_13_0_x86_64.whl | Python 3 | none | macOS 13.0+ x86-64 | Details for pqbench-0.0.12-py3-none-macosx_13_0_x86_64.whl |
| pqbench-0.0.12-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for pqbench-0.0.12-py3-none-macosx_11_0_arm64.whl |
Total release size: 67.4 MB
Release files / pqbench-0.0.12.tar.gz
| Download URL | pqbench-0.0.12.tar.gz |
|---|---|
| Size | 408.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ba41c24f53b8d5deecb4ccfb46a369c35fee248dc3591d8e32e926ab4c7b032
|
|
BLAKE2b-256 checksum How to use checksums |
65349dbe8c8d9cf84eb27982a06ca2fa7be4ae4e804b5df4dc933bc7bb9c8236
|
| 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 21, 2026.
Transparency logRelease files / pqbench-0.0.12-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pqbench-0.0.12-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 |
268528cd09670045fe4906f9a8ae65c5c0bebc1a11f9aecdb513919cd1d880fd
|
|
BLAKE2b-256 checksum How to use checksums |
1b5a8dc96369fea1919d9cd8221341f0d2cb29a49cf0942230e19d68c88200c3
|
| 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 21, 2026.
Transparency logRelease files / pqbench-0.0.12-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | pqbench-0.0.12-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 |
9731d712ed68a881e3c7468818599c1c6c82b5b82a30e12fa3b906beee22751b
|
|
BLAKE2b-256 checksum How to use checksums |
29074a6bfeafe122498072483e3cfd2ead26ea55a988300d00d9b29d42b9fab0
|
| 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 21, 2026.
Transparency logRelease files / pqbench-0.0.12-py3-none-macosx_13_0_x86_64.whl
| Download URL | pqbench-0.0.12-py3-none-macosx_13_0_x86_64.whl |
|---|---|
| Size | 16.8 MB |
| Tags | Python 3 macOS 13.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
9543ccc25d363bf22c90dba742a7ed4312d0e17d100b10241aede4d0eab3865b
|
|
BLAKE2b-256 checksum How to use checksums |
c0a8f5828b9401e05c0f9083bcdf43a46500ea171965697802316002acb4a0d6
|
| 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 21, 2026.
Transparency logRelease files / pqbench-0.0.12-py3-none-macosx_11_0_arm64.whl
| Download URL | pqbench-0.0.12-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 16.0 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c8c9225cd95574ec037f13d1e28a876a7f668d44d41a5d25f443a93fb7493a49
|
|
BLAKE2b-256 checksum How to use checksums |
28f902f180a839f53a87dd793faeb1710795be5e970793cc45aa9abcd2cd22b5
|
| 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 21, 2026.
Transparency logSecurity for pqbench 0.0.12
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.
Attestation for pqbench-0.0.12.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 21, 2026.
Transparency logA 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.