11.. _using :
22
3- =================================
4- Using :mod: `!importlib.metadata `
5- =================================
3+ ========================================================
4+ :mod: `!importlib.metadata ` -- Accessing package metadata
5+ ========================================================
66
77.. module :: importlib.metadata
8- :synopsis: The implementation of the importlib metadata.
8+ :synopsis: Accessing package metadata
99
1010.. versionadded :: 3.8
1111.. versionchanged :: 3.10
1212 ``importlib.metadata `` is no longer provisional.
1313
1414**Source code: ** :source: `Lib/importlib/metadata/__init__.py `
1515
16- ``importlib_metadata `` is a library that provides access to
16+ ``importlib.metadata `` is a library that provides access to
1717the metadata of an installed `Distribution Package <https://packaging.python.org/en/latest/glossary/#term-Distribution-Package >`_,
1818such as its entry points
1919or 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
2424this package can eliminate the need to use the older and less efficient
2525``pkg_resources `` package.
2626
27- ``importlib_metadata `` operates on third-party *distribution packages *
27+ ``importlib.metadata `` operates on third-party *distribution packages *
2828installed into Python's ``site-packages `` directory via tools such as
2929`pip <https://pypi.org/project/pip/ >`_.
3030Specifically, it works with distributions with discoverable
@@ -368,7 +368,7 @@ system :ref:`finders <finders-and-loaders>`. To find a distribution package's m
368368``importlib.metadata `` queries the list of :term: `meta path finders <meta path finder> ` on
369369:data: `sys.meta_path `.
370370
371- By default ``importlib_metadata `` installs a finder for distribution packages
371+ By default ``importlib.metadata `` installs a finder for distribution packages
372372found on the file system.
373373This finder doesn't actually find any *distributions *,
374374but it can find their metadata.
0 commit comments