Comparison
filebytes vs lief vs patchelf
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Scripts to parse the following file formats - Executable and Linking Format (ELF), Portable Executable (PE), Mach-O and OAT (Android Runtime).
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install filebytesLibrary to instrument executable formats
Actively maintained. Last release 5 months ago, commits in 21 of the last 26 weeks. A safe choice.
$
pip install liefA small utility to modify the dynamic linker and RPATH of ELF executables.
Actively maintained. Last release 4 weeks ago, commits in 17 of the last 26 weeks. A safe choice.
$
pip install patchelfIn short
- filebytes looks abandoned: avoid it for new projects.
- patchelf is the most used: 10.5M downloads a month, 7.4× more than lief.
- Maintenance is comparable: lief 87, patchelf 85 on Pythie’s Index.
- Safe default for a new project: patchelf.