Skip to main content

API wrapper for DYMO Web Services.

Project description

dymopy

Simple http client for creating labels using the DYMO Connect Web Service.

Heavily influenced by the dymojs package available for node.

Example

Example using a Dymo Twin Turbo. You may need to modify make_params() to suit your printer.

from dymopy import Dymo

dymo = Dymo()

status = dymo.get_status()
assert status['status_code'] == 200

printer = dymo.get_printer()
assert printer['status_code'] == 200

# Helpers for with text XML to send to the printer
label_params = make_params(side="Right")
label_xml = make_xml("Hello", "I am Bill!")
    
print_resp = dymo.print(label_xml=label_xml, label_params=label_params)
assert print_resp.status_code == 200

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

dymopy-0.1.8.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

dymopy-0.1.8-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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