Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 366 Bytes

README.rst

File metadata and controls

24 lines (17 loc) · 366 Bytes

python-dlinfo

Python wrapper for libc's dlinfo

Install

pip install dlinfo
# or
pipenv install dlinfo

Usage

>>> from dlinfo import DLInfo
>>> lib = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))
>>> dlinfo = DLInfo(lib)
>>> dlinfo.path
'/lib/x86_64-linux-gnu/libc.so.6'