python-escpos
Python library to manipulate ESC/POS Printers
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, uses a permissive MIT license, and solves a real problem for applications that need to control ESC/POS printers. It is well-suited for point-of-sale, receipt printing, and label generation tasks. The main constraint is that you must have a compatible printer and know its connection details (USB IDs, network address, or serial port).AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a compatible ESC/POS printer connected via USB, network, or serial; printer vendor ID and product ID needed for USB connections.
- Low friction install with a wheel distribution.
- Maintains active development (last commit 2026-08-04) and supports current Python versions (3.8–3.12).
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2023-12-17 (971 days) · last repo commit 2026-08-04 · 1,314 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 109,078 downloads/mo, #12,528 on PyPI
Alternatives
Verify before relying
from escpos.printer import Usb
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
p.text("Hello World\n")
p.barcode('4006381333931', 'EAN13', 64, 2, '', '')
p.cut()- Whether pyusb and pyserial are optional or required for USB and serial printer support (not listed in runtime deps).
- Specific printer models and firmware versions confirmed to work with the automatic profile detection system.
What it is and what it does
python-escpos is a Python wrapper around the ESC/POS command set defined by Epson, enabling applications to control thermal receipt printers commonly used in point-of-sale systems. It abstracts the low-level printer protocol, letting you send formatted text, images, barcodes, and QR codes to printers connected via USB, network, or serial interfaces. The library handles printer-specific variations automatically by consulting an external printer database to apply the correct settings for your device model.
The package depends on Pillow for image rendering, qrcode and python-barcode for code generation, and PyYAML and other utilities for configuration. It supports modern Python versions (3.8–3.12) and is actively maintained. Use it when you need to print receipts, labels, or vouchers from a Python application without manually constructing binary ESC/POS commands.
Use it for
- Print receipts and transaction records from a point-of-sale application to a thermal printer.
- Generate and print barcodes or QR codes on labels or receipts for inventory or customer tracking.
- Control paper cutting, font styles, and text alignment on thermal printers from a Python backend.
- Integrate thermal printer output into a kitchen display or order management system.
- Send formatted text and images to network-connected or USB-attached receipt printers in retail or hospitality settings.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with low friction, uses a permissive MIT license, and solves a real problem for applications that need to control ESC/POS printers. It is well-suited for point-of-sale, receipt printing, and label generation tasks. The main constraint is that you must have a compatible printer and know its connection details (USB IDs, network address, or serial port).
Install
python-escpos on PyPI
Before you install
Low friction install with a wheel distribution. Maintains active development (last commit 2026-08-04) and supports current Python versions (3.8–3.12). Nine runtime dependencies are all well-established libraries (Pillow, PyYAML, qrcode, python-barcode, etc.).
Requires a compatible ESC/POS printer connected via USB, network, or serial; printer vendor ID and product ID needed for USB connections.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
from escpos.printer import Usb
p = Usb(0x04b8, 0x0202, 0, profile="TM-T88III")
p.text("Hello World\n")
p.barcode('4006381333931', 'EAN13', 64, 2, '', '')
p.cut()
Verify before relying
- Whether pyusb and pyserial are optional or required for USB and serial printer support (not listed in runtime deps).
- Specific printer models and firmware versions confirmed to work with the automatic profile detection system.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesPillowPyYAMLappdirsargcompleteimportlib-resourcespython-barcodeqrcodesetuptoolssix |
| Maintenance | Actively maintained 971 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,078 / month, #12,528 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Office/Business :: Financial :: Point-Of-SaleTopic :: Software Development :: Libraries :: Python Modules |
Evidence: python_escpos-3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ESC/POS printer control”
- python-escposPython library to send text, images, barcodes, and QR codes to…
- pulumi-esc-sdkPulumi ESC SDK provides a Python client for composing, managing, and…
- pyprusalinkAsync Python client for the PrusaLink HTTP API, enabling remote…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also binho-host-adapter · brother · pyipp · zxing-cpp · bellows · pyserial-asyncio · prettyprinter · esp-pylib · pyusb · pyprusalink