$npx skillfedfor your agent

python-escpos

Python library to manipulate ESC/POS Printers

Worth itPyPI Python ModulesReleased Dec 2023109.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python_escpos-3.1-py3-none-any.whl
v3.1 · released 2023-12-17 · Python >=3.8 · 9 runtime deps: Pillow, PyYAML, appdirs, argcomplete, importlib-resources, python-barcode, qrcode, setuptools

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
PillowPyYAMLappdirsargcompleteimportlib-resourcespython-barcodeqrcodesetuptoolssix
MaintenanceActively maintained 971 days since the last release
Last repo commit
First released
Downloads109,078 / month, #12,528 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
ESC/POS printer controlthermal receipt printer pythonbarcode qr code printingpoint of sale printer libraryUSB serial network printer
Topics
pos-printingthermal-printerhardware-integration
PyPI keywords
ESC/POSthermoprintervoucher printerprintingreceipt

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also binho-host-adapter · brother · pyipp · zxing-cpp · bellows · pyserial-asyncio · prettyprinter · esp-pylib · pyusb · pyprusalink