Skip to main content

pytest-embedded-serial

A pytest-embedded service for interacting with target hardware over serial (UART) ports.

Service Activation

Activate this service by passing serial to --embedded-services:

pytest --embedded-services serial --port /dev/ttyUSB0

Extra Functionalities

  • serial Fixture: Provides a Serial object that manages port connection, reading, and writing.
  • dut Integration: Automatically streams all incoming serial output to the dut and pexpect_proc fixtures for pattern matching.
  • Port Matching: Select serial ports by device path or USB bus location.

CLI Options

  • --port: Path to the serial port (e.g. /dev/ttyUSB0, COM3). Default: None.
  • --port-location: USB device location string (format: <bus>-<port>[-<port>]...) to match dynamic port paths.
  • --baud: Serial communication baud rate. Default: 115200.

Quick Example

from pytest_embedded import Dut


def test_serial_echo(dut: Dut):
    dut.write(b'ping\r\n')
    dut.expect('pong')

Metadata

Release files for pytest-embedded-serial 2.11.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 pytest-embedded-serial 2.11.0
File Size Uploaded Provenance Actions
pytest_embedded_serial-2.11.0.tar.gz 6.0 kB Without provenance Details for pytest_embedded_serial-2.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-embedded-serial 2.11.0
File Interpreter ABI Platform Actions
pytest_embedded_serial-2.11.0-py3-none-any.whl Python 3 none any Details for pytest_embedded_serial-2.11.0-py3-none-any.whl

Total release size: 12.3 kB

Release files / pytest_embedded_serial-2.11.0.tar.gz

Download URL pytest_embedded_serial-2.11.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
154e1d95324f16bc8083793082ec6f5ebad6061c2a9fe23a57b18546f2a8f497
BLAKE2b-256 checksum
How to use checksums
74f8cf9b78df13d904b07431d90a3909664b73497575745783ec8d252b4e49cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded_serial-2.11.0-py3-none-any.whl

Download URL pytest_embedded_serial-2.11.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
202a1fd088fa21cbcf710438066bc801894db6f776115b50a64ebeee8a75d030
BLAKE2b-256 checksum
How to use checksums
a39670f226124d5ea23817ec053a07e727dec2a5b88e0fc42ec4f9f54126079c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded-serial 2.11.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

2.11.0 This release

2 release files No 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