pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information. See the User's guide for more details.
pyelftools requires Python 3.11 or later and has no external dependencies. See the CI configuration for the versions tested.
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.
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.
See the Hacking Guide.
pyelftools is open source software. Its code is in the public
domain. See the LICENSE file for more details.