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 details)

Uploaded Source

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

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

File details

Details for the file cobs-0.7.0.zip.

File metadata

  • Download URL: cobs-0.7.0.zip
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cobs-0.7.0.zip
Algorithm Hash digest
SHA256 152163adf150e052535a5a603cadf18b17037cd8bb005d0fa62710d1bd1dfb91
MD5 0f883ea88653a4bcb8da5019ba45c737
BLAKE2b-256 b75c45a35d681f95d8d2276e37e6cdb4488e6694b9d6a4df2f5f2f6b452658e2

See more details on using hashes here.

File details

Details for the file cobs-0.7.0.tar.gz.

File metadata

  • Download URL: cobs-0.7.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cobs-0.7.0.tar.gz
Algorithm Hash digest
SHA256 0bd05ba4407b7dd44b820366037812746bb3a1641ede3cc32ca0ba6e8dfd7aeb
MD5 dc12bfca0026028ecce71927ecf760fb
BLAKE2b-256 16c1003fd2ad422ec3452be1c40a0c6ae2f26f32523e8e24bf1310a4bc145173

See more details on using hashes here.

File details

Details for the file cobs-0.7.0.win32-py3.1.msi.

File metadata

File hashes

Hashes for cobs-0.7.0.win32-py3.1.msi
Algorithm Hash digest
SHA256 a316d2ca389c7386ac8d7d70600be5d0293cc72a537554a38f0afafbfe85c6cf
MD5 051add6f55ace2767296175b8918feba
BLAKE2b-256 fe011e832223f7f6692f672a28a4a66735edfce1adbe4fa1cd19560237f9361b

See more details on using hashes here.

File details

Details for the file cobs-0.7.0.win32-py2.6.msi.

File metadata

File hashes

Hashes for cobs-0.7.0.win32-py2.6.msi
Algorithm Hash digest
SHA256 97a82a763c6e1a7f1e7eeb2688d316846ea95fefed23265e447cfc6ce24d50ec
MD5 b16ac443242f9c84b84ca1094332cc05
BLAKE2b-256 bd5680d9736faf2d0776731341dcd9e309b5a0e3e366016fa6a0cd90d1337b58

See more details on using hashes here.

File details

Details for the file cobs-0.7.0.win32-py2.5.msi.

File metadata

File hashes

Hashes for cobs-0.7.0.win32-py2.5.msi
Algorithm Hash digest
SHA256 585560b21dd3df1afb92c4147ab33fae5e30c4364ea86fc0db073dcbb18f5b95
MD5 1b77c8d79795b88e34190ece0c59d0ff
BLAKE2b-256 ca3241dd300781fe5b085268c350a6f5bf506496801f20d83cc4e7499a0fe317

See more details on using hashes here.

File details

Details for the file cobs-0.7.0.win32-py2.4.exe.

File metadata

File hashes

Hashes for cobs-0.7.0.win32-py2.4.exe
Algorithm Hash digest
SHA256 6ad4c428f3c81d0b6d5dea709027eb059847b64a231fea1ba9c52db054388b9f
MD5 4a6d46bff14c99ee4037f97eb22a14b3
BLAKE2b-256 5b0222bfa9711face284f1e738395669ca685439f27166fa171ad4d0f2b7f380

See more details on using hashes here.

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