Sen descrición

Fabian Peter Hammerle f29b2b95e9 pylint: enable various optional checks/extensions hai 1 ano
.github a222c1cb34 build(deps): bump actions/checkout from 2.4.0 to 3 %!s(int64=2) %!d(string=hai) anos
dlinfo c38595aa04 drop compatibility with python3.5 (end-of-life since 2020-09-13) %!s(int64=2) %!d(string=hai) anos
tests f29b2b95e9 pylint: enable various optional checks/extensions hai 1 ano
.coveragerc 4e74f126f8 coverage limit 100% %!s(int64=4) %!d(string=hai) anos
.gitignore 52e58073f3 added support for mac os x via macholib.dylib.dyld_find() %!s(int64=4) %!d(string=hai) anos
.pylintrc 3736bec2ae make linter happy %!s(int64=4) %!d(string=hai) anos
CHANGELOG.md 4e75e94738 drop compatibility with python3.6 (end-of-life since 2021-12-23); relock dev env %!s(int64=2) %!d(string=hai) anos
LICENSE a0eb865879 add MIT license %!s(int64=4) %!d(string=hai) anos
Pipfile b8d69da7c8 dev env: re-add typing-extensions to fix pipeline on python<3.10 %!s(int64=2) %!d(string=hai) anos
Pipfile.lock 4be8bddfd9 build(deps-dev): bump pylint from 2.13.8 to 2.13.9 %!s(int64=2) %!d(string=hai) anos
README.rst 5304140073 readme: fixed code block %!s(int64=4) %!d(string=hai) anos
conftest.py e93e3e5492 tests: fix platform detection for github actions %!s(int64=3) %!d(string=hai) anos
setup.py 4e75e94738 drop compatibility with python3.6 (end-of-life since 2021-12-23); relock dev env %!s(int64=2) %!d(string=hai) anos

README.rst

python-dlinfo
=============

Python wrapper for libc's dlinfo

Install
-------

.. code:: sh

pip install dlinfo
# or
pipenv install dlinfo

Usage
-----

.. code:: python

>>> 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'