Inexperienced with python, trying to write a custom validator using this package. I have imported 'validators'
>>> validators.url('https://google.com')
True
However when I try to write a custom validator the @validator decorator is not recognized.
>>> @validator
... def alwaysTrue(value):
... return True
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'validator' is not defined. Did you mean: 'validators'?