Skip to content

Akhil-uc/Qr-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator (Python)

A lightweight, fast, and reliable QR Code Generator built with Python. This tool allows you to generate high‑quality QR codes from any text or URL using a simple command‑line interface. The project is minimal, production‑ready, and suitable for direct use or integration into larger systems.


Features

  • Generate QR codes from text or URLs
  • High error‑correction level for better scanning reliability
  • Customizable output file name
  • Adjustable QR size and border
  • Works on Windows, macOS, and Linux
  • Clean and simple command‑line interface

Project Structure

qr_code_generator.py
requirements.txt
README.md

Installation

  1. Clone the repository:
git clone https://github.com/your-username/python-qr-code-generator.git
cd python-qr-code-generator
  1. Install dependencies:
pip install -r requirements.txt

Usage

Basic example:

python qr_code_generator.py -d "https://www.google.com"

This will generate a file named qrcode.png in the current directory.

Custom output file

python qr_code_generator.py -d "Hello World" -o output/myqr.png

Change size and border

python qr_code_generator.py -d "Sample Text" -s 12 -b 2

Command Line Options

Option Description
-d, --data Text or URL to encode (required)
-o, --output Output image file name (default: qrcode.png)
-s, --size Box size of the QR code (default: 10)
-b, --border Border size around QR (default: 4)

Output

The program generates a high‑resolution PNG image containing the QR code. The file can be used directly for printing, sharing, or embedding into documents and websites.


Requirements

  • Python 3.7 or higher
  • qrcode
  • pillow

Use Cases

  • Sharing URLs quickly
  • Generating QR codes for events or posters
  • Creating QR labels for products
  • Learning basic Python CLI development

License

This project is open‑source and free to use for personal and commercial purposes.


About

A lightweight and reliable QR Code Generator built with Python. Generate high-quality QR codes from any text or URL using a clean command-line interface with customizable size, border, and output options. Fast, minimal, and production-ready.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages