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:
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e71ce9300310d4df7624f973bf226c2d4ea713eb7101f35a1f802738e2db50 |
|
MD5 | 5971ced3895f6718ff964a222678288b |
|
BLAKE2b-256 | 5e49d39f8ee41e46faa839a43cf8a7c7adcce54470bb0bb35300047d0a7d2f8c |