@task
def enter(context, install_dependencies=True, upgrade_db=True):
    if install_dependencies:
        context.invoke_execute(context, 'app.dependencies.install')
    if upgrade_db:
        context.invoke_execute(context, 'app.db.upgrade')
        context.invoke_execute(
            context,
            'app.db.init_development_data',
            upgrade_db=False,
            skip_on_failure=True
        )


    import pprint
    import logging

    from werkzeug import script
    import flask

    import app
    flask_app = app.create_app()

    def shell_context():
        context = dict(pprint=pprint.pprint)
        context.update(vars(flask))
        context.update(vars(app))
        return context

    with flask_app.app_context():
        script.make_shell(shell_context, use_ipython=True)()
A hook to allow a final manipulation of data once all fields/methods
dataset/ETHPy150Open frol/flask-restplus-server-example/tasks/app/env.py/enter--crossover with--dataset/ETHPy150Open toastdriven/piecrust/piecrust/resources.py/Resource.dehydrate