Sub Modules
bookiesports.cli module
bookiesports.datestring module
bookiesports.datestring.date_to_string
(date_object=None)
rfc3339 conform string representation of a date can also be given as str YYYY-mm-dd HH:MM:SS
bookiesports.datestring.string_to_date
(date_string=None)
assumes rfc3339 conform string and creates date object
bookiesports.exceptions module
exception bookiesports.exceptions.SportsNotFoundError
Bases: Exception
bookiesports.log module
bookiesports.normalize module
exception bookiesports.normalize.EventGroupNotNormalizableException
Bases: bookiesports.normalize.NotNormalizableException
class bookiesports.normalize.IncidentsNormalizer
(chain=None)
Bases: object
This class serves as the normalization entry point for incidents. All events / event group and participant names are replaced with the counterpart stored in the BookieSports package.
DEFAULT_CHAIN
= 'beatrice'
default chosen chain for BookieSports
NOT_FOUND
= {}
As class variable to have one stream for missing normalization entries
NOT_FOUND_FILE
= None
If normalization errors should be written to file, set file here
normalize
(incident, errorIfNotFound=False)
static not_found
(key)
static use_chain
(chain, not_found_file=None)
exception bookiesports.normalize.NotNormalizableException
Bases: Exception
exception bookiesports.normalize.ParicipantNotNormalizableException
Bases: bookiesports.normalize.NotNormalizableException
exception bookiesports.normalize.SportNotNormalizableException
Bases: bookiesports.normalize.NotNormalizableException
Last updated