Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-0618/qrgen
QrGen is a simple Python tool that allows users to create customized QR codes with the option to change colors, add logos, and define custom filenames. Whether you need a QR code for a URL, text, or any other information, this tool makes it easy to personalize and save the QR code to your system.
https://github.com/dev-0618/qrgen
events pillow-library python qrcode qrcode-generator
Last synced: 4 days ago
JSON representation
QrGen is a simple Python tool that allows users to create customized QR codes with the option to change colors, add logos, and define custom filenames. Whether you need a QR code for a URL, text, or any other information, this tool makes it easy to personalize and save the QR code to your system.
- Host: GitHub
- URL: https://github.com/dev-0618/qrgen
- Owner: Dev-0618
- Created: 2024-11-19T16:55:46.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T17:20:33.000Z (2 months ago)
- Last Synced: 2024-11-19T17:52:04.661Z (2 months ago)
- Topics: events, pillow-library, python, qrcode, qrcode-generator
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QrGen
**QrGen** is a simple and customizable QR code generator tool written in Python. It allows you to create QR codes with custom text, URLs, background colors, and optional logo images. The generated QR codes can be saved as PNG files with your desired filename.
## Features
- **Generate QR codes** from any text or URL.
- **Customize background color** for the QR code.
- **Add a logo** (optional) to the center of the QR code.
- **Specify the output file name** for the generated QR code.
- **Easy-to-use command-line interface**.## Installation
1. Clone the repository:
```bash
git clone https://github.com/Dev-0618/QrGen.git
cd QrGen
```2. Install the required dependencies:
```bash
pip install -r requirements.txt
```## Usage
Run the script using the following command:
```bash
python qrgen.py
```### Input Prompts:
1. **Enter the text or URL for the QR code**: The main content for the QR code (text or URL).
2. **Enter the background color**: Choose a background color for the QR code (default is white).
3. **Enter the path to a logo image (optional)**: Add an optional logo to the center of the QR code (provide the path to a `.png` logo).
4. **Enter the file name to save the QR code**: Choose the filename to save the generated QR code (default is `qrcode.png`).Example:
```bash
Enter the text or URL for the QR code: https://www.example.com
Enter the background color (default: white): yellow
Enter the path to a logo image (optional, press Enter to skip):
Enter the file name to save the QR code (default: qrcode.png): custom_qr.png
QR code saved as custom_qr.png
```## Requirements
- Python 3.x
- `qrcode` library
- `Pillow` libraryTo install dependencies:
```bash
pip install -r requirements.txt
```