Hachoir project- hachoir core

From Free Software Directory
Jump to: navigation, search

Reviews: 0 ... further results.


Hachoir project- hachoir core

a Python library used to represent a binary file as a tree of Python objects.

Hachoir is the french name for a mincer: a tool used by butchers to cut meat. Hachoir is also a tool written for hackers to cut a file or any binary stream. A file is split in a tree of fields where the smallest field can be just a bit. There are various field types: integer, string, bits, padding, sub file, etc. Hachoir has many interesting features:

  • Autofix: Hachoir is able to open invalid / truncated files
  • Lazy: Open a file is very fast since no information is read from file, data are read and/or computed when the user ask for it
  • Types: Hachoir has many predefined field types (integer, bit, string, etc.) and supports string with charset (ISO-8859-1, UTF-8, UTF-16, ...)
  • Addresses and sizes are stored in bit, so flags are stored as classic fields
  • Endian: You have to set endian once, and then number are converted in the right endian
  • Editor: Using Hachoir representation of data, you can edit, insert, remove data and then save in a new file.
  • Website: http://hachoir.org/wiki/hachoir-core

Related Projects



Verified by

Verified on


Verified by

Kelly Hopkins

Verified on

4 April 2009

Leaders and contributors

Julien Muchembled Maintainer
Robert Xiao Maintainer
Victor Stinner Maintainer

Resources and communication

AudienceResource typeURI
DeveloperVCS Repository Webviewhttp://hachoir.org/browser/trunk/hachoir-core

Software prerequisites

This entry (in part or in whole) was last reviewed on 26 February 2017.


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.