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. 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.7

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.7
File Size Uploaded Provenance Actions
pytest_embedded_arduino_cli_ch32rv-0.0.7.tar.gz 32.8 kB With provenance Details for pytest_embedded_arduino_cli_ch32rv-0.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 42.5 kB

Release files / pytest_embedded_arduino_cli_ch32rv-0.0.7.tar.gz

Download URL pytest_embedded_arduino_cli_ch32rv-0.0.7.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
22679882cd032c1ebb993ace6d34db3c0a767f4413f123fb3a2f72f5e8c2c32e
BLAKE2b-256 checksum
How to use checksums
2e1d7a71536af2514f50c534aa3c9405d34dac8d74cc546f8ef114f245584555
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 Oct 31, 2026.

Transparency log

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

Download URL pytest_embedded_arduino_cli_ch32rv-0.0.7-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad57ca543cf68802d8cb006ee20021679186819bed6956be45a57421d16e3653
BLAKE2b-256 checksum
How to use checksums
bb59170babbab7d94fa00cf0772a29b53157a495296a9ccb1630c1bf207649e6
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 Oct 31, 2026.

Transparency log

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

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.7.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 Oct 31, 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