Client.__init__¶
- Client.__init__(config_file: Optional[str] = None, host: Optional[str] = None, port: Optional[int] = None)[source]¶
Initializes the
Client
object. If aconfig_file
is given, the constructor calls theconfig()
method and overrides the default attributes. If the parametershost
andport
are given, they will override the configuration file.- Parameters
- Raises
configparser.Error – If a configuration file name was given, the method
config()
can fail raising this exception.