hachoir
Python framework to parse and edit binary files
Command lineDevelopment
Not tested on a device yet. What that means
Commands in the package
hachoir-grephachoir-metadatahachoir-striphachoir-urwidhachoir-wx
About hachoir
From Debian's package description
Hachoir is a Python library used to represent of a binary file as a tree of Python objects. Each object has a type, a value, an address, etc. The goal is to be able to know the meaning of each bit in a file.
Why using slow Python code instead of fast hardcoded C code? 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.
Hachoir provides command-line tools using its parsers:
- hachoir-grep: find a text pattern in a binary file
- hachoir-metadata: get metadata from binary files
- hachoir-strip: modify a file to remove metadata
- hachoir-urwid: display the content of a binary file in text mode
- hachoir-wx: display the content of a binary file in a GUI
From Debian's description of the hachoir package, under that package's license.
Dependencies
Depends on
python3python3-urwidpython3-wxgtk4.0
Related apps
- desktop-file-utilsUtilities for .desktop filesCommand line
- binutils-x86-64-linux-gnuGNU binary utilities, for x86-64-linux-gnu targetCommand line
- dh-strip-nondeterminismfile non-deterministic information stripper — Debhelper add-onCommand line
NeovimEdit text filesTerminal
Joe's Own EditorView and edit files- binutils-avrBinary utilities supporting Atmel's AVR targetsCommand line
Sources and licenses
- Name: the Debian package name.
- Summary: Debian's short description of the hachoir package, under that package's license.
- Description: Debian's description of the hachoir package, under that package's license.
- Versions and sizes: Debian's archive for ARM64, as on packages.debian.org.
- Popularity: Debian Popularity Contest counts.
More in About the catalog.