CMD + K

bpack

Community

Binary data structures (un-)packing library

Installation

To install this package, run one of the following:

Conda
$conda install avalentino::bpack

Usage Tracking

1.1.0
1.0.0
0.8.2
0.8.1
0.8.0
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

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:

  • struct (form the standard library)
  • bitstruct (optional)
  • numpy (optional)
  • bitarray (optional) - partial implementation

About

Summary

Binary data structures (un-)packing library

Last Updated

Apr 15, 2023 at 09:48

License

Apache-2.0

Total Downloads

52

Supported Platforms

noarch