Skip to main content

Powerful little-endian base-128 encoding/decoding library for Python 3.

Project description

pyleb128

Powerful little-endian base-128 encoding/decoding library for Python 3.

Supports the following types:

  • Unsigned LEB128
  • Signed LEB128
  • Unsigned LEB128 +1 (ULEB128P1)

Example Usage

from pyleb128 import (
    uleb128,
    uleb128p1, 
    sleb128
)

# decode
print(uleb128.decode(b'\x80\x80\x80\x00'))

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

pyleb128-0.1.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

pyleb128-0.1.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyleb128-0.1.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10

File hashes

Hashes for pyleb128-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a6d0a306226ecca40108984637ce169aef401d587977435380ef274bd2b960c3
MD5 8cc24770f9155405c51761f97f8eedac
BLAKE2b-256 a7b6aa4be82d37d42a8a85b7252018b704b067ae6a306707602a5084b5413db4

See more details on using hashes here.

File details

Details for the file pyleb128-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyleb128-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10

File hashes

Hashes for pyleb128-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 720b38c214152d8127578f67f2bab6c3f95716a2e91551422cec42a2b913bf35
MD5 7ec0f9803249ea71f06c58c557c3f325
BLAKE2b-256 da15a7fed0a0e4cdbcbe83a8690859c605870e19c2a52e05b1031131189ccc27

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