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

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / pytest_embedded_serial-2.10.0.tar.gz

Download URL pytest_embedded_serial-2.10.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f4330a2d42b57906910be55467143ab8e6c27a1a38f2d69999b05b9e70e7508f
BLAKE2b-256 checksum
How to use checksums
cca08cfb80cf2fd561ee1cbac747e10f5779f45ec45f30df86d775ba4733667f
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.0-py3-none-any.whl

Download URL pytest_embedded_serial-2.10.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36e6f207d610a279974b066fe50c3c4aceb6ca2f902c328028bb25036703f36d
BLAKE2b-256 checksum
How to use checksums
3fdd90b8b93ba21e45c6cc7c04948e72fc9ca60b4e8b64661160425ca550c25a
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.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.10.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