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["mesaj"], d["url"]) # wire field names are stable
# 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") # manufacturer/model; 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})")
The API key is only sent over https (plain http is accepted for
localhost only; any other http base URL with a key raises
ValueError), and redirects are never followed, so a server cannot
forward the key to another host.
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.
Metadata
Release files for labelixa 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labelixa-0.2.5.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labelixa-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / labelixa-0.2.5.tar.gz
| Download URL | labelixa-0.2.5.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9711b2830bdc96ae0094c4f1832a327c2d716ffd9fb7d152c7304fb5e996b093
|
|
BLAKE2b-256 checksum How to use checksums |
d683b704f87f43ef77fc50cf902c8d6eab813f43a41c8c5f1892178362b8edc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency logRelease files / labelixa-0.2.5-py3-none-any.whl
| Download URL | labelixa-0.2.5-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c3f99694bf9b3c53f02ce13ba2796e6e183831460eaa0d94fd433fe02d61be0
|
|
BLAKE2b-256 checksum How to use checksums |
2bbc98ca1e4a48e9e485b8f9e75abcf4290dbd04618dbb7ab9cec07e22e460ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.
Transparency log