README.rst 353 B

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