PyDocs

Nav

Importing Modules

requires

  • requires(distribution_name)
Return a list of requirements for the named package.

:return: An iterable of requirements, suitable for
    packaging.requirement.Requirement.
1 Example
>>> requires('wheel')
["pytest (>=3.0.0) ; extra == 'test'", "pytest-cov ; extra == 'test'"]
from the Python docs
See Also
No see-alsos for importlib.metadata/requires
0 Notes
No notes for requires