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.1.tar.gz (42.0 kB view details)

Uploaded Source

Built Distributions

cyleb128-0.1.1-cp39-cp39-win_amd64.whl (26.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

cyleb128-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (109.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

cyleb128-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl (23.3 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

cyleb128-0.1.1-cp38-cp38-win_amd64.whl (27.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

cyleb128-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (110.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

cyleb128-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl (23.4 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

cyleb128-0.1.1-cp37-cp37m-win_amd64.whl (26.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

cyleb128-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (101.1 kB view details)

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

cyleb128-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl (23.2 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

cyleb128-0.1.1-cp36-cp36m-win_amd64.whl (26.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

cyleb128-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (99.9 kB view details)

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

cyleb128-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (23.1 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file cyleb128-0.1.1.tar.gz.

File metadata

  • Download URL: cyleb128-0.1.1.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for cyleb128-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65e9db3a8fedffcd736ac0c63daad181597c0ea7f4daff6cbb6782a2e075818c
MD5 a6df3659246dbf100a4ad12b931ea9d7
BLAKE2b-256 f5e0c881135e55bb994e844f74393483e5fecd0be030f73e22eebbd61cbb62bb

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for cyleb128-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2add39681921846544ffa58f65643e92b24561d67cf554a7959362bc07b4da9a
MD5 959f4145500126107b44c5e514347512
BLAKE2b-256 6425873ae3e7a452308a3bfc50ff805533b484311cb9ff86cfe62500339205fc

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 85431ff2b0e7e68da068c83b14d4d669ac104276aec03f808dc2b668c9060c69
MD5 42e74981d31d9fc02cc8e00759c7a12d
BLAKE2b-256 82329767c9e1fd437a5a0b8ada9e4d4b63f3758a66ec390df512ccf5d97e13fd

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for cyleb128-0.1.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a20d40def0ffc7363639d28d22055cf9305fb6496c2c74d32105488199d02b17
MD5 699579dac1ed9e374557e997255a6b52
BLAKE2b-256 59d9ac1e2fa804bca0fe43979d1a6063ad8bb1b270704103f37c09f885135cf0

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for cyleb128-0.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 27edbdfa6b605317097e5cb8303cc1b19f970b698369a51ecf81036f0549bbbd
MD5 2c394b0287dc3357ae456df9ad4342b2
BLAKE2b-256 889aeaa082bab86dafea9ee3cbf6f7a3293c2375e3907ddf091e4687a132e453

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6b2c0f159009cf22a984fff62aa6d103c9a3603c93441fe6549fc35f96a9fb6f
MD5 aeb66526f5cce1d8fe7162e6f04e6c6c
BLAKE2b-256 6086ca15c054aae7a715461b39f2d4724e46cc5fff85e4343c614f90f382ee5e

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for cyleb128-0.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 630b915a073ae557d0cc1d735e299f06a5c6cfd925ba49fcafd715428ee34cbd
MD5 89cea006ae2900ec2041d0b290a8bb03
BLAKE2b-256 730d90fc5a78077872f315b9c1965360ecd85da49433996c7d89d35f2b511470

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.9

File hashes

Hashes for cyleb128-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 18a8e4d5eaecf9541dfd982d70242632500a1fd6e31518840d7df7a164aa0efc
MD5 186bf3eb14061f57509cf9b9c7f954f9
BLAKE2b-256 4168ec1c3ca9dffa8298af13621b97c6801b4166ca7400debd07cb7a3dc47f2b

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 14263995a4c1fd70bd11dc632e37d58047a869828dddc60a7f614b4558cb5ce3
MD5 d5f42e45322ac31d0cc0a306bce6b748
BLAKE2b-256 11115cf1f737900ee633c1ee717be0e94a13ecf5b1bbf30d4ed96c9fb4f3c462

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11

File hashes

Hashes for cyleb128-0.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 aa274d0ed4f1c2ce2c96d0c53f48c81fcfe9186caff008a4580417abfd38262a
MD5 ecf5f6076673591221aea9af1c5b0d8c
BLAKE2b-256 9868e7e115174f01878938213d36e7461703eb6a2236575a62ea2a072f7675a9

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.8

File hashes

Hashes for cyleb128-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 14da04f62cc0e4e1deaf9bca2a2bb158aec50cb4c0bb9d1af860e1fdb3820725
MD5 5193079a61da2870244792d46627c6e7
BLAKE2b-256 215f4a0a35aeeef3555213e203d884fe0740eab915f01d67798b623c4da7c269

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9d219eaeb6d27df56628ec4cba4bd01d0318b463adb2795a34c9c9705a7ba748
MD5 7e7972ebb2d153dc675cf89d5e3c2d3d
BLAKE2b-256 546ace9a841ece3bf39fe3ee7a68feddd69f47b2ab59d03f01af09f7f4612ea9

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: cyleb128-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.14

File hashes

Hashes for cyleb128-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f17a90d2004e83e89da0e7d897ac44aba029ccc3141c1ecf7278b9ebbbf5eb51
MD5 461f2c31e62ca7ebd9d10db7515f1929
BLAKE2b-256 bece238c9c9fd67e6d4f720f65b2b2e35b18587c165528ca0a8b1e47e845965b

See more details on using hashes here.

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