Comparison
lief vs patchelf vs pefile vs pyelftools
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 22 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 15 of the last 26 weeks. A safe choice.
pip install patchelfPython PE parsing module
Maintained. Last release over 2 years ago, commits in 22 of the last 26 weeks. Weaker on recent releases and issue handling.
pip install pefileLibrary for analyzing ELF files and DWARF debugging information
Maintained. Last release 6 months ago, commits in 7 of the last 26 weeks. Weaker on release cadence and security practices.
pip install pyelftoolsIn short
- pyelftools is the most used: 14.8M downloads a month.
- lief is better maintained: Pythie’s Index 87 against 54.
- pefile is growing fastest: downloads +23% over the last month.
Side by side
| Metric | lief | patchelf | pefile | pyelftools |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 87 | 85 |