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