neural_compressor.ux.web.configuration¶
Configuration module for UX server.
Module Contents¶
Classes¶
Configuration object for UX server. |
- class neural_compressor.ux.web.configuration.Configuration¶
Configuration object for UX server.
- property global_config_directory: str¶
Get the directory for global config files.
- set_up() None¶
Reset variables.
- determine_values_from_environment() None¶
Set variables based on environment values.
- get_command_line_args() Dict¶
Return arguments passed in command line.
- determine_server_port(args: Dict) int¶
Return port to be used by the server.
Will raise a NotFoundException if port is already in use.
When port given in command line, only that port will be tried. When no port specified will try self.MAX_PORTS_TRIED times, starting with self.PORT_DEFAULT.
- determine_gui_port(args: Dict) int¶
Return port to be used by the GUI client.
Will return self.server_port unless specified in configuration.
- is_port_taken(port: int) bool¶
Return if given port is already in use.
- determine_log_level(args: Dict) int¶
Determine log level based on parameters given.
- static determine_url_prefix(args: dict) str¶
Determine url prefix based on parameters given.
- get_url() str¶
Return URL to access application.
- dump_token_to_file() None¶
Dump token to file.