# Simple QR Generator
## Overview
Simple QR Generator is a Python-based tool designed to generate QR codes easily and efficiently. This repository provides a simple interface to create QR codes for various use cases such as URLs, text, and other data.
## Features
- Generate QR codes from text, URLs, or other data
- Save QR codes as image files
- Customize the size and error correction level of the QR codes
## Requirements
- Python 3.x
- qrcode library
- Pillow library
## Installation
1. Clone the repository:
```bash
git clone https://github.com/Cesar-Gabriel/Simple-QR-generator.git
- Navigate to the project directory:
cd Simple-QR-generator
- Install the required libraries:
pip install qrcode[pil]
-
Import the required libraries and create a QR code:
import qrcode # Data to be encoded data = "https://github.com/Cesar-Gabriel/Simple-QR-generator" # Create QR code instance qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=10, border=4) # Add data to the QR code qr.add_data(data) qr.make(fit=True) # Create an image from the QR Code instance img = qr.make_image(fill='black', back_color='white') # Save the image img.save("simple_qr_code.png")
-
Run the script to generate the QR code:
python generate_qr.py
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For any questions or suggestions, please open an issue or contact the repository owner on GitHub.
You can create a new file named `README.md` in your repository and use the content above. If you need any modifications, feel free to ask!