Skip to content

benoitguigal/python-epson-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python library for EPSON thermal printers

A python library to control thermal printers based on the ESC/POS language as defined by Epson.

Installation

Clone the project

git clone https://github.com/benoitguigal/python-epson-printer.git

Install dependencies

cd python-epson-printer
sudo python setup.py install

Connect your EPSON thermal printer via a USB port and run

lsusb
Bus 001 Device 005: ID 04b8:0e03 Seiko Epson Corp.

Write down the vendor_id and the product_id and pass them as arguments to the test page

sudo python -m epson_printer.testpage -v 0x04b8 -p 0x0e03

Devices

The library should work with all ESC/POS-based Epson printers but it has only been tested with a TM-T20. If you have tested the library with a different model, please add it to the list of supported printers

ESC/POS commands

Print commands
  • print text
  • feed lines
Character commands
  • Left, right or centered justified
  • Bold ON/OFF
  • Underline ON/OFF
  • Font size
Bit image commands
  • print arbitrary long bitmap pixels array
Hardware commands
  • full paper cut

Credits

About

A python library for Epson thermal printers based on ESC/POS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages