Binary data structures (un-)Packing library

HomePage

https://github.com/avalentino/bpack

Author

Antonio Valentino

Contact

antonio.valentino@tiscali.it

Copyright

2020-2021, Antonio Valentino <antonio.valentino@tiscali.it>

Version

0.8.2.dev0

PyPI Status GitHub Actions Status Documentation Status

The bpack Python package provides tools to describe and encode/decode binary data.

Binary data are assumed to be organized in records, each composed by a sequence of fields. Fields are characterized by a known size, offset (w.r.t. the beginning of the record) and datatype.

The package provides classes and functions that can be used to:

  • describe binary data structures in a declarative way (structures can be specified up to the bit level)

  • automatically generate encoders/decoders for a specified data descriptor

Encoders/decoders (backends) rely on well known Python packages like:

Documentation