This is a simple Python-based QR Code Generator that allows users to create QR codes from any text or URL. The QR code is generated and saved as an image file (PNG format).
- Generate QR codes from any text or URL.
- Save the generated QR code as an image (PNG).
- Easy-to-use command-line interface.
Before running the project, make sure you have Python installed on your machine. You will also need to install the following Python library:
qrcode[pil]- For generating QR codes.
Use the following command to install the required libraries:
pip install qrcode[pil]- Clone the repository or download the project files.
- Run the script
qr_generator.pyand enter the text or URL you want to encode. - The QR code will be generated and saved as an image file (
qr_code.png) in the same directory.
python qr_generator.pyHere is a sample of how to generate a QR code:
Enter the data to encode in the QR code: https://example.com
QR Code generated and saved as qrcode.pngAfter running the script, you will find the qrcode.png file in the project directory.