Comparison
lief vs patchelf vs pefile
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Library 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 16 of the last 26 weeks. A safe choice.
$
pip install patchelfPython PE parsing module
Maintained. Last release over 2 years ago, commits in 20 of the last 26 weeks. Weaker on recent releases and issue handling.
$
pip install pefileIn short
- patchelf is the most used: 10.2M downloads a month.
- Maintenance is comparable: lief 87, patchelf 85, pefile 45 on Pythie’s Index.
- pefile is growing fastest: downloads +21% over the last month.
- Safe default for a new project: patchelf.