Printer

class simple_zpl2.printer.NetworkPrinter(ip_address, port=9100)[source]

Bases: object

Object to send ZPL to zebra network printer using sockets

Parameters:
  • ip_address – printer network address as ‘xxx.xxx.xxx.xxx’
  • port – port of printer as int (default 9100)
print_zpl(zpl_document, timeout=10)[source]

Send ZPL2 formatted text to a network label printer

Parameters:
  • zpl_document – Document object, fully build for label.
  • timeout – Socket timeout for printer connection, default 10.