No description
Find a file
2025-10-08 16:05:26 +02:00
.gitignore Initial commit 2025-10-08 16:02:38 +02:00
add_qr_by_filename.py Upload files to "/" 2025-10-08 16:04:51 +02:00
add_qr_by_filename_example.png Upload files to "/" 2025-10-08 16:05:02 +02:00
H10003ASN.py Upload files to "/" 2025-10-08 16:04:51 +02:00
H10003ASN_example.png Upload files to "/" 2025-10-08 16:05:02 +02:00
README.md Upload files to "/" 2025-10-08 16:05:26 +02:00
rename_by_QR.py Upload files to "/" 2025-10-08 16:04:51 +02:00
requirements.txt Upload files to "/" 2025-10-08 16:04:51 +02:00

ASN_Tools_Public

Installation

Step 1: clone repo

git clone https://git.lssrv.de/linussunderdiek/ASN_Tools_Public.git

cd ASN_Tools_Public

Step 2: create virtal env

Linux/MaxOS:

python3 -m venv .

Windows:

py -m venv .

Step 3 activate virtual env

Linux/MacOS:

source bin/activate (Windows different)

Windows:

.\Scripts\activate

Step 4 install requirements

pip install -r requirements.txt

Step 5 run individual scripts

see script description

ad_qr_by_filename.py

Adds QR-code and ASN to the top right of a pdf, see ad_qr_by_filename_example.png.

Important: The filepath must end with "/", otherwise the script does not work.

The filename must be the full ASN, eg. "ASN1234567.pdf"

Usage:

python3 ad_qr_by_filename.py /path/to/folder/

rename_by_QR.py

Renames all PDF-files of a folder to the detected ASN, eg "ASN1234567.pdf".

Usage:

python3 rename_by_QR.py /path/to/folder

H10003ASN.py

Creates printable PDFs for Herma H10003 Labels. Limitation: ASN must be > 1000000 and < 9999999. See H10003ASN_example.png.

H10003 labels are 80 pcs per sheet.

Usage:

python3 H10003ASN.py startASN stopASN

Example:

python3 H10003ASN.py 1000000 1000079