datamax-printer-0.1.1
توضیحات
Controll a datamax o'neil labelprinter using DPL
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | datamax-printer-0.1.1 |
| نام | datamax-printer |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michael Blättler |
| ایمیل نویسنده | michael.blaettler@innetag.ch |
| آدرس صفحه اصلی | https://github.com/inNETMonitoring/datamax-python-adapter |
| آدرس اینترنتی | https://pypi.org/project/datamax-printer/ |
| مجوز | - |
# 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
```bash
$ pip install datamax-printer
```
or from source:
```bash
$ python setup.py install
```
## Getting started
```python
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](https://github.com/inNETMonitoring/datamax-python-adapter)
for a working example.
## Ressources
In case you need more information about the datamax programming language, please check the [official DPL documentation](
https://support.honeywellaidc.com/s/article/How-To-Program-Using-The-Datamax-Programming-Language-Manual). It also
contains information about the different fonts available (see Appendix C).
نحوه نصب
نصب پکیج whl datamax-printer-0.1.1:
pip install datamax-printer-0.1.1.whl
نصب پکیج tar.gz datamax-printer-0.1.1:
pip install datamax-printer-0.1.1.tar.gz