partdb-labeler
Connects to a PartDB server, grabs info for a selected part, and formats a label to be printed on an EPL2-compatible label printer. Command-line options enable configuration of the label size, server to use, and more.
Why did I write this?
PartDB has a label generator built-in, but it only produces PDFs that must then be rasterized and printed. This works well enough if you're sending labels to a laser printer, but I found that QR codes small enough to fit on the label stock I wanted to use weren't scannable. This generator speaks EPL2, one of the languages used by Zebra label printers, to produce precisely-formatted labels with QR codes that scan easily with your phone or a dedicated barcode scanner.
Compatibility
So far, it's been tested with two Zebra printers: an LP2844 and a GK420t. The LP2844 was driven by an Arch Linux system with a CUPS print queue feeding it through a network print server. The GK420t was driven by a Windows 11 system, connected to the printer via USB.
Usage
partdb_labeler -h will show you the available options.
For convenience, you might also consider adding a short shell script somewhere in your PATH that will call the Python module with your server configuration. I use this (the API key is a read-only key I've publicized elsewhere):
#!/usr/bin/env bash
partdb_labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 $*
or the same, as a batch file on Windows:
@echo off
partdb_labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 %*
Metadata
Release files for partdb-labeler 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| partdb_labeler-0.3.1.tar.gz | 111.1 kB | Without provenance | Details for partdb_labeler-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| partdb_labeler-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for partdb_labeler-0.3.1-py3-none-any.whl |
Total release size: 116.8 kB
Release files / partdb_labeler-0.3.1.tar.gz
| Download URL | partdb_labeler-0.3.1.tar.gz |
|---|---|
| Size | 111.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65b37a576c471b61ce1f11af4a2847da829f982dc1f573a950523a9283579080
|
|
BLAKE2b-256 checksum How to use checksums |
72c4ce8002676a6d0d885c0229a1ee1bf58edb1ea9b50172a03008b8893bc154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / partdb_labeler-0.3.1-py3-none-any.whl
| Download URL | partdb_labeler-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1db8a1c067c63992b954c493d7e0bb22c5ca9c699da2172e9a710904978623dd
|
|
BLAKE2b-256 checksum How to use checksums |
748e6a1abf18eefd065d4b624de7720af4356133efb96977076673d7d631a05b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Security for partdb-labeler 0.3.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.