Comparison
lief 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 liefPython PE parsing module
Maintained. Last release over 2 years ago, commits in 22 of the last 26 weeks. Weaker on recent releases and release cadence.
$
pip install pefileIn short
- pefile is the most used: 8.6M downloads a month, 6.1× more than lief.
- lief is better maintained: Pythie’s Index 87 against 46.
- pefile is growing fastest: downloads +22% over the last month.