Fast LEB128 implementation in cython
Project description
LEB128
Cython implementation LEB128 varint serialization format.
Installation
pip install cyleb128
Example
from leb128 import LEB128S, LEB128U
# Signed integer
print(LEB128S.encode(-123))
print(LEB128S.decode(LEB128S.encode(-321)))
# Unsigned integer
print(LEB128U.encode(123))
print(LEB128U.decode(LEB128S.encode(123)))
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
cyleb128-0.1.0.tar.gz
(42.0 kB
view details)
File details
Details for the file cyleb128-0.1.0.tar.gz
.
File metadata
- Download URL: cyleb128-0.1.0.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cea3cd8129478832fefc93e3eb3b9bb5e81e2cff1b6193dbee38d7946e86d5f |
|
MD5 | 2b47b92b7f35eb336c6826ffd1965abd |
|
BLAKE2b-256 | 51ff93ef31f4a09a9e8d05271d13e4c852da9e2288d8ff128da9d0074c8bf1b4 |