Skip to main content

cobs-proto

Host-side COBS + CRC framed protobuf transport for asyncio serial protocols.

Provides an asyncio.Protocol implementation with request-response structure and optional (unrequested) streaming readings.

See the Rust README for details on the matching device-side implementation. See the top-level README for details on the wire format.

This is a pre-v1 release and API stability is not guaranteed.

Usage

pip install cobs-proto
import asyncio
from cobs_proto import CobsProtoProtocol
from your_proto import packet_pb2

# Subclass to specify the decoded packet type
# Request-response only, see CobsProtoStreamingProtocol which adds device streaming data
class MyProtocol(CobsProtoProtocol[packet_pb2.HostPacket, packet_pb2.DevicePacket]):
    @staticmethod
    def _device_packet_type():
        return packet_pb2.DevicePacket

# Connect (via pyserial-asyncio or similar)
transport, protocol = await serial_asyncio.create_serial_connection(
    asyncio.get_running_loop(), lambda: MyProtocol(), port, baudrate=115200,
)

# Send a request and await the response
response = await protocol.send_request(packet_pb2.HostPacket(ping=packet_pb2.Ping()))

Metadata

Release files for cobs-proto 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cobs-proto 0.1.0
File Size Uploaded Provenance Actions
cobs_proto-0.1.0.tar.gz 10.4 kB With provenance Details for cobs_proto-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cobs-proto 0.1.0
File Interpreter ABI Platform Actions
cobs_proto-0.1.0-py3-none-any.whl Python 3 none any Details for cobs_proto-0.1.0-py3-none-any.whl

Total release size: 21.2 kB

Release files / cobs_proto-0.1.0.tar.gz

Download URL cobs_proto-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cafca80a896951375db31beaa269e49e38c63ddab3d707f217958d69ca6407d2
BLAKE2b-256 checksum
How to use checksums
445cade6fa452fae3c452fec0a7e0a5cda83020d31aecde8379e096df7b4aeab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / cobs_proto-0.1.0-py3-none-any.whl

Download URL cobs_proto-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
848b78c8b2fcefa8626ba25f12573a135509b6329e267ac59ed4d66e6905896f
BLAKE2b-256 checksum
How to use checksums
70f648e85540a0ca10c9a2c26775b069179de6ef6310f1b2a4d9eb2693ebbe80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Security for cobs-proto 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cobs_proto-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page