Skip to main content
XML-ESC/POS
===========

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
<receipt>
<h1>Receipt!</h1>
<h2>div,span,p,ul,ol are also supported</h2>
<line>
<left>Product</left>
<right>0.15€</right>
</line>
<hr />
<line size='double-height'>
<left>TOTAL</left>
<right>0.15€</right>
</line>
<barcode encoding='ean13'>
5449000000996
</barcode>
<cashdraw />
<cut />
</receipt>

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

Limitations
-----------
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.

Metadata

Release files for pyxmlescpos 0.1.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 pyxmlescpos 0.1.0
File Size Uploaded Provenance Actions
pyxmlescpos-0.1.0.tar.gz 14.2 kB Without provenance Details for pyxmlescpos-0.1.0.tar.gz

Release files / pyxmlescpos-0.1.0.tar.gz

Download URL pyxmlescpos-0.1.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e08d3cd8b467a8f26a3255dc6cac174ccc62309277c57124a6dec43d69bf57d5
BLAKE2b-256 checksum
How to use checksums
4ab8d7899140795f8eaef76d95feac32aa28caf8ed7770d1c00012ffff0e553c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyxmlescpos 0.1.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

0.1.0 This release

1 release file 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