Skip to content
Python binary parsing library
Python Shell
Find file
Failed to load latest commit information.
construct core: Some docstrings.
docs docs: Add most of the API.
.gitignore .gitignore.
.travis.yml Don't test Python 2.4 on Travis.
CHANGELOG.rst Bump changelog for 2.06.
LICENSE Add a license.
MANIFEST.in Add setup.py and MANIFEST.
README.rst
setup.py Bump version to 2.06.
todo.txt Bump todo.

README.rst

Construct

Construct is a powerful declarative parser for binary data.

It is based on the concept of defining data structures in a declarative manner, rather than procedural code: Simple constructs can be combined hierarchically to form increasingly complex data structures. It's the first library that makes parsing fun, instead of the usual headache it is today.

Construct features bit and byte granularity, symmetrical operation (parsing and building), component-oriented declarative design, easy debugging and testing, an easy-to-extend subclass system, and lots of primitive constructs to make your work easier:

  • Fields
  • Structs
  • Unions
  • Repeaters
  • Meta constructs
  • Switches
  • On-demand parsing
  • Pointers
  • And more!

Requirements

Construct should run on any Python 2.5+ implementation. It has no external dependencies.

Something went wrong with that request. Please try again.