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.
()
| 44 | |
| 45 | |
| 46 | def 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 | |
| 55 | def get_load_dotenv(default: bool = True) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…