TTY/Serial port exerciser for pymctp
Project description
pymctp-exerciser-serial
TTY/Serial port exerciser support for pymctp.
This package provides an exerciser implementation for interfacing with serial/UART devices to send and receive MCTP packets over serial connections.
Installation
pip install pymctp-exerciser-serial
Requirements
- pymctp >= 0.1.0
- pyserial
- Serial/UART hardware or virtual serial ports
Usage
from pymctp.exerciser import TTYSerialSocket
# Open a serial connection
socket = TTYSerialSocket(
tty='/dev/ttyUSB0', # Serial port device
baudrate=115200, # Baud rate
addr=0x20 # Target address
)
# Send/receive MCTP packets
from pymctp.layers.mctp import UartTransport
pkt = UartTransport(...)
socket.send(pkt)
response = socket.recv()
Auto-Registration
This package automatically registers itself with pymctp when installed. You can access it through the exerciser registry:
from pymctp.exerciser import get_exerciser
SerialSocket = get_exerciser('serial')
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymctp_exerciser_serial-0.2.5.tar.gz.
File metadata
- Download URL: pymctp_exerciser_serial-0.2.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42c04d64b97c8a4bebc00ecafc21dceb7c8d717a55f16d48ea7577b796a691b9
|
|
| MD5 |
0e0993e6c05e85b2de2ff1eace05a117
|
|
| BLAKE2b-256 |
27e0147b5df69112f73b72191141da20b892d97bc651f1d9f52d3fbbf4fe94c4
|
Provenance
The following attestation bundles were made for pymctp_exerciser_serial-0.2.5.tar.gz:
Publisher:
publish.yml on jls5177/pymctp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymctp_exerciser_serial-0.2.5.tar.gz -
Subject digest:
42c04d64b97c8a4bebc00ecafc21dceb7c8d717a55f16d48ea7577b796a691b9 - Sigstore transparency entry: 749378729
- Sigstore integration time:
-
Permalink:
jls5177/pymctp@b63eec0a5bdcbcc4ec25ca8385c23c892f5e1594 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jls5177
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b63eec0a5bdcbcc4ec25ca8385c23c892f5e1594 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymctp_exerciser_serial-0.2.5-py3-none-any.whl.
File metadata
- Download URL: pymctp_exerciser_serial-0.2.5-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4312055d75711722e8db85a6352fdc5ad89847da5ac78ab2e682bed928636006
|
|
| MD5 |
13a40c903fe0f93ff176d176db440f60
|
|
| BLAKE2b-256 |
1c15426633e639143582db628777f8e066451d76e16ccf502d79a763e7ca18ce
|
Provenance
The following attestation bundles were made for pymctp_exerciser_serial-0.2.5-py3-none-any.whl:
Publisher:
publish.yml on jls5177/pymctp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymctp_exerciser_serial-0.2.5-py3-none-any.whl -
Subject digest:
4312055d75711722e8db85a6352fdc5ad89847da5ac78ab2e682bed928636006 - Sigstore transparency entry: 749378743
- Sigstore integration time:
-
Permalink:
jls5177/pymctp@b63eec0a5bdcbcc4ec25ca8385c23c892f5e1594 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jls5177
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b63eec0a5bdcbcc4ec25ca8385c23c892f5e1594 -
Trigger Event:
push
-
Statement type: