Skip to content

Hachoir is a Python library to view and edit a binary stream field by field

License

Notifications You must be signed in to change notification settings

vstinner/hachoir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d6dc3d5 · Mar 4, 2025
Dec 1, 2022
Jan 8, 2025
Mar 4, 2025
Mar 4, 2025
Jun 4, 2018
Jun 3, 2018
May 17, 2016
Jul 24, 2023
Mar 21, 2014
Jun 4, 2018
Mar 17, 2021
May 26, 2014
Dec 8, 2016
Jan 7, 2025
Feb 17, 2017
Feb 17, 2017
Feb 17, 2017
Feb 17, 2017
Mar 31, 2014
Feb 17, 2017
Apr 25, 2019
Jan 10, 2017
May 24, 2023
Dec 19, 2024
May 24, 2023

Repository files navigation

Hachoir

Latest release on the Python Cheeseshop (PyPI) Build status of hachoir on GitHub Actions 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.

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.

About

Hachoir is a Python library to view and edit a binary stream field by field

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages