Construct 1.25 review

Download
by rbytes.net on

Construct is a python module for defining arbitrary data structures

License: Public Domain
File size: 0K
Developer: Tomer Filiba
0 stars award from rbytes.net

Construct is a python module for defining arbitrary data structures. Once a data structure (aka, "construct") is defined, it can be used to both parse raw data into an object and build an object into raw data.

Unlike most parsers, it works at the bit-level, so you don't need to worry about parsing individual bits or unaligned fields.

Construct library supports Fields, Unions, Structs and Repeaters; Adapters and Validators; Switches, Pointers and other Meta -constructs.

Here are some key features of "Construct":
Symmetrical -- constructs can be used to parse as well as to build
Bit-level -- can parse and build individual bits, not only bytes
Ready -- lots of predefined primitives and common protocols definitions, which you can easily use
Extensible -- you can easily write user-defined constructs by simply by subclassing
Fast -- benchmarks on my machine show ~160KB/sec can be parsed, fast enough for most situations, and perhaps pysco can improve that
Declarative -- no procedural code needed for most situations

What's New in This Release:
Bugs in AttrDict, ExceptionContainer, and demo1.py were fixed.
PaddedString, DNS inventory, and a toy network sniffer were added.
BytePadding, BytePointer, and IpStack were changed and the demos package was removed.

Construct 1.25 keywords