eliben/pyelftools

Parsing ELF and DWARF in Python

Python

2,283

738 commits

updated Oct 7, 2026

See the code

README

pyelftools

Logo

pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information. See the User's guide for more details.

Pre-requisites

As a user of pyelftools, one only needs Python 3 to run. While there is no reason for the library to not work on earlier versions of Python, our CI tests are based on the official Status of Python versions.

Installing

The library is on PyPI as pyelftools; install it using your favorite Python package manager.

For the source, clone this Git repository.

Since pyelftools has no external dependencies, it's also easy to use it without installing, by locally adjusting PYTHONPATH.

How to use it?

pyelftools is a regular Python library: you import and invoke it from your own code. For a detailed usage guide and links to examples, please consult the user's guide.

Contributing

See the Hacking Guide.

License

pyelftools is open source software. Its code is in the public domain. See the LICENSE file for more details.

debugging
dwarf
elf
elf-binaries
elf-parser
python

eliben/pyelftools

Parsing ELF and DWARF in Python

Python

2,283

738 commits

updated Oct 7, 2026

See the code

README

pyelftools

Logo

pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information. See the User's guide for more details.

Pre-requisites

As a user of pyelftools, one only needs Python 3 to run. While there is no reason for the library to not work on earlier versions of Python, our CI tests are based on the official Status of Python versions.

Installing

The library is on PyPI as pyelftools; install it using your favorite Python package manager.

For the source, clone this Git repository.

Since pyelftools has no external dependencies, it's also easy to use it without installing, by locally adjusting PYTHONPATH.

How to use it?

pyelftools is a regular Python library: you import and invoke it from your own code. For a detailed usage guide and links to examples, please consult the user's guide.

Contributing

See the Hacking Guide.

License

pyelftools is open source software. Its code is in the public domain. See the LICENSE file for more details.

debugging
dwarf
elf
elf-binaries
elf-parser
python

Significant stargazers

(top 24 of 52)

Ofek Lev

916 followers · starred Jul 2026

David Cramer

3,446 followers · starred Sep 2015

James Lamb

747 followers · starred Aug 2024

Kito Cheng

274 followers · starred Feb 2014