Skip to main content

Project Logo

The Lupaxa Developers Toolbox
Part of The Lupaxa Project


lupaxa-qrcode-generator

CLI and library to generate QR codes for text, Wi-Fi, contacts, email, SMS, locations, and calendar events.

Built for scripts and tools used by The Lupaxa Project.

The PyPI name is lupaxa-qrcode-generator. The import path is lupaxa.qrcode_generator. The CLI is installed as qrcode-generator and qrcodes.

Features

  • Text, URL, Wi-Fi, vCard, tel, email, SMS, geo, and calendar event payloads
  • Error correction, version pin, Micro QR, ECI, and structured-append sequences
  • Colours, --kind, PNG DPI, terminal preview, data URIs, stdout, and optional centre logos ([logo] extra)
  • Library API returns a segno.QRCode; save_qr writes PNG, SVG, and other segno formats
  • CLI with --version, -o / --scale / --border, and a subcommand per type
  • Wi-Fi WPA/WEP requires a password; URLs must be absolute http / https
  • SMS supports RFC ?body= and iOS &body= forms
  • Calendar events emit escaped iCalendar with PRODID, UID, and DTSTAMP
  • Fully typed, linted, formatted, and tested

Installation

From PyPI

pip install lupaxa-qrcode-generator
pip install lupaxa-qrcode-generator[logo]  # centre-logo overlay (Pillow)

From source (development mode)

pip install -e ".[dev]"

Requires Python 3.10+. lupaxa is a namespace package — there is no lupaxa/__init__.py.

Usage

from lupaxa.qrcode_generator import make_text, make_wifi, save_qr

save_qr(make_text("Hello Simon"), "hello.png")
save_qr(make_wifi("MyWifi", password="Secret!", auth="WPA"), "wifi.png")
qrcode-generator text "Hello Simon" -o hello.png
qrcode-generator wifi --ssid "MyWifi" --password "Secret!" --auth WPA -o wifi.png
qrcode-generator url "https://example.com" -o site.png
qrcode-generator --version
qrcode-generator --help

Development

make init
make python-install-dev
make python-check
make mkdocs-serve

Documentation: https://qrcode-generator.thelupaxaproject.org/.

The Lupaxa Project Footer

Download files

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

Source Distribution

lupaxa_qrcode_generator-0.2.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

lupaxa_qrcode_generator-0.2.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_qrcode_generator-0.2.0.tar.gz.

File metadata

  • Download URL: lupaxa_qrcode_generator-0.2.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lupaxa_qrcode_generator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 599deeabcabd4ad32f39501c459cb8b552d330e4046159d85526ddaf792f1cd9
MD5 b289fc7d12d64adb456381e1c2c0307b
BLAKE2b-256 27dd9b41d8e95a01f7380e7462221cd48d1d1119962f9d356598788e37c06860

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_qrcode_generator-0.2.0.tar.gz:

Publisher: generate-release.yml on lupaxa-developers-toolbox/qrcode-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lupaxa_qrcode_generator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_qrcode_generator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1dfbdd1d5ef9bef37a90eb156057524aa3925602956f55c9af438b5aa4a867f
MD5 6d5a4548321125224d0baf79c126a8f5
BLAKE2b-256 9f40d352a2f2623cd5ccbc9c54e0c2fe6a96f41eef92ecc04f232f6b3a6d0da5

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_qrcode_generator-0.2.0-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-developers-toolbox/qrcode-generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 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