Python package implementing truncated binary encoding.
Project description
Python package implementing truncated binary encoding.
How do I install this package?
As usual, just download it using pip:
pip install truncated_binary_encoding
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
Usage examples
from truncated_binary_encoding import truncated_binary_encoding
truncated_binary_encoding(0, 10) # 000
truncated_binary_encoding(1, 10) # 001
truncated_binary_encoding(2, 10) # 010
truncated_binary_encoding(3, 10) # 011
truncated_binary_encoding(4, 10) # 100
truncated_binary_encoding(5, 10) # 101
truncated_binary_encoding(6, 10) # 1100
truncated_binary_encoding(7, 10) # 1101
truncated_binary_encoding(8, 10) # 1110
truncated_binary_encoding(9, 10) # 1111
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for truncated_binary_encoding-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c6fa76e969d800efb25ee736ce771734f059c0c9e63fa9ac2dcb449248aa24 |
|
MD5 | 77d0c16559acd7ddc2cce49b879deeea |
|
BLAKE2b-256 | 66af1ad2b8228cee8cd1b8573475e397805796836597875ffa12831a35080134 |