Varints, a method of serializing integers using one or more bytes
Project description
pyvarint
Varints, a method of serializing integers using one or more bytes
Install
$ pip install pyvarint
Example
from random import sample
from pyvarint import decode, encode
ten_rand_ints = sample(range(100), 10)
for rand_int in ten_rand_ints:
encoded = encode(rand_int)
decoded = decode(encoded)
assert decoded == rand_int
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
pyvarint-0.0.1a2.tar.gz
(14.7 kB
view hashes)
Built Distribution
pyvarint-0.0.1a2-py3-none-any.whl
(14.4 kB
view hashes)
Close
Hashes for pyvarint-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac1f5b99e1aa30d413327052c0538e4a4dd5737a4678e09c81c03a27a58d602 |
|
MD5 | 3809b72449260a81778d962d40d7c497 |
|
BLAKE2b-256 | ecbf2091007a1e315046f5387ecaa737a4b72d25478c4a9844fcfc655abde8fa |