Python
Latest commit 26d72a6 Dec 4, 2017 @braveheuel braveheuel committed with patkan Feature/clear content in dummy printer (#271)
Add Function to Dummy Printer for Clearing Buffer

If you are using the dummy printer, you may want to use the printer
again after sending the output to a physical printer.
This method empties the list of the output buffer.
Permalink
Failed to load latest commit information.
.github add version-strings into the module Jul 17, 2016
capabilities-data @ fd207aa Updated capabilities data to new version Mar 29, 2017
doc tell sort to ignore case Aug 31, 2017
examples First attempt at centering images and QRs (#250) Aug 31, 2017
src/escpos Feature/clear content in dummy printer (#271) Dec 3, 2017
test
.coveragerc
.gitignore Handle cases when fullCut or partCut not available Mar 29, 2017
.gitmodules update printer DB submodule path Sep 9, 2016
.mailmap raise exception when TypeError occurs in cashdraw (#268) Dec 3, 2017
.travis.yml integrate author check into travis May 26, 2017
AUTHORS
CHANGELOG.rst update changelog Oct 8, 2017
CONTRIBUTING.rst update contributing Aug 8, 2017
INSTALL Updated installation instructions Mar 14, 2013
LICENSE change license to MIT Jan 31, 2017
MANIFEST.in change license to MIT Jan 31, 2017
README.rst update README Aug 8, 2017
codecov.yml remove patch-coverage because we don't use it Mar 23, 2017
readthedocs.yml configure readthedocs with yml Aug 2, 2016
requirements.txt
setup.cfg add flake8-checks to travis Jan 30, 2017
setup.py ammend blacklisting from cd1bcb5 Dec 3, 2017
tox.ini ammend blacklisting from cd1bcb5 Dec 3, 2017

README.rst

python-escpos - Python library to manipulate ESC/POS Printers

Continous Integration Code Health Code Coverage Documentation Status

Description

Python ESC/POS is a library which lets the user have access to all those printers handled by ESC/POS commands, as defined by Epson, from a Python application.

The library tries to implement the functions provided by the ESC/POS-commandset and supports sending text, images, barcodes and qr-codes to the printer.

Text can be aligned/justified and fonts can be changed by size, type and weight.

Also, this module handles some hardware functionalities like cutting paper, control characters, printer reset and similar functions.

Since supported commands differ from printer to printer the software tries to automatically apply the right settings for the printer that you set. These settings are handled by escpos-printer-db which is also used in escpos-php.

Dependencies

This library makes use of:

Documentation and Usage

The basic usage is:

from escpos.printer import Usb

""" Seiko Epson Corp. Receipt Printer (EPSON TM-T88III) """
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
p.text("Hello World\n")
p.image("logo.gif")
p.barcode('1324354657687', 'EAN13', 64, 2, '', '')
p.cut()

The full project-documentation is available on Read the Docs.

Contributing

This project is open for any contribution! Please see CONTRIBUTING.rst for more information.

Disclaimer

None of the vendors cited in this project agree or endorse any of the patterns or implementations. Its names are used only to maintain context.