• Stars
    star
    602
  • Rank 74,409 (Top 2 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

pysandbox

WARNING: pysandbox is BROKEN BY DESIGN, please move to a new sandboxing solution (run python in a sandbox, not the opposite!)
Python
372
star
2

unicode_book

Programming with Unicode, book written by Victor Stinner
Python
229
star
3

python-ptrace

python-ptrace is a Python binding of ptrace library.
Python
182
star
4

faulthandler

Fault handler for Python: display the Python backtrace on SIGSEGV, SIGFPE, SIGABRT, SIGBUS and SIGILL signals
C
100
star
5

python-security

Documentation of Python security
Python
89
star
6

fatoptimizer

Static optimizer specializing functions with guards for Python 3.6
Python
76
star
7

cpython_core_tutorial

Tutorial to contribute to the CPython project
Python
48
star
8

sixer

Add Python 3 support to Python 2 applications using the six module.
Python
41
star
9

talks

Victor Stinner's talks
HTML
38
star
10

pythondev

Python Development Documentation
Python
29
star
11

misc

Configuration ("dotfiles"), small personal programs like scm.py, other misc things...
Python
23
star
12

notes

Victor Stinner's Notes
Python
20
star
13

fat

The fat module is Python 3.6 extension module (written in C) implementing fast guards for specialized functions
C
19
star
14

tracemallocqt

Qt GUI for tracemalloc
Python
11
star
15

check_python_vuln

Check Python vulnerabilities
Python
9
star
16

deadparrot

Python C API compatibility shared library: provide new functions to old Python and old functions to new Python
C
7
star
17

vstinner.github.io

Victor Stinner blog 2
HTML
7
star
18

pyfailmalloc

Debug tool for Python injecting memory allocation faults
C
6
star
19

pymicrobench

Suite of Python microbenchmarks written for CPython
Python
4
star
20

pythonci

CI to run numpy on the master branch of Python
Python
4
star
21

pycapi

PyCAPI C API for Python 2.7 to 3.13
C
2
star
22

pyperformance_results

Results of the Python performance benchmark suite
1
star