MCPcopy Create free account
hub / github.com/pallets/quart / app_context

Method app_context

src/quart/app.py:1249–1259  ·  view source on GitHub ↗

Create and return an app context. This is best used within a context, i.e. .. code-block:: python async with app.app_context(): ...

(self)

Source from the content-addressed store, hash-verified

1247 )
1248
1249 def app_context(self) -> AppContext:
1250 """Create and return an app context.
1251
1252 This is best used within a context, i.e.
1253
1254 .. code-block:: python
1255
1256 async with app.app_context():
1257 ...
1258 """
1259 return AppContext(self)
1260
1261 def request_context(self, request: Request) -> RequestContext:
1262 """Create and return a request context.

Callers 15

_wrapperMethod · 0.95
startupMethod · 0.95
shutdownMethod · 0.95
test_send_file_pathFunction · 0.95
test_send_file_bytes_ioFunction · 0.95
test_send_file_mimetypeFunction · 0.95
test_send_file_max_ageFunction · 0.95

Calls 1

AppContextClass · 0.85