Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

# 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
  1. Navigate to the project directory:
    cd Simple-QR-generator
  2. Install the required libraries:
    pip install qrcode[pil]

Usage

  1. 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")
  2. Run the script to generate the QR code:

    python generate_qr.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Contact

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!

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages