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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013bde2b19c22306aa8ad41f367c9485f368856a704499649c3e51b89bfc9179
|
|
| MD5 |
ae9c344f5551d913bc35ffd87d229701
|
|
| BLAKE2b-256 |
4bdbcc1e37a6779a23df0e498a95c8e3870dd2311a4ce9fcaa97ac9c856847bb
|