Query Builder

class distill.utils.query_builder.QueryBuilder(query=None)

Bases: object

add_sorting(sort_field='', sort_order='')

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


Convert string expression to boolean

Parameters:v – Input value
Returns:Converted message as boolean type
Return type:bool

Parse out request message and validate inputs

Parameters:q – Url query string
Raises:ValidationError – if the query is missing required parameters