Skip to main content

pyccobs

pyccobs provides Python bindings to ccobs using only the standard library's ctypes module. The ccobs C library is vendored and built into the package, so a separate ccobs installation is not required. It includes one-shot and streaming APIs as well as exposing the native library handle.

Build and use

Python 3.11+ and CMake 3.15+ are required.

python -m pip install -e .

The package build invokes the vendored ccobs CMake project directly. Because the package uses ctypes rather than the CPython extension API, the resulting wheel is tagged for Python 3 generally (for example, py3-none-win_amd64).

Set CCOBS_LIBRARY_PATH to a compatible shared library (or its directory) to override the bundled copy when testing a different ccobs build.

import ccobs

wire = ccobs.encode(b"hello\0world")
assert ccobs.decode(wire) == b"hello\0world"

batch = ccobs.encodev([b"first", b"", b"third"])
assert batch == b"".join(ccobs.encode(item) for item in [b"first", b"", b"third"])

encoder = ccobs.Encoder()
wire = encoder.feed(b"hello ") + encoder.feed(b"world", end_message=True)
wire += encoder.feedv([b"second", b"third"])
encoder.close()

decoder = ccobs.Decoder()
decoded, used, frame_sizes = decoder.feedv(wire)
decoder.close()

Decoder.feed() returns (decoded_bytes, consumed_bytes, message_complete) and stops after the first complete frame. Decoder.feedv() returns (decoded_bytes, consumed_bytes, frame_sizes) and decodes every complete frame in the supplied chunk in one ccobs_decodev() call. frame_sizes gives the decoded size of each completed frame in the flat output; a size may include bytes returned by an earlier partial call. Encoder.feedv() encodes a batch of complete messages through the native streaming vector API. Both stateful classes are context managers and have reset() and close().

For direct access to ccobs_create, ccobs_encodev, and the rest of the C API, use ccobs.load_library(). Its functions have their ctypes argtypes and restype declarations installed.

Metadata

Release files for pyccobs 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 pyccobs 0.1.1
File Size Uploaded Provenance
pyccobs-0.1.1.tar.gz 15.8 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for pyccobs 0.1.1
File
pyccobs-0.1.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
pyccobs-0.1.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
pyccobs-0.1.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
pyccobs-0.1.1-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details
pyccobs-0.1.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
pyccobs-0.1.1-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details

Total release size: 123.7 kB

Release files / pyccobs-0.1.1.tar.gz

Download URL pyccobs-0.1.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b5ee6b948d634c920909e3c8366f26d94fc393b7d2d7b3267d5f9b0759a26c
BLAKE2b-256 checksum
How to use checksums
47a3898589f2eb1026cc4fef7844dbec626fe09f1a162ab0264db2aed9c75a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-win_arm64.whl

Download URL pyccobs-0.1.1-py3-none-win_arm64.whl
Size 13.7 kB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
7fb0633d6503016790e4c2dafcc77fce518f94bee51e6b4abf42a574362450a6
BLAKE2b-256 checksum
How to use checksums
37aa70dd296734642e8d8d7a7d23aeddf8b59a7b40c7a51b919709dbb563f684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-win_amd64.whl

Download URL pyccobs-0.1.1-py3-none-win_amd64.whl
Size 14.5 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4907f8df31dd5fdf4c73c3a934c07e7eeda7ce3ff00923a7dbe8027a9ea687c4
BLAKE2b-256 checksum
How to use checksums
58abce35834c697e0dee238a856e6c58112b9fd9123fb58a77576e3d654e4c57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pyccobs-0.1.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 23.1 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8f2bd4d8b4c252b3edcb9c1f38d4ee9b1bdd3dc89ea89d8db82e5ed5ba2c9e9a
BLAKE2b-256 checksum
How to use checksums
3801b7f831ef24edee18edb03cedc20a8ea2fb58906885d5ad1b5ce758592085
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL pyccobs-0.1.1-py3-none-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 21.9 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b09dc6c87f3657819ac9537440d0c92452f6ebb99ec028e92638b25aee8b87bc
BLAKE2b-256 checksum
How to use checksums
914a41a7bcd51d9815008ceb2618bfaf7d84f94643ac4a0c066c73dadc1b04ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-macosx_11_0_arm64.whl

Download URL pyccobs-0.1.1-py3-none-macosx_11_0_arm64.whl
Size 17.6 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d349a0ad2c582796ce96981af04efab96b0d58557b7803e1e8d230d0f8f5cf6e
BLAKE2b-256 checksum
How to use checksums
b26763a9e8351ed6fea6dad47fd5904476d7302fc643ee07068196df475fec82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Release files / pyccobs-0.1.1-py3-none-macosx_10_9_x86_64.whl

Download URL pyccobs-0.1.1-py3-none-macosx_10_9_x86_64.whl
Size 17.1 kB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
f244677a776419b8b3cd8dfe0f978aecf63662261cf78254f07ad886221b9b42
BLAKE2b-256 checksum
How to use checksums
74cf24a570af8c6842d74032f4de1a21fa2ec41bcc880462c698083815abecaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 21, 2026.

Transparency log

Security for pyccobs 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

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pyccobs-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 Oct 21, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

7 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