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