agent.factory module¶
-
class
agent.factory.ConfigWithHooks(*args, **kwargs)¶ Bases:
flask.config.ConfigConfig object that has __setitem__ hooks.
-
add_hook(key, hook)¶ Add a callback/hook for a config key.
The hook will be called when the
keyis 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