agent.factory module

class agent.factory.ConfigWithHooks(*args, **kwargs)

Bases: flask.config.Config

Config object that has __setitem__ hooks.

add_hook(key, hook)

Add a callback/hook for a config key.

The hook will be called when the key is set.

Return type

None

agent.factory.create_app()

Create a new agent application.

Return type

Flask

agent.factory.update_binds(config, key, value)

Update config.SQLALCHEMY_BINDS..

Return type

None