validate_entry()
Validate a registry entry dict.
Usage
validate_entry(entry)An entry must have "name" and "cls" keys. The "cls" value should be passable to :py:func:register. If invalid, raises :py:exc:ValueError.
Checks :py:attr:Registry.strict on the default registry to determine validation level.
Parameters
entry: dict-
A dict with
"name"and"cls"keys.
Returns
bool-
True if the entry is valid.
Raises
ValueError-
If the entry dict is missing required keys.