Skip to main content

Consistent Overhead Byte Stuffing (COBS)

Project description

Python functions for encoding and decoding COBS.

Intro

Functions are provided for encoding and decoding according to the basic COBS method. The COBS variant “Zero Pair Elimination” (ZPE) is not implemented.

A pure Python implementation and a C extension implementation are provided. If the C extension is not available for some reason, the pure Python version will be used.

References

http://www.stuartcheshire.org/papers/COBSforSIGCOMM/

http://www.stuartcheshire.org/papers/COBSforToN.pdf

Supported Python Versions

Python >= 2.4 and 3.x are supported, and have both a C extension and a pure Python implementation.

Python versions < 2.4 might work, but have not been tested. Python 3.0 has also not been tested.

Installation

The cobs package is installed using distutils. If you have the tools installed to build a Python extension module, run the following command:

python setup.py install

Unit Testing

Basic unit testing is in the test subdirectory. To run it:

python test_cobs.py

License

See LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

cobs-0.7.0.zip (17.6 kB view hashes)

Uploaded Source

cobs-0.7.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distributions

cobs-0.7.0.win32-py3.1.msi (131.1 kB view hashes)

Uploaded Source

cobs-0.7.0.win32-py2.6.msi (114.7 kB view hashes)

Uploaded Source

cobs-0.7.0.win32-py2.5.msi (114.7 kB view hashes)

Uploaded Source

cobs-0.7.0.win32-py2.4.exe (68.2 kB view hashes)

Uploaded Source

Supported by

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