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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ac564666f5f43edd509ffb51f4ceb803669ddd415d926a66e4febaf47faa1a
|
|
| MD5 |
42cabc7069c7633693d5157b80cac930
|
|
| BLAKE2b-256 |
87106ceeb4c6242feb98d184b0610770cd826a0a50faf7efb410bb2fc8afc94a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e1451e0f8b13c2c00bf9440cb1edc5f4b0e00c098d545417485d2cdab51fadf
|
|
| MD5 |
0aa67cd9c26d45425dfcc3183b810435
|
|
| BLAKE2b-256 |
85b177366582a425a815313e57698afcb832270240e0056b2a8f656522838975
|