GitXplorerGitXplorer
v

hachoir

public
627 stars
70 forks
6 issues

Commits

List of commits on branch main.
Unverified
48b478ff7a31345dc2b7a35702fb6e0fb8a009d7

add documentation for hachoir-list tool

ooliver committed 11 days ago
Unverified
4167deccc01e358aed30e3d0fcc9091ec06db8ff

hachoir-list: print file name only if multiple files are opened

ooliver committed 11 days ago
Unverified
03241a8aa38ba4e46d192f8afc59c04ffe99980b

hachoir-list: improve formatting of field size

ooliver committed 11 days ago
Unverified
1a8c5eecd96160e10258e83e9ecdd395ff441eef

hachoir-list: add --indent-width parameter

ooliver committed 11 days ago
Unverified
a4fd93286ca4d3a00f50abde31c1801648bcebcb

hachoir-list: add --description parameter

ooliver committed 11 days ago
Unverified
8d3ad11674c00dd3b0c961f762fd2f9c5614eb62

hachoir-list: also display field description

ooliver committed 11 days ago

README

The README file for this repository.

Hachoir


.. image:: https://img.shields.io/pypi/v/hachoir.svg :alt: Latest release on the Python Cheeseshop (PyPI) :target: https://pypi.python.org/pypi/hachoir

.. image:: https://github.com/vstinner/hachoir/actions/workflows/build.yml/badge.svg :alt: Build status of hachoir on GitHub Actions :target: https://github.com/vstinner/hachoir/actions

.. image:: http://unmaintained.tech/badge.svg :target: http://unmaintained.tech/ :alt: No Maintenance Intended

Hachoir is a Python library to view and edit a binary stream field by field. In other words, Hachoir allows you to "browse" any binary stream just like you browse directories and files.

A file is splitted in a tree of fields, where the smallest field is just one bit. Examples of fields types: integers, strings, bits, padding types, floats, etc. Hachoir is the French word for a meat grinder (meat mincer), which is used by butchers to divide meat into long tubes; Hachoir is used by computer butchers to divide binary files into fields.

  • Hachoir website <http://hachoir.readthedocs.io/>_ (source code, bugs)
  • Hachoir on GitHub (Source code, bug tracker) <https://github.com/vstinner/hachoir>_
  • License: GNU GPL v2

Command line tools using Hachoir 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

Installation instructions: http://hachoir.readthedocs.io/en/latest/install.html

Hachoir is written for Python 3.6 or newer.