"""Setting keys, defaults and constants.""" SERVER_URL = "server_url" API_TOKENS = "api_tokens" SEND_TO_CHAT = "send_to_chat" SERVER_COMMANDS = "server_commands" SHOW_PARAMS = "show_params" DEFAULTS = { SERVER_URL: "", API_TOKENS: "", SEND_TO_CHAT: False, SERVER_COMMANDS: True, SHOW_PARAMS: True, } # The panel's list of an account's commands is asked for again after this # long (the server may say otherwise in `refresh_seconds`). REFRESH_SECONDS = 3600 # A failed refresh is retried sooner. RETRY_SECONDS = 300 HTTP_TIMEOUT_SECONDS = 15 # Running a command may take a while on the server (it times out at 60 s). EXECUTE_TIMEOUT_SECONDS = 75