A simple Python command-line tool that generates QR codes from any URL.
- Generate a QR code image from any URL you provide
- Lightweight — built on the
qrcodeandPillowlibraries - Output saved directly to the project folder
- Python 3.7+
- pip
-
Clone the repository
git clone https://github.com/xariosh/squareqr.git cd squareqr -
Create and activate a virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependency
pip install qrcode[pil]
Run the script:
python mainqr.pyYou'll be prompted to enter the URL you want to encode. Once submitted, the QR code will be generated and saved in the project folder as:
qrcode.png
$ python mainqr.py
Enter the URL: https://github.com/xariosh/squareqr
QR code generated successfully -> qrcode.png
This project is open source and available under the MIT License.