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

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / pytest_embedded_serial-2.10.1.tar.gz

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

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

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

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