Query Builder¶
Exception Handling¶
-
exception
distill.utils.exceptions.
Error
¶ Bases:
exceptions.Exception
Base class for exceptions.
-
exception
distill.utils.exceptions.
ValidationError
(url, msg)¶ Bases:
distill.utils.exceptions.Error
Exceptions raised for errors in validated a url.
Validation Library¶
-
distill.utils.validation.
str2bool
(v)¶ Convert string expression to boolean
Parameters: v – Input value Returns: Converted message as boolean type Return type: bool
-
distill.utils.validation.
validate_request
(q)¶ Parse out request message and validate inputs
Parameters: q – Url query string Raises: ValidationError – if the query is missing required parameters