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')