deseasion.backend.schemas.utils module

deseasion.backend.schemas.utils.validate_name(name)

Validate a name against the python2 identifiers and keywords

View https://docs.python.org/2/reference/lexical_analysis.html#identifiers

Raises:

ValidationError if the name is not valid