afthermal
afthermal is a driver/library for the popular Adafruit (originally Cashino A2) thermal printer [1].
Partially, it is inspired by previous efforts:
afthermal try to be more pythonic and efficient than previous efforts, which have mostly been 1:1 ports from other languages. Additionally it is not focused on education but rather on being a reliable library for handling this kind of hardware.
Features include:
Comfortable handling of text formatting
Adapters to print images from PIL / Pillow as well as OpenCV
A fast Floyd-Steinberg implementation to dither OpenCV images.
Command-line utilities for calibrating the printer for optimum speed and quality, as well as other capabilities
Support for printing QR codes via PyQRCode without having to render them into images first
Installation
afthermal is installable from pip. It supports an extra feature named tools, installing it will include cli tools for calibrating the printer, printing test images or other tasks:
$ pip install 'afthermal[tools]'
It includes a C extension for Floyd-Steinberg dithering, since OpenCV does not ship with a dithering function. For this reason C-modules must be compileable when installing afthermal.
Full docs
The complete documentation is housed at http://pythonhosted.org/afthermal.
Metadata
Release files for afthermal 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| afthermal-0.3.1.tar.gz | 44.2 kB | Without provenance | Details for afthermal-0.3.1.tar.gz |
Release files / afthermal-0.3.1.tar.gz
| Download URL | afthermal-0.3.1.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d427cfa1a5de262f2f948074c9d442aff69669660382a5a10e728dcef41d3868
|
|
BLAKE2b-256 checksum How to use checksums |
33f1e28ee26c97ac998a526b1dbac2017c5dd80c4dbf2b350c5f4d02a5ab94f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for afthermal 0.3.1
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.