Skip to content

Salman-660/batch_QR-code_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch QR code Generator

Description:

This program generates QR code images. You can create a single QR code or process a CSV file, specifying the column to generate QR codes in batch.

Features:
  • generates single qr code with specified background and qr block colours.
  • can generate qr codes in large batch.
  • exports batch qr codes in a user named directory, to increase manageability.
Menu:

when the user runs the project.py script, a command-line menu appears. It shows flags for different modes (i.e. -b for batch processing and -s for single qr code) and shows command structure for each mode and the program ends prompting the user to run the program again.

python project.py
Single QR mode:

The single qr code mode is selected by running following command,

python project.py -s

After that it prompts the user for any link or text to generate into qr code, colours, and size and saves the the qr code image by a default name "qrcode.png"

Batch QR mode:

Batch qr mode command structure is as follows;

python project.py -b<csv_column_no> csv_file

where,

  • -b flag indicates batch mode.
  • (csv_column_no) is a placeholder, user has to specify the column no of the csv file that is intended to be generated into multiple qr codes.
  • csv_file to be replaced with the name of the csv file.
  • the program only supports one csv file at a time
for example,
python project.py -b3 employees.csv

let's say, employees.csv contains record of employees of some company, and on column three is thier id number which is to be generated into qr codes for id cards.

when the preceeding command is executed, the user is prompted to provide colours, size , and folder name. The program stores all the qr code images in jpg format in the user specified folder, which is created if it doesn't exists. The image files are named "qr_'n'.jpg", where n starts from 0 and goes on upto the total number of qr codes.

About

Batch QR Code Generator – a tool to create multiple QR codes at once from input data, with options for customization and export.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages