Client.__init__

Client.__init__(config_file: str = None, host: str = None, port: int = None)[source]

Initializes the Client object. If a config_file is given, the constructor calls the config() method and overrides the default attributes. If the parameters host and port are given, they will override the configuration file.

Parameters
  • config_file (str, optional) – Configuration file name, default is None. Same as See the example TODO.

  • host (str, optional) – Host address, default is None.

  • port (int, optional) – Connection port, default is None.

Raises

configparser.Error – If a configuration file name was given, the method config() can fail raising this exception.