index.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ===============================
  2. Welcome to importlib_metadata
  3. ===============================
  4. ``importlib_metadata`` is a library which provides an API for accessing an
  5. installed package's `metadata`_, such as its entry points or its top-level
  6. name. This functionality intends to replace most uses of ``pkg_resources``
  7. `entry point API`_ and `metadata API`_. Along with ``importlib.resources`` in
  8. `Python 3.7 and newer`_ (backported as `importlib_resources`_ for older
  9. versions of Python), this can eliminate the need to use the older and less
  10. efficient ``pkg_resources`` package.
  11. ``importlib_metadata`` is a backport of Python 3.8's standard library
  12. `importlib.metadata`_ module for Python 2.7, and 3.4 through 3.7. Users of
  13. Python 3.8 and beyond are encouraged to use the standard library module, and
  14. in fact for these versions, ``importlib_metadata`` just shadows that module.
  15. Developers looking for detailed API descriptions should refer to the Python
  16. 3.8 standard library documentation.
  17. The documentation here includes a general :ref:`usage <using>` guide.
  18. .. toctree::
  19. :maxdepth: 2
  20. :caption: Contents:
  21. using.rst
  22. changelog (links).rst
  23. Project details
  24. ===============
  25. * Project home: https://gitlab.com/python-devs/importlib_metadata
  26. * Report bugs at: https://gitlab.com/python-devs/importlib_metadata/issues
  27. * Code hosting: https://gitlab.com/python-devs/importlib_metadata.git
  28. * Documentation: http://importlib_metadata.readthedocs.io/
  29. Indices and tables
  30. ==================
  31. * :ref:`genindex`
  32. * :ref:`modindex`
  33. * :ref:`search`
  34. .. _`metadata`: https://www.python.org/dev/peps/pep-0566/
  35. .. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points
  36. .. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api
  37. .. _`Python 3.7 and newer`: https://docs.python.org/3/library/importlib.html#module-importlib.resources
  38. .. _`importlib_resources`: https://importlib-resources.readthedocs.io/en/latest/index.html
  39. .. _`importlib.metadata`: TBD