Python package implementing nibble and byte coding.
Project description
Python package implementing nibble and byte coding.
How do I install this package?
As usual, just download it using pip:
pip install nibble_coding
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
Usage examples
from nibble_coding import nibble_coding, byte_coding
byte_coding(0)# 10000000
byte_coding(40)# 10101000
byte_coding(80)# 11010000
byte_coding(120)# 11111000
byte_coding(160)# 0000000110100000
byte_coding(200)# 0000000111001000
byte_coding(240)# 0000000111110000
byte_coding(280)# 0000001010011000
byte_coding(320)# 0000001011000000
byte_coding(360)# 0000001011101000
nibble_coding(0) # 1000
nibble_coding(1) # 1001
nibble_coding(2) # 1010
nibble_coding(3) # 1011
nibble_coding(4) # 1100
nibble_coding(5) # 1101
nibble_coding(6) # 1110
nibble_coding(7) # 1111
nibble_coding(8) # 00011000
nibble_coding(9) # 00011001
nibble_coding(10) # 00011010
nibble_coding(11) # 00011011
nibble_coding(12) # 00011100
nibble_coding(13) # 00011101
nibble_coding(14) # 00011110
nibble_coding(15) # 00011111
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 Distribution
nibble_coding-1.0.1.tar.gz
(3.2 kB
view hashes)