Skip to content

eliben/pyelftools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ebeb75 · Mar 18, 2025
Mar 13, 2025
Mar 18, 2025
Mar 15, 2025
Mar 15, 2025
Mar 18, 2025
Sep 14, 2023
Jan 5, 2018
Mar 14, 2024
Jun 5, 2015
Aug 10, 2022
Apr 1, 2024
Apr 17, 2023
Mar 18, 2025
Mar 30, 2013
Mar 14, 2025

Repository files navigation

pyelftools

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

pyelftools can be installed from PyPI (Python package index):

> pip install pyelftools

Alternatively, you can download the source distribution for the most recent and historic versions from the Downloads tab on the pyelftools project page (by going to Tags). Then, you can install from source, as usual:

> python setup.py install

Since pyelftools is a work in progress, it's recommended to have the most recent version of the code. This can be done by downloading the master zip file or just cloning the 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.