AsyncDataPackage
AsyncDataPackage is a lightweight asyncio-based framing layer that converts arbitrary byte streams into structured Python dictionaries.
It is transport agnostic and can operate on:
- TCP
- SSH
- WebSockets
- Bluetooth
- Serial Ports
- UDP
- Custom transports
The transport only needs to provide:
await send(bytes)
await receive(...)
Installation
pip install asyncdatapackage
Quick Example
from asyncdatapackage import AsyncDataPackage
datapackage = AsyncDataPackage(
write_function=my_send,
read_function=my_receive
)
await datapackage.start()
Send:
await datapackage.send_datapackage(
{
"type": "DATA",
"message": "hello"
}
)
Receive:
packet = await datapackage.receive_datapackage()
Result:
{
"type": "DATA",
"message": "hello"
}
Features
- asyncio-native
- Dynamic parameter updates
- FIFO packet queue
- Automatic frame reconstruction
- Fragmentation tolerant
- Transport independent
License
MIT
Metadata
Release files for asyncdatapackage 0.1.9
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 | |
|---|---|---|---|---|
| asyncdatapackage-0.1.9.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncdatapackage-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / asyncdatapackage-0.1.9.tar.gz
| Download URL | asyncdatapackage-0.1.9.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
617d1bff1bdb8a9edc1d2467f6a3e16528b6733d9a58aacc2623a0b69dbbe396
|
|
BLAKE2b-256 checksum How to use checksums |
9c83fd33fb285fd77bb9ecf1f31bf5f6cf0339f88d2a8251b3a38755f17a4ac0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / asyncdatapackage-0.1.9-py3-none-any.whl
| Download URL | asyncdatapackage-0.1.9-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d011c43d1bc0de4e70e218d9a1da17a974bfa73f05d28fd125617d2ba1c67c1e
|
|
BLAKE2b-256 checksum How to use checksums |
6b388f5897f9af5949afe04f2502ca2e5859f5e4da85b3884ae87b21734b9a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for asyncdatapackage 0.1.9
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.