1
1
.. _using :
2
2
3
- =================================
4
- Using :mod: `!importlib.metadata `
5
- =================================
3
+ ========================================================
4
+ :mod: `!importlib.metadata ` -- Accessing package metadata
5
+ ========================================================
6
6
7
7
.. module
8000
span>:: importlib.metadata
8
- :synopsis: The implementation of the importlib metadata.
8
+ :synopsis: Accessing package metadata
9
9
10
10
.. versionadded :: 3.8
11
11
.. versionchanged :: 3.10
12
12
``importlib.metadata `` is no longer provisional.
13
13
14
14
**Source code: ** :source: `Lib/importlib/metadata/__init__.py `
15
15
16
- ``importlib_metadata `` is a library that provides access to
16
+ ``importlib.metadata `` is a library that provides access to
17
17
the metadata of an installed `Distribution Package <https://packaging.python.org/en/latest/glossary/#term-Distribution-Package >`_,
18
18
such as its entry points
19
19
or its top-level names (`Import Package <https://packaging.python.org/en/latest/glossary/#term-Import-Package >`_\s , modules, if any).
@@ -24,7 +24,7 @@ API`_ and `metadata API`_ of ``pkg_resources``. Along with
24
24
this package can eliminate the need to use the older and less efficient
25
25
``pkg_resources `` package.
26
26
27
- ``importlib_metadata `` operates on third-party *distribution packages *
27
+ ``importlib.metadata `` operates on third-party *distribution packages *
28
28
installed into Python's ``site-packages `` directory via tools such as
29
29
`pip <https://pypi.org/project/pip/ >`_.
30
30
Specifically, it works with distributions with discoverable
@@ -365,7 +365,7 @@ system `finders`_. To find a distribution package's metadata,
365
365
``importlib.metadata `` queries the list of :term: `meta path finders <meta path finder> ` on
366
366
:data: `sys.meta_path `.
367
367
368
- By default ``importlib_metadata `` installs a finder for distribution packages
368
+ By default ``importlib.metadata `` installs a finder for distribution packages
369
369
found on the file system.
370
370
This finder doesn't actually find any *distributions *,
371
371
but it can find their metadata.
0 commit comments