| 1 |
=============================== |
| 2 |
Welcome to importlib_metadata |
| 3 |
=============================== |
| 4 |
|
| 5 |
``importlib_metadata`` is a library which provides an API for accessing an |
| 6 |
installed package's metadata (see :pep:`566`), such as its entry points or its top-level |
| 7 |
name. This functionality intends to replace most uses of ``pkg_resources`` |
| 8 |
`entry point API`_ and `metadata API`_. Along with :mod:`importlib.resources` in |
| 9 |
Python 3.7 and newer (backported as :doc:`importlib_resources <importlib_resources:index>` for older |
| 10 |
versions of Python), this can eliminate the need to use the older and less |
| 11 |
efficient ``pkg_resources`` package. |
| 12 |
|
| 13 |
``importlib_metadata`` supplies a backport of |
| 14 |
:doc:`importlib.metadata <library/importlib.metadata>` as found in |
| 15 |
Python 3.8 and later for earlier Python releases. Users of |
| 16 |
Python 3.8 and beyond are encouraged to use the standard library module |
| 17 |
when possible and fall back to ``importlib_metadata`` when necessary. |
| 18 |
When imported on Python 3.8 and later, ``importlib_metadata`` replaces the |
| 19 |
DistributionFinder behavior from the stdlib, but leaves the API in tact. |
| 20 |
Developers looking for detailed API descriptions should refer to the Python |
| 21 |
3.8 standard library documentation. |
| 22 |
|
| 23 |
The documentation here includes a general :ref:`usage <using>` guide. |
| 24 |
|
| 25 |
|
| 26 |
.. toctree:: |
| 27 |
:maxdepth: 2 |
| 28 |
:caption: Contents: |
| 29 |
|
| 30 |
using.rst |
| 31 |
changelog (links).rst |
| 32 |
|
| 33 |
|
| 34 |
Project details |
| 35 |
=============== |
| 36 |
|
| 37 |
* Project home: https://github.com/python/importlib_metadata |
| 38 |
* Report bugs at: https://github.com/python/importlib_metadata/issues |
| 39 |
* Code hosting: https://github.com/python/importlib_metadata |
| 40 |
* Documentation: https://importlib_metadata.readthedocs.io/ |
| 41 |
|
| 42 |
|
| 43 |
Indices and tables |
| 44 |
================== |
| 45 |
|
| 46 |
* :ref:`genindex` |
| 47 |
* :ref:`modindex` |
| 48 |
* :ref:`search` |
| 49 |
|
| 50 |
|
| 51 |
.. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points |
| 52 |
.. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api |