def __init__(self, host, port=9100, timeout=60, *args, **kwargs):
        """

        :param host:    Printer's hostname or IP address
        :param port:    Port to write to
        :param timeout: timeout in seconds for the socket-library
        """
        Escpos.__init__(self, *args, **kwargs)
        self.host = host
        self.port = port
        self.timeout = timeout
        self.open()
def __init__ ( self , host , port = 9100 , timeout = 60 , * args , ** kwargs ) : Escpos . __init__ ( self , * args , ** kwargs ) self . host = host self . port = port self . timeout = timeout self . open ( )
:param host:    Printer's hostname or IP address
        :param port:    Port to write to
        :param timeout: timeout in seconds for the socket-library