Skip to main content

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

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.

Metadata

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 Provenance Actions
python-escpos-2.0.0.tar.gz 81.9 kB Without provenance Details for python-escpos-2.0.0.tar.gz

Built distribution (wheel)

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

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

Security for python-escpos 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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