Skip to content

_appengine_environ

This module provides means to detect the App Engine environment.

is_appengine_sandbox()

Reports if the app is running in the first generation sandbox.

The second generation runtimes are technically still in a sandbox, but it is much less restrictive, so generally you shouldn't need to check for it. see https://cloud.google.com/appengine/docs/standard/runtimes

Source code in client/ayon_fusion/vendor/urllib3/contrib/_appengine_environ.py
12
13
14
15
16
17
18
19
def is_appengine_sandbox():
    """Reports if the app is running in the first generation sandbox.

    The second generation runtimes are technically still in a sandbox, but it
    is much less restrictive, so generally you shouldn't need to check for it.
    see https://cloud.google.com/appengine/docs/standard/runtimes
    """
    return is_appengine() and os.environ["APPENGINE_RUNTIME"] == "python27"

is_prod_appengine_mvms()

Deprecated.

Source code in client/ayon_fusion/vendor/urllib3/contrib/_appengine_environ.py
34
35
36
def is_prod_appengine_mvms():
    """Deprecated."""
    return False