-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
64 lines (38 loc) · 1.94 KB
/
readme.txt
File metadata and controls
64 lines (38 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
LabelGen – Avery 5160 QR Label Generator
Written by Jefferson Kline
Written for: Vogel Plant Pathology - Dr. Wilson Craine & Team
For Detailed Instructions and Demo's Visit: https://sites.google.com/view/label-kline/home
You can also download an excecutable of this program if you prefer an easier interface than the console
## Before running
This program generates print-ready Avery 5160 label PDFs from a formatted CSV file.
Each label will display a QR code on the left and up to 5 short text lines on the right.
Make sure:
1. You are on a Windows machine.
2. You have a Labels.csv file ready in the proper format.
3. Each label line (text) should be no more than 31 characters.
## How to run
1: Open a command prompt in the same folder as root dir of this program
2: Run the tool with:
python LabelGen.py path_to_your_csv
Example:
python3 LabelGen.py "C:/Users/you/Desktop/Labels.csv"
3: Your QR-coded label PDF will be created in the same folder as LabelGen.exe
## CSV Format Guide
- Row 0: Column flags ("H" for human text, "Q" for QR only, "H/Q" for both)
- Row 1: Column names (e.g., Name, Species, Plot, Rep)
- Row 2 and below: Data rows
Example:
H,H,Q,H,Q
Name,Species,Plot,Rep,Date
Pennycress,Crop,14,B,5/25
...more rows
- At most 5 columns should be marked as "H" or "H/Q" to avoid overflowing the label
- All human-readable lines must be 31 characters or fewer
## Output
- AveryLabels.pdf will be saved next to the LabelGen.exe
- QR codes are generated temporarily and automatically deleted after use
## Trouble Shooting
2: Installing missing dependencies with command in console may fix issues mentioning missing imports or libraries:
'pip install -r requirements.txt'
NOTE: if this fails open requirements.txt and install each manually with:
'pip install <DEPENDENCY>', do not include the version number with this: numpy>=1.24 would be 'pip install numpy'