Giter Club home page Giter Club logo

python-epson-printer's Introduction

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

python-epson-printer's People

Contributors

benoitguigal avatar rbaier avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.