{"library":"python-escpos","title":"python-escpos","description":"Library to manipulate ESC/POS printers. Supports USB, serial, network, and file interfaces. Current version is 3.1 (released 2024-04-07). Requires Python >=3.8.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python-escpos"],"cli":null},"imports":["from escpos.printer import Usb","from escpos.printer import Serial","from escpos.printer import Network","from escpos.printer import File"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from escpos.printer import Usb\n\n# Replace with your printer's USB vendor and product IDs\np = Usb(0x04b8, 0x0202, in_ep=0x82, out_ep=0x01)\np.text(\"Hello World\\n\")\np.image(\"logo.png\")\np.barcode(\"1234567890128\", \"EAN13\", height=100)\np.cut()","lang":"python","description":"Basic usage: open USB printer, print text, image, barcode, and cut paper.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}