<commit_before># etikettenschwindel

Flask app to print labels defined as ooffice templates (*.ott).
We use it with a Brother QL-710W label printer.

You need to have libreoffice installed. Tested with 5.1.4.2 10m0(Build:2).
Make sure libreoffice is not running while using the app.

INSTALL:

virtualenv .
bin/pip install flask
bin/pip install odfpy
FLASK_APP=print_label.py bin/flask run

TODO:

* Use proper paper size (lpr -o ...)
* Use a config file for settings and available templates<commit_msg>improve readme<commit_after># etikettenschwindel

Flask app to print labels defined as ooffice templates (*.ott).
We use it with a Brother QL-710W label printer.

You need to have libreoffice installed. Tested with 5.1.4.2 10m0(Build:2).
Make sure libreoffice is not running while using the app.

## INSTALL & RUN

```
virtualenv .
bin/pip install flask
bin/pip install odfpy
FLASK_APP=print_label.py bin/flask run
```

## TODO:

* Use proper paper size (lpr -o ...)
* Use a config file for settings and available templates
{'fraction_non_alphanumeric': 0.07992202729044834, 'fraction_numerical': 0.021442495126705652, 'mean_word_length': 4.135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4832098', 'n_tokens_mistral': 353, 'n_tokens_neox': 326, 'n_words': 137}