Skip to content

Generate 2000 meal stubs with QR codes for an upcoming event.

License

Notifications You must be signed in to change notification settings

iragca/QR-Code-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR-Code-Generator

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.):

Meal Stubs

Project Structure

data/duckdb-implementation.ipynb

DuckDB implementation of storing and generating of the generated IDs. Preceded by SQLite which is now unsupported and removed.

Streamlined Generation using CLI

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

Running the script

  1. Create a virtual environment. If you haven't yet.
Linux
virtualenv .venv
source .venv/bin/activate
Powershell
virtualenv .venv
.venv/bin/activate
  1. Install required dependencies.
pip install -r requirements.txt
  1. Move your working directory to 'data'.
Linux and Powershell
cd data
  1. Run the script.
Linux
python batch_generate.py
Powershell
python ./batch_generate.py

About

Generate 2000 meal stubs with QR codes for an upcoming event.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published