Skip to main content

Network-accessible printing for USB TSPL thermal label printers (library + REST API + web UI).

Project description

🏷️ LabelJetty

Turn a cheap, USB-only TSPL thermal label printer into a smart, network-accessible label printer - drive it from your phone, desktop, or another machine over your LAN. It talks to the printer directly over USB (no CUPS, no vendor driver) and gives you a mobile-first web UI, a REST API, and a Python library for printing PNGs, PDFs, text, markdown, barcodes and QR codes. Optional, self-contained Homebox integration is built in.

Install

pip install labeljetty
# or, with uv:
uv tool install labeljetty

This gives you three commands:

  • labeljetty - runs the service (REST API + web UI + background print worker)
  • labeljetty-testbench - drives the printer library directly (real device or dry-run)
  • labeljetty-hash-password - generates a password hash for a login user

You need Python 3.11+, libusb, and a USB TSPL printer. PRINTER_USB auto-detects a single connected printer; pin one (e.g. PRINTER_USB=vid:2d37:pid:62de, found via lsusb) in a .env or the environment if you have several. Then run labeljetty and open http://localhost:8888/. The Setup guide is the overview; finding the printer and the udev rule are covered under Advanced usage.

Prefer Docker? The image is motey/labeljetty.

Heads-up

  • No authentication by default - fine on a trusted home LAN, but turn on AUTH_MODE=protected before exposing it to an untrusted network.
  • Reference hardware is a Vretti 420B (Poskey-class TSPL, ~203 dpi). It should work with any USB TSPL printer; feedback/PRs for other models are welcome.

More information

Full docs, the configuration reference, authentication, the REST API, printer/udev setup, and Homebox integration live on GitHub: https://github.com/motey/LabelJetty

Project details


Download files

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

Source Distribution

labeljetty-0.5.1.tar.gz (354.9 kB view details)

Uploaded Source

Built Distribution

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

labeljetty-0.5.1-py3-none-any.whl (103.3 kB view details)

Uploaded Python 3

File details

Details for the file labeljetty-0.5.1.tar.gz.

File metadata

  • Download URL: labeljetty-0.5.1.tar.gz
  • Upload date:
  • Size: 354.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labeljetty-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b87d2f93054961feef29bac01dea4413f0114f1d01b1851c0738ec9f52024db9
MD5 f12bbba955d95c27a787297d410a85bd
BLAKE2b-256 60e8681a4787482a2b78095f82e1a64022f5022e3aab050b08bf15493a684af8

See more details on using hashes here.

File details

Details for the file labeljetty-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: labeljetty-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 103.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for labeljetty-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faaef592c78ab1f604d4d92c2013a4da14f6bf86839e0a8f5be927f91e79a750
MD5 160af703ad9506206ca9f3c6196efbc1
BLAKE2b-256 49e4d6ba369bb1f1830c4209dc2c26a3e51ed33ea2055b28937c21889e30cd3b

See more details on using hashes here.

Supported by

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