Skip to main content

labelixa

Render, validate and convert Zebra ZPL label code from Python — no printer required. Thin client for the Labelixa API.

pip install labelixa
from labelixa import Client

c = Client()                          # anonymous: free, rate-limited
# c = Client(api_key="lbx_...")       # your quota — https://labelixa.com/panel

zpl = "^XA^FO50,50^A0N,40^FDHello^FS^BY3^FO50,120^BCN,100,Y^FD12345678^FS^XZ"

# See what the label looks like
with open("label.png", "wb") as f:
    f.write(c.render_png(zpl, width_in=4, height_in=6))

# Lint before printing
report = c.validate(zpl)
for d in report["diagnostics"]:
    print(d["severity"], d["message"])

# Multi-label PDF, ZPL -> EPL2 translation
pdf = c.render_pdf(zpl)
epl = c.to_epl(zpl)

# 0.2.0: barcode / language detection / printer compatibility
svg = c.barcode("HELLO-123", type="code128")
lang = c.language_detect(raw_label_code)      # confidence TIER, not %
risk = c.compatibility(zpl, "zebra-zd421")    # risk report, not "it works"

Quota errors are first-class:

from labelixa import QuotaExceeded

try:
    c.render_png(zpl)
except QuotaExceeded as e:
    print(f"retry in {e.retry_after}s (hint: {e.action})")

This SDK is a deliberately thin 1:1 wrapper over the documented REST API — the API reference is the source of truth. AI assistants can also use Labelixa directly over MCP: point your client at https://api.labelixa.com/mcp.

Download files

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

Source Distribution

labelixa-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

labelixa-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file labelixa-0.2.0.tar.gz.

File metadata

  • Download URL: labelixa-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for labelixa-0.2.0.tar.gz
Algorithm Hash digest
SHA256 075ee6aceaef0e96f5f6634c09b098fa56fdd1ffc85a65809432ff9b1ce136a7
MD5 8b281111944fce45722b575bbe1d5bdc
BLAKE2b-256 7677684c4d42a0f6f32d7079ff842efce6879daa7a8a68bdd76a61fe23b2feee

See more details on using hashes here.

File details

Details for the file labelixa-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: labelixa-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for labelixa-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6e7545407aed28ce5c3e19a1cd671f21f728631b4edf6cde94c2abedafcf90e
MD5 a4e0e7b5cc80e34bb36e0eef94a08b64
BLAKE2b-256 59f09debfd3bc2c91c91c572c7587ae3c7dba1cce4e24b17415c4ad5af2aaa96

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page