thorn.validators¶
Recipient Validators.
-
thorn.validators.ensure_protocol(*allowed)[source]¶ Only allow recipient URLs using specific protocols.
Example
>>> ensure_protocol('https', 'http://')
-
thorn.validators.ensure_port(*allowed)[source]¶ Validator that ensures port is member of set allowed.