Read metadata from Python packages
Project description
importlib_metadata is a library to access the metadata for a Python package. It is intended to be ported to Python 3.8.
Usage
See the online documentation for usage details.
Finder authors can also add support for custom package installers. See the above documentation for details.
Caveats
This project primarily supports third-party packages installed by PyPA tools (or other conforming packages). It does not support:
Packages in the stdlib.
Packages installed without metadata.
Packages installed as eggs.
Eggs
Not only does importlib_metadata not support loading metadata from eggs, it will crash when it attempts to load metadata for any package that’s an egg.
easy_install creates eggs when installing packages, which is why you should use pip to install packages. pip never installs eggs. There are some cases, however, where a project’s usage may not be able to avoid easy_install. In particular, if a project uses setup.py test, any install_requires of that project that aren’t already installed will be installed using easy_install. Additionally, any project defining setup_requires may get those dependencies installed as eggs if those dependencies aren’t met before setup.py is invoked (for any command).
Because importlib_metadata doesn’t support loading metadata from eggs and because importlib_metadata calls itself to get its own version, simply importing importlib_metadata will fail if it is installed as an egg. Any package that incorporates importlib_metadata (directly or indirectly) should be prepared to guide its users to tools that avoid installing eggs (such as pip and tox).
More detail and discussion can be found at issue 19.
Project details
Project home: https://gitlab.com/python-devs/importlib_metadata
Report bugs at: https://gitlab.com/python-devs/importlib_metadata/issues
Code hosting: https://gitlab.com/python-devs/importlib_metadata.git
Documentation: http://importlib_metadata.readthedocs.io/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for importlib_metadata-0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408598615665eb2cfc0de15b331aca61c28fe9acac94ea8a82661b60a78bbef4 |
|
MD5 | c2f63316e92e6d87bd3aac7adc584d2a |
|
BLAKE2b-256 | bdf7fd23f842588caebbb8c6ffbe2709442d4846d6c10c71378682b17af58022 |