Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator

This is a simple Python script to generate QR codes. The script takes a URL or any text, encodes it into a QR code, and saves the generated image as a .png file.

Features

  • Customizable: Set the size, error correction level, and border of the QR code.
  • Simple to Use: Just specify the link or text you want to encode, and the script will handle the rest.
  • Lightweight: Only requires a few dependencies.

Getting Started

Prerequisites

  • Python 3.x
  • Required Python libraries listed in requirements.txt

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/qr-code-generator.git
    cd qr-code-generator
  2. Install the required Python libraries:

  • Windows:
    pip install -r requirements.txt
  • Linux:
    pip3 install -r requirements.txt
    Note: pip3 might not be installed by-default in some of the Linux distros. Please install it before installing the dependencies To install pip3 type:
    sudo apt-get install python3-pip   # If you are in Debian-based disto
    sudo pacman -S python3-pip         # If you are in Arch-based distro
    sudo dnf install python3-pip       # If you are in Fedora
    sudo yum install python3-pip       # If you are in CentOS/RHEL

Usage

  1. Open the qr_code_generator.py file.

  2. Replace the link variable with the URL or text you want to encode:

    link = "https://your-link-here"
  3. Run the script:

    python qr_code_generator.py
  4. The generated QR code will be saved as qrcode.png in the current directory.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages