Python 3.10 is now available in preview.

Module: google.appengine.runtime.context

Wrapper for contextvars that can fall back to old os.environ hack.

Modules

ctx_test_util module: Test func/class decorator that runs tests in a clean context.

gae_headers module: Save X-Appengine-* headers into request context.

wsgi module: Save a few WSGI vars into request context.

Functions

get(...): Read context from os.environ if READ_GAE_CONTEXT_FROM_OS_ENVIRON else, from contextvars.

init_from_wsgi_environ(...)

READ_FROM_OS_ENVIRON True