Skip to main content
Continous Integration Code issues 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.

Dependencies

This library makes use of:

  • pyusb for USB-printers

  • Pillow for image printing

  • qrcode for the generation of QR-codes

  • pyserial for serial printers

Documentation and Usage

The basic usage is:

from escpos import *

""" Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """
Epson = escpos.Escpos(0x04b8,0x0202,0)
Epson.text("Hello World\n")
Epson.image("logo.gif")
Epson.barcode('1324354657687','EAN13',64,2,'','')
Epson.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.

Release files for python-escpos 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-escpos 2.0.0
File Size Uploaded
python-escpos-2.0.0.tar.gz 81.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-escpos 2.0.0
File Interpreter ABI Platform
python_escpos-2.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 109.2 kB

Release files / python-escpos-2.0.0.tar.gz

Download URL python-escpos-2.0.0.tar.gz
Size 81.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fcd87134759d259831392841ba61304cecb0622541c79b9627d8e7b789f42762
BLAKE2b-256 checksum
How to use checksums
6c766bf13f046c07803b4bc72f17ace55708d670869ed897fdef62a6f5b5995b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_escpos-2.0.0-py2.py3-none-any.whl

Download URL python_escpos-2.0.0-py2.py3-none-any.whl
Size 27.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d370718a4600fe4142b80540bdcfaac38d2d2041c18e089ca0d0e65f5483154a
BLAKE2b-256 checksum
How to use checksums
b94abb0525e3279615356ac2fc71fb3d2130723c0382ace592fbb891de6f30ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page