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

Function get_debug_flag

src/quart/helpers.py:46–52  ·  view source on GitHub ↗

Reads QUART_DEBUG environment variable to determine whether to run the app in debug mode. If unset, and development mode has been configured, it will be enabled automatically.

()

Source from the content-addressed store, hash-verified

44
45
46def get_debug_flag() -> bool:
47 """Reads QUART_DEBUG environment variable to determine whether to run
48 the app in debug mode. If unset, and development mode has been
49 configured, it will be enabled automatically.
50 """
51 value = os.getenv("QUART_DEBUG", None)
52 return bool(value and value.lower() not in {"0", "false", "no"})
53
54
55def get_load_dotenv(default: bool = True) -> bool:

Callers 3

load_appMethod · 0.85
run_commandFunction · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…