Skip to main content

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

Project description

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

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

qr_cli_tool-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

qr_cli_tool-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file qr_cli_tool-0.1.0.tar.gz.

File metadata

  • Download URL: qr_cli_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for qr_cli_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06cb237504804b132c064b2badfa41ebff2dccf28d57e637a05519a9e97a9ffa
MD5 f48a6578ab6a064443cb244060d5b6c8
BLAKE2b-256 1c759a15b0b4c53906a1df8c4c1543f37c3673f863c0a16d16bdd4852b447108

See more details on using hashes here.

File details

Details for the file qr_cli_tool-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qr_cli_tool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for qr_cli_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0811dc3706a0f44a3587293cae43d0fcdb091ef6ac8c4415c5fe50fd78b28641
MD5 743a8e6d50cef08ba66cd47a66aef8cf
BLAKE2b-256 d8c7c43fc450852e705972acc1ebe45ee59459c25b4353d3e8931496a766283e

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