qltool 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qltool-0.2.1 → qltool-0.2.2}/.bumpversion.cfg +1 -1
- {qltool-0.2.1 → qltool-0.2.2}/PKG-INFO +1 -1
- {qltool-0.2.1 → qltool-0.2.2}/pyproject.toml +1 -1
- {qltool-0.2.1 → qltool-0.2.2}/src/qltool/main.py +2 -0
- {qltool-0.2.1 → qltool-0.2.2}/.gitignore +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/MANIFEST.in +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/README.md +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/README.org +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/src/qltool/__init__.py +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/src/qltool/client.py +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/src/qltool/data/ql570 +0 -0
- {qltool-0.2.1 → qltool-0.2.2}/src/qltool/data/ql570.c +0 -0
|
@@ -24,6 +24,7 @@ import tempfile
|
|
|
24
24
|
import sys
|
|
25
25
|
|
|
26
26
|
import click
|
|
27
|
+
from importlib.metadata import version
|
|
27
28
|
from importlib_resources import files, as_file
|
|
28
29
|
from PIL import Image, ImageDraw, ImageFont
|
|
29
30
|
# uv add Pillow
|
|
@@ -343,6 +344,7 @@ def make_bw_text_with_qr(lines,
|
|
|
343
344
|
|
|
344
345
|
# --- CLI ---
|
|
345
346
|
@click.command()
|
|
347
|
+
@click.version_option(version("qltool"), prog_name="qltool")
|
|
346
348
|
@click.argument("lines", nargs=-1, required=True)
|
|
347
349
|
@click.option("-p", "--print", "do_print", is_flag=True, default=False, help="Send to printer (calls ql570).")
|
|
348
350
|
@click.option("-d", "--device", "device", default=None, help="Printer device (defaults to first /dev/usb/lp*).")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|