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

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

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / pytest_embedded_serial-2.10.2.tar.gz

Download URL pytest_embedded_serial-2.10.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3b323cfa97984a745653246375aab752b38ff71a72698ba424451e69bec06f05
BLAKE2b-256 checksum
How to use checksums
032b1aab9d94ff6c8a8d27163a221aee27d91433a57e95f7deca25fe7e14b8e8
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.2-py3-none-any.whl

Download URL pytest_embedded_serial-2.10.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecbd8fad30bed3d3c94fbb510f18146d2e25348174a54c1c71a90448737aab0d
BLAKE2b-256 checksum
How to use checksums
56808de6bda0bcbd4fcfb09e0a0b3a3da8674f67863a013138e29f38b0ffacda
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.2

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