pytest-embedded-arduino-cli-ch32rv
A pytest-embedded-arduino-cli plugin for CH32 boards flashed by ch32rv (the uploader the ArduinoCore-CH32RV platform bundles).
pytest-embedded-arduino-cli already uploads with ch32rv and gives the test a dut read through ch32rv's monitor (pick
its source - uart, dmseq, ... - with the profile's port_config in sketch.yaml). This plugin adds:
| fixture | what it is |
|---|---|
ch32rv |
the ch32rv the platform installed (runtime.tools.ch32rv.path), as a path |
oep_host |
an oep-client-python session on the OEP probe behind the port, through ch32rv's broker: .host is the Host, .touch() keeps the lease |
ch32_uart |
the DUT's UART as the probe sees it: ch32_uart.open(baud) returns a channel with expect / expect_exact / write, like dut (pexpect underneath: the same keywords, a 30 s default timeout, pexpect.TIMEOUT) |
The fixtures are the plugin's interface; the module's other names are internal.
ch32_uart opens a WCH-Link's UART bridge (the CDC serial port of the Link behind the port), or on an OEP probe an
oep.fixture.uart planned onto the port's rx / tx lines, found from the labels the probe keeps (OEP host guide
§5.3: <port>.rx / <port>.tx, e.g. oep settings set <probe> core channel.GPIO22.label=v003.rx --save). The port is the <port> of an
oep://<probe>/<port>[?via=<route>] test port; a probe that names several ports needs that. Which DUT USART and route
are wired to the probe is the test's business, not the plugin's.
On a WCH-Link, ch32_uart and a dut read through the monitor's uart source share one serial port: use one or the
other in a test, not both.
pytest-embedded-arduino-cli's device lock takes one key per probe (ch32rv-probe:<unit_id or USB serial>), whether
the port names it by oep://, wchlink://<serial> or its serial port. A probe behind a USB-UART with no serial (an
ESP32 on a CH340) cannot be matched to its oep:// address: name it the same way in every run.
oep_host waits up to 10 s for the broker the dut's monitor starts. Its session shares the lock of ch32rv's own tools (the
monitor, flash, gdb) through ch32rv's io.github.ch32-riscv-ug.share open extension. The OEP session holds a 60 s lease, refreshed
whenever the test uses it; a test that stays quiet for longer loses it.
pip install pytest-embedded-arduino-cli-ch32rv
Metadata
Release files for pytest-embedded-arduino-cli-ch32rv 0.0.8
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 |
|---|---|---|---|---|
| pytest_embedded_arduino_cli_ch32rv-0.0.8.tar.gz | 34.1 kB | With provenance | Details for pytest_embedded_arduino_cli_ch32rv-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_embedded_arduino_cli_ch32rv-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for pytest_embedded_arduino_cli_ch32rv-0.0.8-py3-none-any.whl |
Total release size: 44.1 kB
Release files / pytest_embedded_arduino_cli_ch32rv-0.0.8.tar.gz
| Download URL | pytest_embedded_arduino_cli_ch32rv-0.0.8.tar.gz |
|---|---|
| Size | 34.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fea726666e4618740ef788126926287ed07150666425e6e922898e24e97c315
|
|
BLAKE2b-256 checksum How to use checksums |
66864f100f18d663740b05b854ce9f89f730ee753bade2e5aae41eeb11787e6d
|
| 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 logRelease files / pytest_embedded_arduino_cli_ch32rv-0.0.8-py3-none-any.whl
| Download URL | pytest_embedded_arduino_cli_ch32rv-0.0.8-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee4bec6ede261cc72e6691b74e0484838ac0d48df075582e50bf19ffb2b85664
|
|
BLAKE2b-256 checksum How to use checksums |
0d678c6686d68e944eba35c5625f46cb75221789f08504c4be9017c6821418b5
|
| 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 logSecurity for pytest-embedded-arduino-cli-ch32rv 0.0.8
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 pytest_embedded_arduino_cli_ch32rv-0.0.8.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 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.