Python bindings for SafeSerial SDK
Project description
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
Project details
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 safeserial-0.1.2.tar.gz.
File metadata
- Download URL: safeserial-0.1.2.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16668143573fad45cec818e2eb6a5f4e40795f2e13e5f4b3eaf2c37026ab9d98
|
|
| MD5 |
73f9b0bad6b7068ebe46dc4d6f3fa6dd
|
|
| BLAKE2b-256 |
8f34c45368ddf8d57156d1cff87b20e322ed59bffb0ddd232244566ceff25368
|
File details
Details for the file safeserial-0.1.2-cp39-cp39-macosx_26_0_arm64.whl.
File metadata
- Download URL: safeserial-0.1.2-cp39-cp39-macosx_26_0_arm64.whl
- Upload date:
- Size: 121.3 kB
- Tags: CPython 3.9, macOS 26.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f05b6d1db54cf276999ef3ecaa5715eb5b977e090247a16b3ed874c42beaf8c
|
|
| MD5 |
cad4d2c4bbf36ad68a16fab1a3dc8ea0
|
|
| BLAKE2b-256 |
d266cb47f120d2b4026b18422deb2019d23175e2ea290ca4f05fb351b4d15ac6
|