A simple and efficient Python script to generate QR Codes. This project originated as a practice exercise from the CodΓ©dex Python Project Tutorials.
Currently, this script utilizes the qrcode library to generate a QR code for a specific URL and saves it as an image file. While it serves as a foundational practice project, I plan to expand its functionality to make it a fully interactive CLI (Command Line Interface) tool.
- Generates a QR code for a hardcoded URL.
- Customizes box size and border thickness.
- Exports the result as a
.pngfile.
I am actively working on improving this project. Future updates will include:
- User Input: Allow users to paste their own links via the terminal.
- Customization: Options to change fill colors and background colors.
- File Naming: Allow users to name the output file.
- Batch Generation: Automate the process to create multiple QR codes from a list.
Follow these steps to run the project on your local machine.
Make sure you have Python installed. You will also need to install the qrcode library (and pillow for image generation).
pip install qrcode[pil]- Clone the repository.
- Run the script:
python qr_code.py
- Check your project folder for the generated image file (e.g.,
youtube_qr.png).
- Big thanks to CodΓ©dex for the engaging practice projects and learning resources.
This project is for educational purposes.