Skip to main content

A tool for generating QR codes

Project description

Publish to PyPI PyPI version License

NOMAD QR Codes

Generate branded QR codes (PNG or SVG) with rounded dots, styled finder eyelets, and an embedded center logo:

NOMAD QR code NOMAD QR code

The package installs a CLI command:

  • nomad-qr-codes

Installation

Install from PyPI:

pip install nomad-qr-codes

If you prefer uv:

uv pip install nomad-qr-codes

For editable local development:

pip install -e .

Quick Start

Generate a QR code using the default preset and transparent background:

uv run nomad-qr-codes "https://nomad-lab.eu"

This creates:

  • generated-nomad-qr.png

CLI Usage

nomad-qr-codes DATA [OPTIONS]

Required argument

  • DATA: URL or text to encode.

Example:

nomad-qr-codes "https://nomad-lab.eu"

Options

  • --preset {default,dark,oasis,dtu}
    • Selects preset colors and bundled logo.
    • Default: default
  • --output PATH
    • Output file path.
    • Default: generated-nomad-qr.png
  • --logo PATH
    • Use a custom center logo SVG instead of bundled logos.
  • --color HEX
    • Override QR foreground color (example: #192E87).
  • --eyelet-color HEX
    • Override finder eyelet color.
  • --format {png,svg}
    • Output format.
    • If omitted, inferred from output file extension.
  • --white-background
    • Enables white page background and white logo backing.
    • Without this flag, background is transparent.

Examples

Generate transparent PNG with default preset:

uv run nomad-qr-codes "https://nomad-lab.eu"

Generate white-background PNG:

uv run nomad-qr-codes "https://nomad-lab.eu" --white-background

Generate SVG output:

uv run nomad-qr-codes "https://nomad-lab.eu" --format svg --output nomad-qr.svg

Use oasis preset:

uv run nomad-qr-codes "https://nomad-lab.eu" --preset oasis

Use custom colors:

uv run nomad-qr-codes "https://nomad-lab.eu" --color "#0B1E4D" --eyelet-color "#22A06B"

Use a custom logo:

uv run nomad-qr-codes "https://nomad-lab.eu" --logo ./my-logo.svg

Presets

  • default: NOMAD default palette
  • dark: NOMAD dark palette
  • oasis: Oasis palette
  • dtu: DTU red palette

Bundled logos are packaged with the Python package under src/nomad_qr_codes/assets/logos.

Notes

  • For best scanning reliability, keep high contrast between foreground and background.
  • Very large center logos can hurt scan performance.
  • SVG output is ideal when you need scalable print assets.

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

nomad_qr_codes-1.1.0.tar.gz (291.9 kB view details)

Uploaded Source

Built Distribution

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

nomad_qr_codes-1.1.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file nomad_qr_codes-1.1.0.tar.gz.

File metadata

  • Download URL: nomad_qr_codes-1.1.0.tar.gz
  • Upload date:
  • Size: 291.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nomad_qr_codes-1.1.0.tar.gz
Algorithm Hash digest
SHA256 542c758625d296dc03e794c324f552a1231288c9bfdcdc0cd33c699dc7d74ef0
MD5 2481ced802d74a36354b874be8aa66bb
BLAKE2b-256 b59073eebd0bb55ed887f0b5f887d1cec8a3270b7b7f71283279b5538c451e63

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_qr_codes-1.1.0.tar.gz:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-qr-codes

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

File details

Details for the file nomad_qr_codes-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nomad_qr_codes-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nomad_qr_codes-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fed70c126090b511e44c5cf3a8469b9a60e439c732a6929e9f6075a92a095abb
MD5 8bbe7a880eef1ed8490ba4af4d784038
BLAKE2b-256 a70a65dd71cc8ef5af09d5525f6a8fec28bba90689ae2af5cd926c72266905ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for nomad_qr_codes-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on FAIRmat-NFDI/nomad-qr-codes

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

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