OSP Event Handler V2 - Application Dependencies Code

Code

class ecstask.osp_eventhandler_v2.utilities.application_dependencies.ApplicationDependencies(config)[source]

Bases: object

error_queue_name = None
picks_table = None
ttl = None
__init__(config)[source]

This class will load all the dependencies needed for the application to run. This can cause exceptions if the configuration is not set up properly.

Parameters

config (Dictionary) – Contains key value pairs for configuration of the google tables

__load_dependencies(config)

Private Method to load all the dependencies of the application, sort of a dependency injection simulation :raises GoogleApplicationCredentialsNotValid: :raises FlaskConfigurationKeyError: :raises GoogleApplicationCredentialsNotFound:

get_table()[source]
get_ttl()[source]
get_error_queue_name()[source]
get_orders_queue_name()[source]
get_orders_error_table()[source]