Skip to content

Parsa-developer/qr-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± QR Code Generator πŸ”³ Welcome to the QR Code Generator, a handy Python tool to create QR codes from text or URLs! 🌐 This command-line application uses the qrcode library to generate customizable QR code images, perfect for sharing links or data quickly. πŸš€

🌟 Features

πŸ“ Generate QR codes from any text or URL input. πŸ–ΌοΈ Save QR codes as PNG images with a unique filename. βš™οΈ Customizable QR code size and error correction. βœ… Error handling for robust operation. πŸ”„ Option to create multiple QR codes in one session.

πŸ› οΈ Requirements

Python 3.x 🐍 qrcode library (pip install qrcode)

πŸ“¦ Installation

Clone this repository:git clone https://github.com/parsa-developer/qr-code-generator.git

Navigate to the project directory:cd qr-code-generator

Install the required library:pip install qrcode

🎯 Usage

Run the script:python qr_code_generator.py

Enter the text or URL you want to encode into a QR code. πŸ“² The QR code is generated and saved as a PNG file in the current directory. Choose to create another QR code or exit.

πŸ“Έ Example Welcome to the QR Code Generator! πŸ“± This tool creates QR codes from text or URLs and saves them as images.

Enter text or URL to encode (or 'exit' to quit): https://example.com βœ… QR code generated and saved as 'qr_code_https://example_com.png'!

Generate another QR code? (yes/no): yes

Enter text or URL to encode (or 'exit' to quit): Hello World βœ… QR code generated and saved as 'qr_code_Hello_World.png'!

Generate another QR code? (yes/no): no Goodbye! πŸš€

πŸ”§ Notes

Filename: QR codes are saved with a prefix qr_code_ followed by a truncated version of the input (up to 10 characters, spaces replaced with underscores) and .png. Customization: Adjust box_size and border in generate_qr_code for larger or smaller QR codes. Change error_correction for higher resilience (e.g., ERROR_CORRECT_H). Dependencies: Requires the qrcode library. Install it with pip install qrcode.

πŸš€ Future Improvements

🎨 Add a GUI with tkinter or PyQt for a visual interface. πŸ“‚ Allow users to specify a custom save location. 🎨 Support color customization for QR codes. πŸ“Š Display a preview of the QR code in the terminal (via ASCII art). πŸ“₯ Add an option to scan and decode QR codes.

🀝 Contributing Want to enhance this QR code generator? 🌈 Fork the repo, submit pull requests, or open issues for bugs or feature ideas. Let’s make QR codes even cooler! πŸ’ͺ

πŸ“œ License This project is licensed under the MIT License. See the LICENSE file for details.

Generate QR codes today! πŸ“± Give this repo a ⭐ if it helps you share data easily!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages