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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

cyleb128-0.1.2-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.2-cp38-cp38-win_amd64.whl (27.1 kB view details)

Uploaded CPython 3.8 Windows x86-64

cyleb128-0.1.2-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.2-cp37-cp37m-win_amd64.whl (26.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

cyleb128-0.1.2-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.2-cp36-cp36m-win_amd64.whl (26.6 kB view details)

Uploaded CPython 3.6m Windows x86-64

cyleb128-0.1.2-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.2.tar.gz.

File metadata

  • Download URL: cyleb128-0.1.2.tar.gz
  • Upload date:
  • Size: 42.5 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.2.tar.gz
Algorithm Hash digest
SHA256 e6ad7edd8ee21d5cb9278d959e987463aad61ac05e14bfa93eb31f52f4d5a5bb
MD5 32c01fb3e79127293df1309fe0e7e970
BLAKE2b-256 5380cf9cce949f00289c84d31d4520dc4ec6911447dc35ca3aff3c3c5e77c8ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6f2d2297ca0207e9ec04c491b8a7896db8afd9336bf90575fe3f58edb50e8be9
MD5 557611dd1bcb18c35953ed43d70886dc
BLAKE2b-256 0712a2345457a9b6abacd264b04a57ff5b0c11c5decea79627c4c29b30f752fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1350dac11f6edbe5a2dd619f116acb90a39d9d80a4389ef18fe1e189d6106c7d
MD5 93e94f0096728ffb53d74b4d45749365
BLAKE2b-256 3bbf68e83d0c396dad4d35407e11922c824d0e610186e45388e816682e8d8297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6fa5cc91e154a6145bb158adb76d179786acaf39c85ccf63473d34f1ef554107
MD5 7bb0c7287ecc50e30c9ae8cd1e8ef8f2
BLAKE2b-256 2825b358b507dc8d4f5fa9fc9d58e6610a8350f1299df1f4ee74d7a5e9d133c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e9dfbbc8e02d836edf5837c5e13799ac78d351099ea8182274c9cb317d338c86
MD5 e2e523ab1a946f2f85b1b5601260ad78
BLAKE2b-256 d05017643d3d458c09579565dcf73596fedcc9febac40113a89ab2fa5562ee35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3707a59c3dc1a1ebcb95db8f9c41f92d084a2c7d5730f0bea161f6898374191b
MD5 7446a0642b543a7c7713fcdf2fe051b1
BLAKE2b-256 25bc4aa8e5a2cfeae06ac22ceecff426f36187d9b2d8b968c8089013f0ec7255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f18246feb35404a54bb2e130078e1591262a841ec0d76155a0f4ceafdf77d6be
MD5 8faf6f0d265d4d5ba388324b70e3d6c0
BLAKE2b-256 586bd8f21cfa4704b62205e4d8ec44672a308623c30b3fc24960d71fb65cb303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 de71a564126ddf1947e819cbbfa1fe499b5688bb3e92ecce726603c61405a491
MD5 22372281ded039b83af996041d783d5a
BLAKE2b-256 5b844619aca14d3c1d5d71fd6e7b76c1de1428cdda887d3b48ea985987f1fcd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyleb128-0.1.2-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.2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 457e9cbc0b0a088f8c3f732774c96610d138f5f6ed4e082a68aedba83f36177f
MD5 679059ed4eb95e35bda0db581a190a77
BLAKE2b-256 1be7543ad72070b6967847f5b1e8abbdf204e503425fca1338ed32473f5018dc

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