Skip to main content

clabgen (Python)

Python client and pytest helpers for clabgen, the protocol emulator and traffic generator for containerlab. Standard library only; Python 3.9+.

pip install clabgen

Installing from a checkout or from git builds the package: Ubuntu 22.04's own pip 22.0 builds it as UNKNOWN, so use a newer pip there (e.g. in a virtualenv after pip install -U pip).

def test_failover(clabgen_lab):              # pytest --clabgen-lab b2b
    with clabgen_lab.measure() as m:
        clabgen_lab["gen2"].port_down("eth1")
        time.sleep(2)
        clabgen_lab["gen2"].port_up("eth1")
    m.assert_pass()

See docs/python.md.

Tests: pytest here. The unit tests need nothing; the agent tests run the agent binary (make build at the top, or CLABGEN_AGENT=path) in a container, so they need docker, and are skipped without it.

Metadata

Release files for clabgen 0.19.0

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

Source distribution (sdist)

Source distribution for clabgen 0.19.0
File Size Uploaded Provenance Actions
clabgen-0.19.0.tar.gz 23.6 kB With provenance Details for clabgen-0.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clabgen 0.19.0
File Interpreter ABI Platform Actions
clabgen-0.19.0-py3-none-any.whl Python 3 none any Details for clabgen-0.19.0-py3-none-any.whl

Total release size: 42.5 kB

Release files / clabgen-0.19.0.tar.gz

Download URL clabgen-0.19.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37bf725254ddf92201ec582582fdc6c89a6bd45543c14ea79d4a56d7e1b2851a
BLAKE2b-256 checksum
How to use checksums
1a4c8f2e03ea0a01195451d51e83f1a4fadc800e86907ced7d518aa38b9d81d2
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 17, 2026.

Transparency log

Release files / clabgen-0.19.0-py3-none-any.whl

Download URL clabgen-0.19.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b57f15e8c754e92d23bf7707de5ff42604396755e91adbe3e2f28e5b328b3dd0
BLAKE2b-256 checksum
How to use checksums
b73bf55a8aa6bbe0e0cc1493b321d8899605f8ba35b2cc40990e6a6531f1e5e5
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 17, 2026.

Transparency log

Security for clabgen 0.19.0

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 clabgen-0.19.0.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 17, 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.

Release history Release notifications | RSS feed

This release

0.19.0 This release

2 release files Full provenance

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