Skip to main content

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.3.tar.gz (42.4 kB view hashes)

Uploaded Source

Built Distributions

cyleb128-0.1.3-cp39-cp39-win_amd64.whl (26.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

cyleb128-0.1.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (79.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

cyleb128-0.1.3-cp39-cp39-macosx_10_14_x86_64.whl (23.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

cyleb128-0.1.3-cp38-cp38-win_amd64.whl (27.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

cyleb128-0.1.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (82.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

cyleb128-0.1.3-cp38-cp38-macosx_10_14_x86_64.whl (23.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

cyleb128-0.1.3-cp37-cp37m-win_amd64.whl (26.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

cyleb128-0.1.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (79.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

cyleb128-0.1.3-cp37-cp37m-macosx_10_14_x86_64.whl (23.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

cyleb128-0.1.3-cp36-cp36m-win_amd64.whl (26.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

cyleb128-0.1.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (78.5 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.5+ x86-64

cyleb128-0.1.3-cp36-cp36m-macosx_10_14_x86_64.whl (23.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page