Skip to main content

A fully customizable QR code generator with support for colors, logos, and links.

Project description

PWQ QR Gen 4 — A Fully Customizable QR Code Generator

PWQ QR Gen 4 is a powerful and flexible QR code generator built for developers, designers, and automation workflows. It supports all 40 QR versions, 8 mask patterns, 4 error correction levels, and every encoding mode, including Kanji and ECI (Extended Channel Interpretation). ✨ Key Features • Full QR Spec Support: Encode using any version, mask, or error correction level. • Advanced Encoding: Supports Byte, Alphanumeric, Numeric, Kanji, and ECI modes. • 16 Diffrent Encoding Techniques: UTF-8, ISO-8859-1, ISO-8859-2 • Fully Customizable Grid of The QR Code: Color, Shape, Logo etc. • --- Dual-Mode Support -> Manual & PWQAI • Manual Mode: User enters parameters such as: version, mask, EC level, encoding etc. • PWQAI Mode: Automatically selects the optimal version and encoding parameters based on input data. • --- Visual Customization: • RGB foreground and background color control • Circular or square grid modules • Multi-logo support (Instagram, YouTube, WhatsApp, PayPal, Netflix, Messenger, Gmail, or custom uploads) • Output Options: Save to PNG with custom filename and path • Very Simplistic Design & Usage

🧠 Built on Nayuki’s Logic This project builds on the structural logic and segment division algorithms from Project Nayuki’s QR Code Generator, with extensive enhancements for customization and automation.

🧩 Usage

✅ PWQAI Mode — Enabled & Disabled

from PWQ_QR_GEN_4 import PWQ_QR_GEN_4

# --- PWQAI Mode -> True
PWQQRGEN4 = PWQ_QR_GEN_4(
    "これは漢字のエンコーディングの例です",   # Input text
    r"C:\Users\user\path\to\save",             # File path for saving
    "PWQQRGen4_Example.png",                   # File name + format
    (255, 0, 0),                               # Background color (RGB)
    (200, 200, 25),                            # Foreground color (RGB)
    gridshape="square",                        # Shape of the grid: "square" or "circle"
    logoimg="instagram",                       # Logo: "Instagram", "Youtube", "Whatsapp", etc.
    PWQAI_mode=True                            # Enable PWQAI automatic mode
)
⚙️ PWQAI Mode  Disabled
python
Copy code
from PWQ_QR_GEN_4 import PWQ_QR_GEN_4

# --- PWQAI Mode -> False
PWQQRGEN4 = PWQ_QR_GEN_4(
    "https://youtube.com",                     # Input text
    r"C:\Users\user\path\to\save",             # File path for saving
    "PWQQRGen4.png",                           # File name + format
    (17, 18, 9),                               # Background color (RGB)
    (231, 90, 143),                            # Foreground color (RGB)
    gridshape="circle",                        # Shape of the grid
    gridsize=15,                               # Module size in pixels
    quietzonesize=6,                           # Border size in modules
    logoimg="netflix",                         # Logo embedded
    encoding="ISO-8859-1",                     # Encoding technique
    version=4,                                 # QR Version (1–40)
    eclvl=PWQ_QR_GEN_4.PWQ_QR_Ecl._Quartile,   # Error Correction Level
    mask=0,                                    # Mask pattern (0–7)
    PWQAI_mode=False                           # Disable PWQAI mode
)
🔠 Encoding Techniques Table
python
Copy code
_ECI_Encoding_Table: dict[str, int] = {  
    "ISO-8859-1": 3,       # Western European  
    "ISO-8859-2": 4,       # Central European  
    "ISO-8859-3": 5,       # South European  
    "ISO-8859-4": 6,       # North European  
    "ISO-8859-5": 7,       # Cyrillic  
    "ISO-8859-6": 8,       # Arabic  
    "ISO-8859-7": 9,       # Greek  
    "ISO-8859-8": 10,      # Hebrew  
    "ISO-8859-9": 11,      # Turkish  
    "ISO-8859-13": 15,     # Baltic  
    "ISO-8859-15": 17,     # Western European (Euro)  
    "Shift_JIS": 20,       # Japanese  
    "UTF-8": 26,           # Unicode (most common)  
    "UTF-16BE": 28,        # Unicode Big Endian  
    "UTF-16LE": 29,        # Unicode Little Endian  
    "Windows-1252": 21     # Microsoft Western European  
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pwq_qr_gen_4-4.0.3.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pwq_qr_gen_4-4.0.3-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file pwq_qr_gen_4-4.0.3.tar.gz.

File metadata

  • Download URL: pwq_qr_gen_4-4.0.3.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pwq_qr_gen_4-4.0.3.tar.gz
Algorithm Hash digest
SHA256 e48ba004533b4f77c144583bb24246f8410d8fcb0c11edd57a71b2fb360e4610
MD5 7ab901f5ee2de398cdcd985f94d52a34
BLAKE2b-256 fa20f613ca130bb0799f2b83e182767d0d400d892e01bb96ee5f02afc89b1422

See more details on using hashes here.

File details

Details for the file pwq_qr_gen_4-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: pwq_qr_gen_4-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pwq_qr_gen_4-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5f3dff39b5815d6c633f0d4311088259f06626ef39d3f6fe043dfddaf8e7b1
MD5 1e6e58be801986b2b98cbd46ca179c8a
BLAKE2b-256 42b4666b58194cbaaeb7c8b5f14e125acee04badffd4e4fd0401ae26c01f027b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page