Skip to main content

PyBinIO

PyBinIO - is a wrapper around the struct python module. It contains convenient reader and writer classes that can be used to write primitive data types in a specific byte order.

In addition it supports:

  • LEB128 for encoding unsigned variable length integers.
  • Zigzag for encoding signed variable length integers.

Install

The package is available on PyPI.

$ python3 -m pip install pybinio

Usage

import binio

value = 255
writer = binio.BinaryWriter(binio.ByteOrder.LITTLE)
writer.write_uint8(value)

reader = binio.BinaryReader(writer.bytes, binio.ByteOrder.LITTLE)
assert value == reader.read_uint8()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybinio-0.1.3.linux-x86_64.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybinio-0.1.3-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file pybinio-0.1.3.linux-x86_64.tar.gz.

File metadata

  • Download URL: pybinio-0.1.3.linux-x86_64.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pybinio-0.1.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 5fd5d99354264daf6df9f7175ee9e9d76ea361d9856c3bacd7724ca52901ef55
MD5 e9defbacc5e2255d93fbd774cad52769
BLAKE2b-256 fbda9bd56d0c936fee910a9fe34df1fb97abf239a756542c8cd4452312dc8552

See more details on using hashes here.

File details

Details for the file pybinio-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pybinio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pybinio-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e09b3565995639d6abbea97b2a8cd9ae5ba70fb9305593a3459eaeb2e3e6598
MD5 b252815b0985c5a493639589e1704d12
BLAKE2b-256 7d3af4229e2fe2715535f85abd702defa8d77f9c1ce56d076efaa1541960d1e4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page