DEV Community

neuralmint
neuralmint

Posted on

QR Code Generator CLI — Create QR Codes from Your Terminal

QR Code Generator CLI — Create QR Codes from Your Terminal

Generate QR codes as ANSI art (displayed right in your terminal) or as PBM images — all with zero external dependencies, using pure Python stdlib.

Features

  • ANSI art output directly in the terminal
  • PBM image file export
  • Reed-Solomon error correction
  • Pure Python standard library (no Pillow required)
  • Adjustable QR version and error correction level

Usage

# Display QR code in terminal as ANSI art
qr_gen generate "https://example.com"

# Save as PBM image file
qr_gen generate "Hello World" --output qr.pbm

# Higher error correction
qr_gen generate "https://example.com" --ecc H
Enter fullscreen mode Exit fullscreen mode

Install

pip install neuralmint/qr-gen
Enter fullscreen mode Exit fullscreen mode

Support development:

SOL: 4TGyiYBjaYhFFPNYyCoJjf16ctUsWVBiMR1FXQxEfhWi

ETH: 0xe07f177E0725c11EEc8BeA34C5b5193CaF2a1A6a

Tags: python, cli, opensource, devtools
Series: neuralmint CLI Tools

Top comments (0)