A simple and fast command-line QR Code Generator built with Python.
Generate QR codes from text, URLs, emails, phone numbers, Wi-Fi credentials, and more.
- Generate QR codes from any text
- Generate QR codes from URLs
- Save output as PNG
- Custom output file path
- Simple command-line interface
- Lightweight and easy to use
Clone the repository:
git clone https://github.com/YourUsername/qr-code-generator.git
cd qr-code-generatorCreate a virtual environment:
python3 -m venv venvActivate it:
source venv/bin/activatevenv\Scripts\activateInstall dependencies:
pip install -r requirements.txtGenerate a QR Code from a URL:
python main.py --text "https://github.com/YourUsername"Generate a QR Code from plain text:
python main.py --text "Hello World!"Save to a custom location:
python main.py --text "Hello World!" --output hello.pngqr-code-generator/
│
├── output/
├── main.py
├── requirements.txt
├── README.md
└── .gitignore
python main.py --text "https://google.com"python main.py --text "mailto:[email protected]"python main.py --text "tel:+1234567890"python main.py --text "WIFI:T:WPA;S:MyWifi;P:12345678;;"- Python 3.9+
- qrcode
- Pillow
qrcode[pil]
Contributions, issues, and feature requests are welcome.
Feel free to fork this repository and submit a pull request.
This project is licensed under the MIT License.
If you found this project useful, consider giving it a ⭐ on GitHub.