import toml
from flask import Flask
from flask_sqlalchemy import SQLAlchemy


app = Flask(__name__, instance_relative_config=True)
app.config.from_file("config.toml", load=toml.load)
db = SQLAlchemy(app)


@app.before_first_request
def create_table():
    db.create_all()


from space_trace import views, cli

[((6, 6, 6, 52), 'flask.Flask', 'Flask', (), '', False, 'from flask import Flask\n'), ((8, 5, 8, 20), 'flask_sqlalchemy.SQLAlchemy', 'SQLAlchemy', ({(8, 16, 8, 19): 'app'}, {}), '(app)', False, 'from flask_sqlalchemy import SQLAlchemy\n')]