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 details)

Uploaded Source

Built Distributions

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

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 details)

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 details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

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

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 details)

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 details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

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

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 details)

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 details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

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

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 details)

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 details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: cyleb128-0.1.3.tar.gz
  • Upload date:
  • Size: 42.4 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.3.tar.gz
Algorithm Hash digest
SHA256 43b441f1154118f80727c19e583a3505d948884420f0e48b6548ca9e25a78539
MD5 e3ec5919f744f8858e188dafcec56cc3
BLAKE2b-256 adff6088b8898382f40072a74ab570dced63d263f65da3a89d448cf71bd83121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 43dcf68203c2b31e1885fe9fc6f82fb355945728326fb14fbe771807665a4410
MD5 8eba7fd0026ed36f41bf699d403a9ad3
BLAKE2b-256 3840e7ec84473396e973d1e375ee572b7d3b6f996b98650c10012f3830935494

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f5fea869724230ee502f8939a798e8ef05186c45d171bb063b6f394ca1f32037
MD5 362003426bb33c5519dca97d1982cb1f
BLAKE2b-256 ffad520e316ab954d2253ee007b327c52553dbd3ddf2c9ca18f0f9e971679592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b10fde199049974f5f4714c767c6cc18919220a863a11c7c66792a24131a3f9b
MD5 b8aecbf71bd851c9c13ce7b1c93ce20c
BLAKE2b-256 8e19073e1353c1ba2501f4d077ad826547bfebfc09f02b3e5cec7915a752d730

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 27.1 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.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a0fc4abe81f8c5169863f60217b121ebac766043e117009d7f017ed478459bf
MD5 6275c8db487adb207a66e7efbdfed13b
BLAKE2b-256 9534a168a61632899678470b6b23d51bd978081cfee26ad6e9fc5b6b0a62df68

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 56e97acd9d4a45a61dcff645a6a6b19ad641364b674cacce596f412e50802be9
MD5 21347f150f32f9dc13fa74f35c1fa479
BLAKE2b-256 2d0cd0238fd5e9db3b38a59fee7654e0f7033815bb1f1ee14dc7e998e82e1627

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3a2157e2fb38eb40d7fedbee37890d36dc1d6cc0afe3afc66e076c9f7abc471e
MD5 7f1a265ca7675d4866728087b2d0bbe2
BLAKE2b-256 484419a0abdba17473cedf2a1aad55b688f55c1b08266da12cd489d7b8a03e7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2ca96d7efc26ca4aed11a92e848da0fe42c8d59e72d6505f00b861957546e03a
MD5 48c6c7229dfad5a3a435d6766e9fe8d0
BLAKE2b-256 1369d839729b5c84552f7564eee18f7968b05837b7184036e5326e6645f068a6

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7eeb037e755174973a56980f8b4b60993833f9523986f863ed7078918acac571
MD5 75d5d1e7cc3773c803f7f9a622706424
BLAKE2b-256 5229e46e1ec29ca20e9eb1f1865c78d8759728ae5dc7e8837b13dd5795f8b1de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c66e059547842f78764a51cf1ec314e0b7b7be8e55a5cd62305f236429e85f21
MD5 7f4276c30093d63dadcd8770f45ef72f
BLAKE2b-256 db1f2deebd551811fea68e8e88b32aaed6ef71477f585c78f86088fabe8cc834

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 9451cb14e95fd2d8ca10393dec22476b6620f332ed6ed01ea8c3897b70887640
MD5 f87c059b772f62017ed3fdc04489adba
BLAKE2b-256 91fb28732ba2559fcfccc3674db1f49f5b6b36322df32af7d3e206782a1669f4

See more details on using hashes here.

File details

Details for the file cyleb128-0.1.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cyleb128-0.1.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bcf812a466310a4f349fba38446c1d485e5f8d95a8cb566c18c1342902cf4fc3
MD5 52dfc744b024ff2401ca697567f13421
BLAKE2b-256 14465aabf9801f528a8f3af74601d11e1a710c88021297943d4b75e258e1323a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.3-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.3-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2962fe2826d36778e5e149cbb018a6e0ce447edc64ccf7ffb5535ae112b21b9d
MD5 269bba2d134bbbd213bcdf12f8717246
BLAKE2b-256 97ace3c4c0b4f66ece5f668f6f689f0aa6d35c40234f57befb03eccaf77888ae

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