very small python script to generate qrcode images
-
Your Python's version must be greater than 2.7.10 or (3.9.1 if your are using Python3). Run
$ python --versionto check your Python's version -
Make sure
virtualenvis installed - see installation guide -
Make sure a Python virtual env exists for your project. Run
$ virtualenv envto create one
$ source env/bin/activate
Deactivate:
$ deactivate
$ pip install -r requirements.txt
Freeze pip dependencies:
$ pip freeze > requirements.txt
Run $ python src/generate.py <csvFilePath> -d <qrCodeDestination> -p <qrCodePrefix> -l <addQrCodeLabel>
-
csvFilePath: [path] this is the path to your csv file. This csv file must contain unique ids in a single row.
-
qrCodeDestination (option
-dor--dest): [path] this is the path where all the generated QRcodes will be stored -
qrCodePrefix (option
-por--prefix): [string] you can provide a prefix (e.g an url) that will be added to each qrCode encryted data -
addQrCodeLabel (option
-lor--label): [boolean] you can add a label on each QRCode image. This feature is disabled by default. Label will be added to the bottom center of each qrCode image -
Help command Run
$ python src/generate.py -hfor information