Skip to main content

iperf3-lib

CI PyPI Python

Documentation · Changelog · Issues

iperf3-lib is a programmable network benchmarking and analysis library powered by native libiperf through CFFI. Configure clients and servers from Python, preserve and analyze measurements, run repeatable experiments, and export results to Prometheus.

Why use iperf3-lib?

Use iperf3-lib when benchmarks feed an application, a repeatable test campaign, or a monitoring pipeline. Reuse a tested Python API for the work that otherwise accumulates around subprocess calls or Ansible tasks:

  • Configure tests with validated dataclasses, including traffic direction, transport controls, and explicit rate intent.
  • Interpret measurements consistently, keeping sender and receiver observations separate, preserving native JSON, and distinguishing missing measurements from measured zero.
  • Build on reusable experiments and reports: repeated trials, baseline assessments, bounded parameter sweeps, portable artifacts, and Prometheus output.

The library calls libiperf through CFFI; it does not invoke the iperf3 executable. Some execution paths use isolated Python worker processes. A short CLI script remains useful for one-off tests, and Ansible can deploy and run Python benchmark applications across your hosts. See choosing a Python API, CLI, or Ansible workflow for the comparison, execution boundaries, and version-specific features.

Getting started

Follow the installation and first-run guide to install the Python package and native library, start a server, and run a benchmark. The Python package does not bundle libiperf. Current native qualification covers libiperf 3.19.1 and 3.22 on Linux; see the compatibility reference.

Python 3.12–3.15 with the standard GIL is supported. Stable CI and release qualification cover all four Python versions against both native endpoints, including installed wheel and sdist checks.

The project has Beta maturity. Documentation follows main. The installation guide explains how to choose between a published package and a source revision; consult the changelog for release status. Upgrade guidance covers 0.2.0 to 0.3.0 and 0.3.0 to 0.4.0.

Documentation

The documentation contains the examples, API contracts, supported versions, and execution limits.

Topic Guides and references
Run clients and servers Running tests · Live events · Python API
Bind interfaces and tune traffic Native-control recipes · Configuration · Complete native-option inventory
Check support and execution limits Compatibility and native setup · Rate intent and capabilities
Interpret and save measurements Results · Portable artifacts
Analyze and compare experiments Analysis · Trials and baselines · Concurrent plans · Parameter sweeps · Adaptive UDP
Integrate monitoring Prometheus · Grafana

Contributing

See the contributor guide for development setup, checks, and repository policies. Use GitHub issues to report bugs or discuss planned work.

Metadata

Release files for iperf3-lib 0.4.2

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

Source distribution (sdist)

Source distribution for iperf3-lib 0.4.2
File Size Uploaded Provenance Actions
iperf3_lib-0.4.2.tar.gz 733.5 kB With provenance Details for iperf3_lib-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iperf3-lib 0.4.2
File Interpreter ABI Platform Actions
iperf3_lib-0.4.2-py3-none-any.whl Python 3 none any Details for iperf3_lib-0.4.2-py3-none-any.whl

Total release size: 899.5 kB

Release files / iperf3_lib-0.4.2.tar.gz

Download URL iperf3_lib-0.4.2.tar.gz
Size 733.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0a682c80dcbe8fe552b02d29f81075d51ed9cfd93c28accd381dffbe3e4c40e8
BLAKE2b-256 checksum
How to use checksums
cced50fa6432272269b53dc982fcdc6e0661e8057020c88da784cf172649525b
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 2, 2026.

Transparency log

Release files / iperf3_lib-0.4.2-py3-none-any.whl

Download URL iperf3_lib-0.4.2-py3-none-any.whl
Size 166.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95a781f7390ad31814e5081df1371254913a6697cf977888d8749fb2357490c3
BLAKE2b-256 checksum
How to use checksums
8f664e10199bc5cba29fd04fc2d94de824658914ade2449f46f1e584dd4cfe30
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 2, 2026.

Transparency log

Security for iperf3-lib 0.4.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iperf3_lib-0.4.2.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 2, 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