Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Print XML-defined Receipts on ESC/POS Receipt Printers

Project description


XML-ESC/POS is a simple library that allows you to
interact with ESC/POS devices with a simple utf8
encoded xml format similar to HTML. The following
example is self-explanatory:

.. code:: xml
<h2>div,span,p,ul,ol are also supported</h2>
<hr />
<line size='double-height'>
<barcode encoding='ean13'>
<cashdraw />
<cut />

.. code:: python
from xmlescpos.printer import Usb
printer = Usb(0x04b8,0x0e03)
printer.receipt("<div>Hello World!</div>")

The utf8 support is incomplete, mostly asian languages
are not working since they are badly documented and
only supported by region-specific hardware.

This is also the very first release, which is a simple
extraction from the Odoo code base. While it works well,
it needs some cleanup for public use.

Also, the doc is non-existent.

Project details

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyxmlescpos-0.1.0.tar.gz (14.2 kB) Copy SHA256 hash SHA256 Source None Dec 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page