Skip to main content

Python bindings for SafeSerial SDK

Project description

SafeSerial SDK Python Bindings

Python bindings for the C++ SafeSerial SDK.

Installation

Development install using uv:

uv sync
uv pip install -e .

Usage

import safeserial

# High-Level Reliable Bridge (ARQ)
bridge = safeserial.DataBridge()

def on_data(data):
    print(f"Received: {data}")

# Open connection (Auto-reconnect enabled by default)
if bridge.open("/dev/ttyUSB0", 115200, on_data):
    print("Connected!")
    
    # Check stats
    print(bridge.stats)

    # Send reliable message
    bridge.send(b"Hello World")

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

safeserial-0.1.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safeserial-0.1.0-cp39-cp39-macosx_26_0_arm64.whl (121.1 kB view details)

Uploaded CPython 3.9macOS 26.0+ ARM64

File details

Details for the file safeserial-0.1.0.tar.gz.

File metadata

  • Download URL: safeserial-0.1.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for safeserial-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb1a0702b52802ecd9fe76b823eabafcbcdd7625cc02a31051cfa0967cb48991
MD5 21c13aa245ddbfe54ac473682a421b9a
BLAKE2b-256 d0757f2d861177320cf08451045c0408d01a453005cccd3c3cd006d8af976016

See more details on using hashes here.

File details

Details for the file safeserial-0.1.0-cp39-cp39-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for safeserial-0.1.0-cp39-cp39-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 4138f831142c0048932bfaa5be64cfdbb9857670a9f05a6cff5f676ae0d12d41
MD5 d40d406c37af55fea5e48142c88f510c
BLAKE2b-256 8648635d5c1218119d1a8ea9eff289a7a76a8241678c13000f96ea8a3aa065a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page