You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
totrader/totrader/factory.py

17 lines
426 B

import quart.flask_patch
from quart import Quart
def create_app():
app = Quart(__name__)
app.config.from_envvar('FLASK_SECRETS', 'config.py')
@app.before_serving
async def startup():
from totrader.routes import meta, tasks
from totrader import filters
app.register_blueprint(meta.bp)
app.register_blueprint(tasks.bp)
app.register_blueprint(filters.bp)
return app