Skip to main content

pytest-embedded-arduino-cli-ch32rv

Japanese

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 the open extension oep.probe.share (OEP host guide §7.1). 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.9

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

Source distribution (sdist)

Source distribution for pytest-embedded-arduino-cli-ch32rv 0.0.9
File Size Uploaded Provenance Actions
pytest_embedded_arduino_cli_ch32rv-0.0.9.tar.gz 36.9 kB With provenance Details for pytest_embedded_arduino_cli_ch32rv-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-embedded-arduino-cli-ch32rv 0.0.9
File Interpreter ABI Platform Actions
pytest_embedded_arduino_cli_ch32rv-0.0.9-py3-none-any.whl Python 3 none any Details for pytest_embedded_arduino_cli_ch32rv-0.0.9-py3-none-any.whl

Total release size: 46.9 kB

Release files / pytest_embedded_arduino_cli_ch32rv-0.0.9.tar.gz

Download URL pytest_embedded_arduino_cli_ch32rv-0.0.9.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f6b9fc1725b7f6d6f2ee0f7e2ee4198db16edc8a6ebbb3fdc848249975fe9c14
BLAKE2b-256 checksum
How to use checksums
be4f6216782f1fd1215bdac5339b0d84965a4c17f2cbd74a24acd44362568b9e
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 13, 2026.

Transparency log

Release files / pytest_embedded_arduino_cli_ch32rv-0.0.9-py3-none-any.whl

Download URL pytest_embedded_arduino_cli_ch32rv-0.0.9-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c3cb2d504a194606bdd3ebb6bfafa4d057a42c60c630b68545748eb794db958
BLAKE2b-256 checksum
How to use checksums
381baf08f7fd3f1ecbf1e71d0fef3ba10c9ffa43ccdeda987bd9c53344a73e28
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 13, 2026.

Transparency log

Security for pytest-embedded-arduino-cli-ch32rv 0.0.9

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 pytest_embedded_arduino_cli_ch32rv-0.0.9.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 13, 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