Skip to main content

Driver for the DP-EH600 thermal printer (AdaFruit).

Project description

Python module to manage the DP-EH600 thermal printer (the one sold by AdaFruit).


As simple as:

python3 -m pip install --upgrade --user thermalprinter


An example is better than thousand words:

from PIL import Image
from ThermalPrinter import *

with ThermalPrinter(port='/dev/ttyAMA0') as printer:
    # Picture

    # Bar codes
    printer.barcode('012345678901', BarCode.EAN13)

    # Styles
    printer.out('Bold', bold=True)
    printer.out('Double height', double_height=True)
    printer.out('Double width', double_width=True)
    printer.out('Inverse', inverse=True)
    printer.out('Rotate 90°', rotate=True, codepage=CodePage.ISO_8859_1)
    printer.out('Strike', strike=True)
    printer.out('Underline', underline=1)
    printer.out('Upside down', upside_down=True)

    # Chinese (almost all alphabets exist)
    printer.out('现代汉语通用字表', chinese=True,

    # Greek (excepted the ΐ character)
    printer.out('Στην υγειά μας!', codepage=CodePage.CP737)

    # Accents
    printer.out('Voilà !', justify='C', strike=True,
                underline=2, codepage=CodePage.ISO_8859_1)

    # Line feeds

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for thermalprinter, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size thermalprinter-0.2.0-py2.py3-none-any.whl (26.2 kB) File type Wheel Python version 3.8 Upload date Hashes View
Filename, size thermalprinter-0.2.0.tar.gz (25.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page