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. Set at least PRINTER_USB (e.g. PRINTER_USB=vid:2d37:pid:62de, found via lsusb) in a .env or the environment, then run labeljetty and open http://localhost:8888/.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: labeljetty-0.1.0.tar.gz
  • Upload date:
  • Size: 294.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.1.0.tar.gz
Algorithm Hash digest
SHA256 3f5057fdc500df28c0e699f4669b4b6c453f9b37aa0ce7f170183a53eb38171b
MD5 54f050ff4acd74c7d267ffbdfbf4a30a
BLAKE2b-256 11f358bd4cff905a52702458aa370891e3f4f0cb35ae5df768f6e627bd6c02bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: labeljetty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 83.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 030dcaf45949fc72f905aa650a42e056d396a6d59391d7748448cb6803e713ca
MD5 829d8a782ae3ce71cda40dc5481d2c04
BLAKE2b-256 87d4916ac5e4ede511c5ca51c4e2c5a9cb26305666aacdac4c7cc1480eedc957

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