PyDocs

Nav

Importing Modules

Distribution.metadata

  • Distribution.metadata: PackageMetadata
Return the parsed metadata for this Distribution.

The returned object will have keys that name the various bits of
metadata per the
`Core metadata specifications <https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata>`_.

Custom providers may provide the METADATA file or override this
property.

:raises MetadataNotFound: If no metadata file is present.
1 Example
>>> dist.metadata['Requires-Python']
'>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
>>> dist.metadata['License']
'MIT'
from the Python docs
See Also
No see-alsos for importlib.metadata/Distribution.metadata
0 Notes
No notes for Distribution.metadata