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)

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.1.0.tar.gz (4.1 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.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for labelixa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87ac564666f5f43edd509ffb51f4ceb803669ddd415d926a66e4febaf47faa1a
MD5 42cabc7069c7633693d5157b80cac930
BLAKE2b-256 87106ceeb4c6242feb98d184b0610770cd826a0a50faf7efb410bb2fc8afc94a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: labelixa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1451e0f8b13c2c00bf9440cb1edc5f4b0e00c098d545417485d2cdab51fadf
MD5 0aa67cd9c26d45425dfcc3183b810435
BLAKE2b-256 85b177366582a425a815313e57698afcb832270240e0056b2a8f656522838975

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

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