This scripting project generates QR codes for custom-designed meal stubs. The 2000 meal stubs are embedded in PDF files, making them ready for printing.
Tools mainly used:
- Python
- ReportLab
Example output (Designed Jan 05, 2025. Design is subject to change.):
data/duckdb-implementation.ipynb
DuckDB implementation of storing and generating of the generated IDs. Preceded by SQLite which is now unsupported and removed.
The following instructions assumes that the current working directory is the root folder and have 'virtualenv' package installed.
If you don't have 'virtualenv' installed, you can install it using 'pip'.
pip install virtualenv
- Create a virtual environment. If you haven't yet.
Linux
virtualenv .venv
source .venv/bin/activate
Powershell
virtualenv .venv
.venv/bin/activate
- Install required dependencies.
pip install -r requirements.txt
- Move your working directory to 'data'.
Linux and Powershell
cd data
- Run the script.
Linux
python batch_generate.py
Powershell
python ./batch_generate.py