Powerful decorator allowing the parsing of binary data into a dataclass and serializing back into raw data.
Project description
cstructs
Think struct
, but on steroids.
Note: This version supercedes the original cstruct package. This is my first attempt at a test driven development cycle, so I apologize in advance if the things that I do don't make sense.
Table of Contents
Installation
python -m pip install --user -U cstructs
Features
- Serializing
- Deserializing
- Inheritance between datastructs
- Sequences
- Allow other datastructs to be members
- Callbacks for reading/writing
- Individual class metadata
- Variable length data by depending on the value of another member
- String decoding using specified encoding format
- Lazy sequence loading
- Fallback(default) value for missing values
- Handling of various types of data alignment
- Is type checker friendly
License
cstructs
is distributed under the terms of the GNU GPL v3 license.
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
cstructs-0.2.5.tar.gz
(34.7 kB
view hashes)