clearpath_config.system.servers module

class clearpath_config.system.servers.ServerConfig(config: dict = {}, hostname: str | Hostname = '', ip_address: str | IP = '', port: int | Port = 11811, server_id: int = 0, enabled: bool = True)

Bases: BaseConfig

DEFAULTS = {'enabled': True, 'hostname': '', 'ip': '', 'port': 11811, 'server_id': 0}
ENABLED = 'enabled'
HOSTNAME = 'hostname'
IP_ADDRESS = 'ip'
KEYS = {'enabled': 'enabled', 'hostname': 'hostname', 'ip': 'ip', 'port': 'port', 'server_id': 'server_id'}
PORT = 'port'
SERVER_ID = 'server_id'
TEMPLATE = {'enabled': 'enabled', 'hostname': 'hostname', 'ip': 'ip', 'port': 'port', 'server_id': 'server_id'}
property enabled: bool
property hostname: str
property ip_address: str
property port: int
property server_id: int
class clearpath_config.system.servers.ServerListConfig

Bases: ListConfig[ServerConfig, int]

to_dict() List[dict]