Skip to main content

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

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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.6mWindows x86

File details

Details for the file libhamming-0.3-cp36-cp36m-win32.whl.

File metadata

  • Download URL: libhamming-0.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.5

File hashes

Hashes for libhamming-0.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 013bde2b19c22306aa8ad41f367c9485f368856a704499649c3e51b89bfc9179
MD5 ae9c344f5551d913bc35ffd87d229701
BLAKE2b-256 4bdbcc1e37a6779a23df0e498a95c8e3870dd2311a4ce9fcaa97ac9c856847bb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3 This release

1 file

0.2

1 file

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