get_provides_forο
- get_provides_for(prefix)[source]ο
Get the resource that the given prefix provides for, or return none if not a provider.
- Parameters:
prefix (
str
) β The prefix to look up- Return type:
- 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')