No Description

Moritz Wanzenböck d9f1398aeb Merge branch 'prototype' into 'master' 4 years ago
dlinfo 4e74f126f8 coverage limit 100% 4 years ago
tests 3f09439a18 tests: xfail if lib not available 4 years ago
.coveragerc 4e74f126f8 coverage limit 100% 4 years ago
.gitlab-ci.yml 766b994b92 gitlab-ci: added missing python3-wheel 4 years ago
.pylintrc 3736bec2ae make linter happy 4 years ago
CHANGELOG.md 1589896088 added changelog 4 years ago
Pipfile c7cf16333c implement DLInfo class prototype 4 years ago
Pipfile.lock c7cf16333c implement DLInfo class prototype 4 years ago
README.md 45b1b1c51e readme: added install section 4 years ago
setup.py 8f15338280 setup gitlab-ci 4 years ago

README.md

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'