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

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.1
File Size Uploaded Provenance Actions
pytest_embedded_serial-2.11.1.tar.gz 6.0 kB Without provenance Details for pytest_embedded_serial-2.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / pytest_embedded_serial-2.11.1.tar.gz

Download URL pytest_embedded_serial-2.11.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
84c845d9e8dca73068bb427e74d4d91648396d438231ba72a73ab03566fb84bf
BLAKE2b-256 checksum
How to use checksums
b5be89e7498e6c487a07f8e952ba727bdabf4acf283826b5c1b37bbfc4baaa47
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.1-py3-none-any.whl

Download URL pytest_embedded_serial-2.11.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62f60cd9a6bd62ee6e30af12ef9c0cc24f6d1ea77b78e52a9791182341b9af9f
BLAKE2b-256 checksum
How to use checksums
82467871baeb5d299f6a2eb540bb13ee28971657fbf26cb6857bb5362ea77d3e
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.1

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