Skip to content

Creates and saves a .png of QR Code based on user input command-line arguments.

License

Notifications You must be signed in to change notification settings

lilyxgates/qr_code_maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Written by Lily Gates
January 2025

Description

Create and save a .png of a QR Code based on user input provided through command-line arguments. The script generates a QR Code from a URL and allows the user to choose between light or dark mode for styling.

Usage

python3 qr_code_maker.py <url>, <"light"|"dark">, <file_name>
  • : The endpoint or link you want to encode in the QR Code
  • "light" or "dark": Choose the style of the QR Code (light mode: black on white, dark mode: white on black)
  • <file_name>: The name you'd like to save the generated QR Code as (without the .png extension)

Example:

python3 qr_code_maker.py https://example.com light example_qr

Required Dependencies

  • os
  • qrcode

About

Creates and saves a .png of QR Code based on user input command-line arguments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages