docs: def shell():
      """ Start application-aware shell """
      app = bootstrap.get_app()
      context = dict(app=app)
  
      # and push app context
      app_context = app.app_context()
      app_context.push()
  
      # got ipython?
      ipython = importlib.util.find_spec("IPython")
  
      # run now
      if ipython:
          from IPython import embed
          embed(user_ns=context)
      else:
          import code
          code.interact(local=context)