|
3 | 3 | =============================== |
4 | 4 |
|
5 | 5 | ``importlib_metadata`` is a library which provides an API for accessing an |
6 | | -installed package's `metadata`_, such as its entry points or its top-level |
| 6 | +installed package's :pep:`metadata <566>`, such as its entry points or its top-level |
7 | 7 | name. This functionality intends to replace most uses of ``pkg_resources`` |
8 | | -`entry point API`_ and `metadata API`_. Along with ``importlib.resources`` in |
9 | | -`Python 3.7 and newer`_ (backported as `importlib_resources`_ for older |
| 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 | 10 | versions of Python), this can eliminate the need to use the older and less |
11 | 11 | efficient ``pkg_resources`` package. |
12 | 12 |
|
13 | 13 | ``importlib_metadata`` is a backport of Python 3.8's standard library |
14 | | -`importlib.metadata`_ module for Python 2.7, and 3.4 through 3.7. Users of |
| 14 | +:doc:`importlib.metadata <library/importlib.metadata>` module for Python 2.7, and 3.4 through 3.7. Users of |
15 | 15 | Python 3.8 and beyond are encouraged to use the standard library module. |
16 | 16 | When imported on Python 3.8 and later, ``importlib_metadata`` replaces the |
17 | 17 | DistributionFinder behavior from the stdlib, but leaves the API in tact. |
@@ -46,9 +46,5 @@ Indices and tables |
46 | 46 | * :ref:`search` |
47 | 47 |
|
48 | 48 |
|
49 | | -.. _`metadata`: https://www.python.org/dev/peps/pep-0566/ |
50 | 49 | .. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points |
51 | 50 | .. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api |
52 | | -.. _`Python 3.7 and newer`: https://docs.python.org/3/library/importlib.html#module-importlib.resources |
53 | | -.. _`importlib_resources`: https://importlib-resources.readthedocs.io/en/latest/index.html |
54 | | -.. _`importlib.metadata`: https://docs.python.org/3/library/importlib.metadata.html |
0 commit comments