Welcome to importlib_metadata documentation!

importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name. This functionality intends to replace most uses of pkg_resources entry point API and metadata API. Along with importlib.resources and newer (backported as importlib_resources), this package can eliminate the need to use the older and less efficient pkg_resources package.

importlib_metadata supplies a backport of importlib.metadata, enabling early access to features of future Python versions and making functionality available for older Python versions. Users are encouraged to use the Python standard library where suitable and fall back to this library for future compatibility. Developers looking for detailed API descriptions should refer to the standard library documentation.

The documentation here includes a general usage guide.

Project details

Indices and tables