anyio_serial
A small Python wrapper that combines anyio and pySerial.
Implementation detail: This library is using too many short-lived threads. Yes this should be improved.
Quick start
A simple serial port reader
anyio_serial is a reasonably intuitive mash-up of pySerial and anyio’s Stream:
import anyio
from anyio_serial import Serial
async def main():
async with Serial(port='COM1') as port:
while True:
print((await port.receive()).decode(errors='ignore'), end='', flush=True)
anyio.run(main)
API
anyio_serial’s interface is really simple:
from anyio_serial import Serial async with Serial(...) as port: # same options as serial.Serial ... # use "port" like any other anyio ByteStream
Attributes
The states of the serial status lines cd, cts, dsr and ri are supported.
Metadata
Release files for anyio-serial 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anyio_serial-0.3.2.tar.gz | 4.1 kB | Without provenance | Details for anyio_serial-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anyio_serial-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for anyio_serial-0.3.2-py3-none-any.whl |
Total release size: 8.1 kB
Release files / anyio_serial-0.3.2.tar.gz
| Download URL | anyio_serial-0.3.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ccc24b717dd943d692b0cdf221081ae0d1c5e3cbe2cf456c0bebd54601b7d8e
|
|
BLAKE2b-256 checksum How to use checksums |
ec0ae6bd8b5ae39038e699f97266abc5a5099e0bb30cb43936bf34b516398250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / anyio_serial-0.3.2-py3-none-any.whl
| Download URL | anyio_serial-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
702a75b218d0536021beecc3cdecf2bdbb5c962b79af312da96b7919da4b43e2
|
|
BLAKE2b-256 checksum How to use checksums |
50c023b76d1c7c52872ee0a01a3f8948c9de7db20ab3164560029d72529525ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for anyio-serial 0.3.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.