README.rst 366 B

123456789101112131415161718192021222324
  1. python-dlinfo
  2. =============
  3. Python wrapper for libc's dlinfo
  4. Install
  5. -------
  6. .. code:: sh
  7. pip install dlinfo
  8. # or
  9. pipenv install dlinfo
  10. Usage
  11. -----
  12. .. code:: python
  13. >>> from dlinfo import DLInfo
  14. >>> lib = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))
  15. >>> dlinfo = DLInfo(lib)
  16. >>> dlinfo.path
  17. '/lib/x86_64-linux-gnu/libc.so.6'