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.1

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.1
File Size Uploaded Provenance Actions
cobs_proto-0.1.1.tar.gz 10.8 kB With provenance Details for cobs_proto-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 21.7 kB

Release files / cobs_proto-0.1.1.tar.gz

Download URL cobs_proto-0.1.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4af6afe6dac72bb335d5901f070b307dcf61e4838e6323fe95dc24b8edf03c9a
BLAKE2b-256 checksum
How to use checksums
bc58ab9a8d0fd5ba6c1d10f3a90cce00c758ab4daafbe863c9c696b027f3b5a6
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 Sep 8, 2026.

Transparency log

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

Download URL cobs_proto-0.1.1-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79e206f0f043ba5467917e54eecf977f4e508e6e3737d23d2028674114ecec8b
BLAKE2b-256 checksum
How to use checksums
0b69dd32120317aa71d357ee66c10e5c20691d2a5494f5a503827a0a02ccd416
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 Sep 8, 2026.

Transparency log

Security for cobs-proto 0.1.1

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.1.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 Sep 8, 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.1 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