get_provides_forο
- get_provides_for(prefix: str) str | None [source]ο
Get the resource that the given prefix provides for, or return none if not a provider.
- Parameters:
prefix β The prefix to look up
- Returns:
The prefix of the resource that the given prefix provides for, if itβs a provider. This is the inverse of
get_provided_by()
.
>>> assert get_provides_for('pdb') is None >>> assert 'pdb' == get_provides_for('validatordb')