Module Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Pass decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num If CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call NameLoad Call AttributeLoad NameLoad attr Str orelse If CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults Num Num body Import alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Num NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body If CompareIn Str Call NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr Str NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad orelse Break orelse Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str Call AttributeLoad NameLoad attr Str Str keyword NameLoad FunctionDef arguments args defaults body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args defaults body With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list NameLoad
N/A N/A sys N/A time N/A re N/A os contextlib contextmanager N/A logbook N/A click bootstrapping requires_env N/A _DATABASE_URI_RE N/A N/A re compile (?P<driver>(?P<db_type>sqlite|postgresql)(\+.*)?):\/\/(?P<host>[^/]*)\/(?P<db>.+) db N/A N/A N/A N/A N/A N/A N/A N/A click group _create_sqlite N/A N/A path N/A N/A N/A N/A _create_postgres N/A N/A match N/A N/A N/A sqlalchemy flask_app.models db N/A uri N/A N/A match group 0 N/A db_name N/A N/A match group db N/A N/A N/A N/A N/A N/A N/A sqlalchemy create_engine uri connect N/A N/A N/A N/A N/A sqlalchemy exc OperationalError N/A N/A engine N/A N/A sqlalchemy create_engine N/A N/A {}://{}/postgres format N/A N/A match group driver N/A N/A match group host N/A conn N/A N/A engine connect N/A N/A N/A conn execute commit N/A N/A N/A conn execute N/A N/A create database {} with encoding = 'UTF8' format db_name N/A N/A N/A conn close N/A N/A N/A logbook info Database {} successfully created on {}. db_name uri N/A N/A N/A N/A logbook info Database {} exists. db_name N/A ensure N/A N/A N/A N/A flask_app.app create_app flask_app.models db N/A app N/A create_app N/A uri N/A N/A app config N/A SQLALCHEMY_DATABASE_URI N/A match N/A N/A _DATABASE_URI_RE match uri N/A N/A match N/A N/A N/A N/A logbook error Don't know how to create a database of type {} uri N/A N/A N/A sys exit -1 N/A N/A N/A N/A match group db_type sqlite N/A N/A N/A _create_sqlite N/A N/A match group db N/A N/A N/A N/A N/A match group db_type postgresql N/A N/A N/A _create_postgres match N/A N/A N/A logbook info DB successfully created N/A N/A N/A db command N/A requires_env app wait N/A N/A num_retries retry_sleep_seconds N/A 60 1 N/A N/A sqlalchemy flask_app.app create_app N/A app N/A create_app N/A uri N/A N/A app config N/A SQLALCHEMY_DATABASE_URI N/A retry N/A xrange num_retries N/A N/A N/A N/A logbook info Testing database connection... (retry {0}/{1}) N/A retry 1 num_retries N/A N/A retry 0 N/A N/A N/A N/A time sleep retry_sleep_seconds N/A N/A N/A N/A N/A N/A N/A sqlalchemy create_engine uri connect N/A N/A N/A N/A N/A sqlalchemy exc OperationalError N/A e N/A N/A N/A does not exist N/A str e N/A N/A N/A N/A N/A logbook error Ignoring OperationError {0} (db still not availalbe?) e N/A N/A Exception N/A e N/A N/A N/A N/A logbook error Could not connect to database ({0.__class__}: {0}. Going to retry... e exc_info True N/A N/A N/A N/A N/A RuntimeError Could not connect to database N/A N/A N/A logbook info Database connection successful N/A N/A N/A db command drop N/A N/A N/A N/A flask_app.app create_app flask_app.models db N/A app N/A create_app N/A N/A N/A app app_context N/A N/A N/A N/A db drop_all N/A N/A N/A N/A db engine execute DROP TABLE IF EXISTS alembic_version N/A N/A N/A db command N/A requires_env app revision N/A N/A message N/A N/A N/A N/A _migrate_context migrate N/A N/A N/A N/A migrate upgrade N/A N/A N/A migrate revision autogenerate True message message N/A N/A N/A db command N/A requires_env app N/A N/A click option -m --message default None upgrade N/A N/A N/A N/A N/A N/A _migrate_context migrate N/A N/A N/A N/A migrate upgrade N/A N/A N/A db command N/A requires_env app downgrade N/A N/A N/A N/A N/A N/A _migrate_context migrate N/A N/A N/A N/A migrate downgrade N/A N/A N/A db command N/A requires_env app _migrate_context N/A N/A N/A N/A flask_app.app create_app flask_app.models db flask.ext migrate N/A app N/A create_app N/A N/A N/A migrate Migrate app db N/A N/A N/A app app_context N/A N/A N/A migrate N/A contextmanager