A simple Python program that generates a QR code for a given URL or text input. Demonstrates external library integration (qrcode) and image file handling in Python.
This project creates a QR code for a GitHub profile link and saves it as an image file. It can easily be adapted to generate QR codes for any URL or string.
- Generates QR codes from text or URLs.
- Configurable QR code properties (version, box size, border).
- Saves output as an image file (
.png).
- External library integration (
qrcode). - Image generation and saving.
- Working with external modules.
- Python
- qrcode (Python library)
- Pillow (for image handling)
Clone the repository:
https://github.com/rawahazkhan/QR-Code-Generator.git
cd qr-code-generatorRun the program:
python main.py- Input: A GitHub profile link
- Output:
github_qr.pngimage containing the QR code