Configuration (runthis.server.config)¶
Config specification for runthis-server
- 
class runthis.server.config.Config(certfile: str = None, command: str = 'python3', docker: bool = True, docker_image: str = 'ubuntu:latest', gotty_path: str = 'gotty', host: str = '127.0.0.1', keyfile: str = None, port: int = 5000, tty_server: str = 'gotty', tty_server_port_start: int = 8080, ttyd_path: str = 'ttyd')¶
- 
certfile: str = None¶
 - 
command: str = 'python3'¶
 - 
docker: bool = True¶
 - 
docker_image: str = 'ubuntu:latest'¶
 - 
gotty_path: str = 'gotty'¶
 - 
host: str = '127.0.0.1'¶
 - 
keyfile: str = None¶
 - 
port: int = 5000¶
 - 
tty_server: str = 'gotty'¶
 - 
tty_server_port_start: int = 8080¶
 - 
ttyd_path: str = 'ttyd'¶
 
- 
- 
runthis.server.config.ensure_list(var)¶
- Converts to a list, safely 
- 
runthis.server.config.ensure_set(var)¶
- Converts to a set, safely 
- 
runthis.server.config.get_config_from_yaml(yaml_path, config=None)¶
- Free function responsible to create or fill a Config object with the content of a yaml file. - yaml_pathstr
- Path to the YAML file 
- configConfig, optional
- If it is received a Config object it will be filled otherwise this function will create a new Config object. 
 - Config
- Config object with the yaml configuration 
 
