877 B
877 B
PyLabel
Generate labels for printing using HTML rendering.
Features
- Customizable for most label sheet layouts.
- Partial sheet printing
- Custom data for each label
- Uses HTML templates easy label design.
Usage
The simplest use case is some static labels:
python -m pylabel -t examples/simple.html -p avery.L7157 -c 10 > output.html
Then, when you need some more just pop the same sheet back in the printer and offset the start
python -m pylabel -t examples/simple.html -p avery.L7157 -c 10 > output.html
To do some mail merge operations create a list of names:
Andy Andrews
Bob Brown
Charlie Chaplin
and use a {data[text]} element in your template. Note we've shifted to an external stylesheet now as well.
python -m pylabel -t examples/name_tags.html -p avery.L7157 -d examples/names.txt -s examples/hello.css > output.html