MFD SERIAL
Tool for communication via serial port (e.g UART).
Usage
Open serial connection put serial port and baud rate:
port can be e.g. COM1 if windows or /dev/ttyUSB0 if linux
serial = SerialConnection(serial_port='/dev/ttyUSB0', baud=115200)
Read data from serial:
serial.read()
Send text msg via serial port
serial.send('Text to send')
Read until some expression appear:
serial.read_until('Module Error')
Close serial connection:
serial.close()
Read in background (e.g. if we want to run tests and log everything what happen on serial port during the test)
serial.read_in_background()
(... test steps ...)
serial_log = serial.get_result() #get_result will automatically close the connection
SerialConnection can be used as context manager:
with SerialConnection(serial_port='/dev/ttyUSB0', baud=115200) as serial:
log = serial.read()
Issue reporting
If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.
Metadata
Release files for mfd-serial 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mfd_serial-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for mfd_serial-1.7.0-py3-none-any.whl |
Release files / mfd_serial-1.7.0-py3-none-any.whl
| Download URL | mfd_serial-1.7.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af694f818fbb69e36b9eca59045c8f43f2209c41d1a41e368d1dc7f5512422d9
|
|
BLAKE2b-256 checksum How to use checksums |
2b0cbf6a5ff4f33c2bc40c1a5812738f297974e138175d3bbfc4b3bbb3d3f014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mfd-serial 1.7.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.