Simple command-line QR code generator for text and URLs
Automatically creates qr_codes/ directory, prevents overwriting existing files, with beautiful console output.
qr-codes-gen — a simple command-line QR code generator for text and URLs. Automatically creates qr_codes/ directory, prevents overwriting existing files, with beautiful console output.
qr_codes/ directory# Clone the repository git clone https://github.com/aixandrolab/qr-codes-gen.git cd qr-codes-gen # Create and activate virtual environment python -m venv .venv source .venv/bin/activate # Install dependencies pip install -r requirements.txt
Run the application:
python app.py
Follow the interactive prompts:
The QR code will be saved in the qr_codes/ directory as a PNG file.
Example 1: Generate QR code for a website
Enter text or URL: https://github.com/aixandrolab Enter the name of the final file: aixandrolab Output: qr_codes/aixandrolab.png ✓
Example 2: Generate QR code for text
Enter text or URL: Hello, World! Enter the name of the final file: greeting Output: qr_codes/greeting.png ✓
qr-codes-gen/ ├── app.py # Main entry point ├── tools/ │ ├── __init__.py │ ├── config.py # Application configuration │ ├── manager.py # AppManager class │ ├── printer.py # SmartPrinter for console output │ └── qr_code_master.py # QR code generation logic ├── qr_codes/ # Generated QR codes (auto-created) ├── LICENSE # BSD 3-Clause license └── README.md
By using this software, you agree to the full disclaimer terms.
Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
License: BSD 3-Clause License