Need help with construct?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

MostAwesomeDude
136 Stars 146 Forks MIT License 122 Commits 11 Opened issues

Description

Python binary parsing library

Services available

!
?

Need anything else?

Contributors list

# 161,977
Shell
Amazon ...
nix
glsl
105 commits
# 233,178
HTML
Shell
Perl
gentoo
1 commit
# 464,801
C#
CSS
Shell
1 commit

=========

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.