Skip to main content

Library for hamming code

Project description

Library for hamming encode or decode.

Installation

  • Compile and install the library:

    pip3 install libhamming
  • After installation you can run unit tests to make sure that the library works fine. Execute:

    python -m libhamming.test

Usage

In Python 3::

import libhamming as hamming

Example

import libhamming as hamming

hamming.encode(b’0111111100’)

hamming.encode(b’x00x01x01x01x01x01x01x01x00x00’)

hamming.decode(b’00001110111100’)

hamming.decode(b’x00x00x00x00x01x01x01x00x01x01x01x01x00x00’)

V0.2 (2019-03-21)

  • Release ver0.2

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

libhamming-0.3-cp36-cp36m-win32.whl (26.5 kB view hashes)

Uploaded CPython 3.6m Windows x86

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