Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

inNETMonitoring/datamax-python-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Enables you to controll a datamax label printer from python.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages