pyufunc.printer_file#

pyufunc.printer_file(fname_lst, host, port=9100)#

Send data to a network printer.

Parameters:
  • fname_lst (list) – a list of files or binary data

  • host (str) – the host of the printer

  • port (int, optional) – printer port. Defaults to 9100.

Raises:

Example

>>> import pyufunc as pf
>>> pf.network_printer(["test.txt"], "printer_host_name")
Returns:

None

Return type:

None