Skip to main content

qr-cli-tool

QR Code Generator & Reader CLI — generate, read, and encode QR codes from the terminal.

Install

pip install qr-cli-tool
# For QR reading support:
pip install qr-cli-tool[read]

Usage

Generate QR codes

# Terminal output (Unicode blocks)
qr generate "https://example.com"

# Save as PNG
qr generate "Hello World" -o hello.png

# Save as SVG
qr generate "data" -o code.svg

# High error correction
qr generate "important" -e H

# Inverted for dark terminals
qr generate "text" --invert

# JSON metadata
qr generate "text" --json

Read QR codes from images

qr read photo.png
qr read screenshot.jpg --json

Requires pyzbar (pip install qr-cli-tool[read]) or zbar CLI (brew install zbar).

Encode structured data

# WiFi network
qr encode "" -t wifi --ssid MyNetwork --password secret123

# Email with subject
qr encode "user@example.com" -t email --subject "Hello"

# Phone number
qr encode "+1234567890" -t phone

# SMS
qr encode "+1234567890" -t sms --body "Hey there"

# Geographic location
qr encode "37.7749,-122.4194" -t geo

# Contact card
qr encode "+1234567890" -t vcard --name "Jane Doe"

List supported types

qr types

Features

  • Terminal QR output with Unicode blocks
  • PNG and SVG export
  • Structured encoding (WiFi, email, phone, SMS, geo, vCard)
  • QR reading from images (with pyzbar or zbar)
  • Error correction levels (L/M/Q/H)
  • JSON output (--json) for automation
  • No interactive prompts — fully scriptable

For AI Agents

See SKILL.md for agent-optimized documentation.

License

MIT

Release files for qr-cli-tool 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qr-cli-tool 0.1.0
File Size Uploaded
qr_cli_tool-0.1.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qr-cli-tool 0.1.0
File Interpreter ABI Platform
qr_cli_tool-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / qr_cli_tool-0.1.0.tar.gz

Download URL qr_cli_tool-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
06cb237504804b132c064b2badfa41ebff2dccf28d57e637a05519a9e97a9ffa
BLAKE2b-256 checksum
How to use checksums
1c759a15b0b4c53906a1df8c4c1543f37c3673f863c0a16d16bdd4852b447108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / qr_cli_tool-0.1.0-py3-none-any.whl

Download URL qr_cli_tool-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0811dc3706a0f44a3587293cae43d0fcdb091ef6ac8c4415c5fe50fd78b28641
BLAKE2b-256 checksum
How to use checksums
d8c7c43fc450852e705972acc1ebe45ee59459c25b4353d3e8931496a766283e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page