Datamax python adapter
This piece of code allows you to control a datamax-o'neil label printer. You do not need knowledge of the datamax programming language for simple tasks, this module takes care of it.
The module was developed and tested on python 3.6 using a datamax o'neil e-class mark III printer. It still has very limited functionality allowing you to print text labels and QR-codes. In case you need any other features feel free to contribute.
Install
$ pip install datamax-printer
or from source:
$ python setup.py install
Getting started
from datamax_printer import DPLPrinter
printer = DPLPrinter('<ip of the printer>')
printer.configure()
printer.start_document()
printer.set_qr_code(285, 120, 'https://www.innetag.ch/', 9)
printer.set_label(300, 60, 'innetag.ch', 9, 10)
printer.print()
Please check the example.py file in our GitHub repository
for a working example.
Ressources
In case you need more information about the datamax programming language, please check the official DPL documentation. It also contains information about the different fonts available (see Appendix C).
Metadata
Release files for datamax-printer 0.1.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 |
|---|---|---|---|---|
| datamax_printer-0.1.1.tar.gz | 3.6 kB | Without provenance | Details for datamax_printer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datamax_printer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for datamax_printer-0.1.1-py3-none-any.whl |
Total release size: 8.5 kB
Release files / datamax_printer-0.1.1.tar.gz
| Download URL | datamax_printer-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4103eddb72f578590b7b1e74f14149daf996790f6cbeb21596c779cdf35a799
|
|
BLAKE2b-256 checksum How to use checksums |
deb8a97b5201b39d121ee2c9b8d255867b5582273003683055405ec6dcda1df7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / datamax_printer-0.1.1-py3-none-any.whl
| Download URL | datamax_printer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
168680b9999fb567f6b1a3a11324d2c703c3776072830a68521b876b8f4a71a7
|
|
BLAKE2b-256 checksum How to use checksums |
31e8fa792f0dfc84d6565787929f537f0d93f6cd682e9ec33f4f22a541b58f0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for datamax-printer 0.1.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.