Skip to main content

Controll a datamax o'neil labelprinter using DPL

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datamax_printer-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

datamax_printer-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file datamax_printer-0.1.0.tar.gz.

File metadata

  • Download URL: datamax_printer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for datamax_printer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b0e12db884d433f850afaddaa0f6a44576cdf703f35ea618a293e7eb4b257ee
MD5 b40eb051ba952a4e95618651f9a2a64b
BLAKE2b-256 60f74b1571ff8590f3a5f7ea30e1fa1655c7ef462721d488dc29733345e2979c

See more details on using hashes here.

File details

Details for the file datamax_printer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: datamax_printer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for datamax_printer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6fec5c48915c557d6a430124c4604505d44159d462a33581647fbf29e2ee1e5
MD5 a0675d81ab7e6699a784ee9f4eccb7ba
BLAKE2b-256 6fb43492b7429b3395c2a747a6f1834fdefd78fb8a636a8a30bf26c1dc80435d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page