Skip to main content

Usage:

from zebra import Zebra

z = Zebra( [queue] )
  Constructor with optional printer queue

z.getqueues()
  Return a list containing available printer queues

z.setqueue( queue )
  Set the printer queue

z.setup( direct_thermal=None, label_height=None, label_width=None )
  Set up the label printer using EPL2. Parameters are not set if they are None.
  Not necessary if using AutoSense (hold feed button while powering on)
    direct_thermal - True if using direct thermal labels
    label_height   - tuple (label height, label gap) in dots
    label_width    - in dots

z.reset_default()
  Resets the printer to factory settings using EPL2

z.reset()
  Resets the printer using EPL2 - equivalent of switching off/on

z.autosense()
  Run AutoSense by sending an EPL2 command
  Get the printer to detect label and gap length and set the sensor levels

z.print_config_label()
  Send an EPL2 command to print label(s) with current config settings

z.store_graphic( name, filename )
  Store a 1 bit .PCX file on the label printer using EPL2
    name     - name to be used on printer
    filename - local filename

z.print_graphic( x, y, width, length, data, qty )
    Print a label from 1 bit data, using EPL2
      x,y    - top left coordinates of the image, in dots
      width  - width of image, in dots.  Must be a multiple of 8.
      length - length of image, in dots
      data   - raw graphical data, in bytes
      qty    - number of labels to print

z.output( commands )
  Output raw commands to the printer

z.print_config_label()
  Print label(s) containing the current printer configuration using EPL2

Note:

If you are on a Linux or MacOSX machine using CUPS, you may need to set up a printer queue using the admin panel at http://localhost:631

Download files

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

Source Distribution

zebra-0.2.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zebra-0.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file zebra-0.2.1.tar.gz.

File metadata

  • Download URL: zebra-0.2.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for zebra-0.2.1.tar.gz
Algorithm Hash digest
SHA256 62d093a66d2e189b39224aa4403dde22415e8c94965cd8d637f37a34ce2bc0b6
MD5 de73314f01265543b6080de6bc2ed323
BLAKE2b-256 a3f8145ceb3a6f6b0d6086943d4741565c51439817a85d3d02278300aa52d401

See more details on using hashes here.

File details

Details for the file zebra-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: zebra-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for zebra-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03ecc55ed47738184a405b585a2f4e6baa8870352373cb91d29871091ee90aa2
MD5 559f46b4254c569ff0833ded060fe9d7
BLAKE2b-256 2a7cf48948e3adc912f2c8e01aa0efb9bd4f7d8b9e0004899f4a18e539e024d4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

0.0.5

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page