SafeSerial for Python
Reliable serial messaging with CRC32, fragmentation, and ACK/Retry. Designed for workflows where silent corruption is unacceptable.
Install
pip install safeserial
Quickstart
import safeserial
bridge = safeserial.DataBridge()
def on_data(data):
print("Received:", data)
if bridge.open("/dev/ttyUSB0", 115200, on_data):
bridge.send(b"Hello, SafeSerial")
bridge.close()
Why SafeSerial
- Guaranteed delivery with ACK/Retry
- CRC32 corruption detection
- Automatic fragmentation and reassembly
- Resilient reconnect support
API (Essentials)
DataBridge.open(port, baud_rate, on_data)
Opens a serial port with reliable communication enabled.
port: device path (e.g./dev/ttyUSB0,COM3)baud_rate: default115200on_data: callback for received payloads
Returns: bool (connected)
DataBridge.send(data)
Sends data with guaranteed delivery.
data:bytes
DataBridge.close()
Closes the serial port.
Build From Source
cd bindings/python
uv sync
uv pip install -e .
License
MIT
Metadata
Release files for safeserial 0.1.3
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 |
|---|---|---|---|---|
| safeserial-0.1.3.tar.gz | 146.7 kB | Without provenance | Details for safeserial-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| safeserial-0.1.3-cp39-cp39-macosx_26_0_arm64.whl | CPython 3.9 | CPython 3.9 | macOS 26.0+ ARM64 | Details for safeserial-0.1.3-cp39-cp39-macosx_26_0_arm64.whl |
Total release size: 268.0 kB
Release files / safeserial-0.1.3.tar.gz
| Download URL | safeserial-0.1.3.tar.gz |
|---|---|
| Size | 146.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e022f0f73970831889a84fa46ad07c95c11e181101fe70d922697ab57d808696
|
|
BLAKE2b-256 checksum How to use checksums |
a86e064a8460c15bd5d2f8d9d1ebb406c271cbfb9243618ee449f8cc19e815c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / safeserial-0.1.3-cp39-cp39-macosx_26_0_arm64.whl
| Download URL | safeserial-0.1.3-cp39-cp39-macosx_26_0_arm64.whl |
|---|---|
| Size | 121.3 kB |
| Tags | CPython 3.9 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
31a8bae932203858bfa4e7390f0c4aa547c3d61237ac32d6ba9ef5483bd584fe
|
|
BLAKE2b-256 checksum How to use checksums |
a9b8d109eb654d0cba33ded473881210339f38be0a700e0071aed4281c01c773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Security for safeserial 0.1.3
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.