coaxi
AXI4-Stream helpers for cocotb testbenches, targeting Python 3.13 and later.
The distribution and import package are named coaxi.
uv add coaxi
cocotb 2.1.0 or later is a runtime dependency. Running a testbench also needs a simulator and cocotb's simulator integration.
Documentation
Getting started,
examples, and
API reference.
Sources are in docs/.
The runnable vector and VHDL-record example
uses NVC. From a source checkout with NVC on PATH:
uv sync --locked
uv run pytest -q tests/test_simulation.py -k example
Scope
Sources and sinks support individual transfers and frames, optional AXI4-Stream
sidebands, optional data and ready, interleaved packet assembly, and monitored
reset pins with configurable polarity. Signal names can be unrelated; each
role accepts a name or a cocotb handle. Payload access is separate from handshake
and framing logic.
Signed and Unsigned provide immutable VHDL-2008 numeric_std values,
with VHDL-width arithmetic, explicit integer conversion, and cocotb LogicArray
interoperation. See Numeric values.
AXI4 memory-mapped, AXI4-Lite, and AXI5-Stream extensions are not implemented. Tests cover Python 3.13.5, cocotb 2.1.0, and NVC 1.21.1 on Linux.
Await initialise() before traffic and for explicit recovery from faults or
caller cancellation. DUT reset is caller-controlled. Healthy pin-only resets
recover automatically after release.
Clocks must contain literal 0 and 1 from before the first initialisation
onwards; endpoints do not monitor this precondition. See
Lifecycle and recovery
before interrupting traffic.
Development
uv sync --locked --group docs
uv run pytest -q
uv run pyrefly check
uv run ruff format --check .
uv run ruff check .
uv run --locked --group docs sphinx-build -M html docs docs/_build -n -W --keep-going
uv run --locked --group docs sphinx-build -M doctest docs docs/_build -n -W --keep-going
Simulation tests use NVC and VHDL-2008. The HTML output is
docs/_build/html/index.html. See
Development for
distribution, coverage, and reliability checks, ARCHITECTURE.md
for implementation decisions, and AGENTS.md for repository rules.
Releases
Pushing a matching v* version tag starts production PyPI publishing after
validation and any configured environment approval. Manual runs support PyPI
and TestPyPI. RELEASING.md describes configuration and recovery.
Licence
CC0-1.0. LICENSE.txt contains the unmodified CC0 1.0 Universal legal code and is included in the source and wheel distributions.
Metadata
Release files for coaxi 1.2.0
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 |
|---|---|---|---|---|
| coaxi-1.2.0.tar.gz | 193.0 kB | With provenance | Details for coaxi-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coaxi-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for coaxi-1.2.0-py3-none-any.whl |
Total release size: 222.0 kB
Release files / coaxi-1.2.0.tar.gz
| Download URL | coaxi-1.2.0.tar.gz |
|---|---|
| Size | 193.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c56292576ccb71dc9f4199bbd50e6bbbea063c01884f9ff073e1e53619844373
|
|
BLAKE2b-256 checksum How to use checksums |
5ba40c0cdcb8a72a013bf2a6190b6ff5f879fd468cc4e3c8965af501b3ecef21
|
| 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 18, 2026.
Transparency logRelease files / coaxi-1.2.0-py3-none-any.whl
| Download URL | coaxi-1.2.0-py3-none-any.whl |
|---|---|
| Size | 29.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c10d16989387cd873e6050bef6d0217830f2f5a9bf52295713a205afaf7ec88
|
|
BLAKE2b-256 checksum How to use checksums |
4bbf2bfdb165a6aab48ee38077943f00c61208f2c82ec49fb0ac2fd9d00f15d5
|
| 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 18, 2026.
Transparency logSecurity for coaxi 1.2.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.
Attestation for coaxi-1.2.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 18, 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.