Help Topics for qr

Project

qr

Function

generate_b64data

Sample CLI

gway qr generate-b64data

Signature

(value)

Docstring

Generate a QR code image from the given value and return it as a base64-encoded PNG string.

Project

qr

Function

generate_image

Sample CLI

gway qr generate-image

References

['resource']

Signature

(value, *, path=None)

Docstring

Generate a QR code image from the given value and save it to the specified path. If path is not provided, we use a random uuid to name it, unrelated to the value.

Project

qr

Function

generate_url

Sample CLI

gway qr generate-url

References

['resource']

Signature

(value)

Docstring

Return the local URL to a QR code with the given value. This will only work when the website is up and running to serve /work This generates a new QR code image if needed, or uses a cache if possible.

Project

qr

Function

scan_img

Sample CLI

gway qr scan-img

Signature

(source)

Docstring

Scan the given image (file‑path or PIL.Image) for QR codes and return a list of decoded string values. Returns [] if nothing’s found.

Project

web.app

Function

render_navbar

Sample CLI

gway web.app render-navbar

References

['qr', 'qr.generate_url', 'resource']

Signature

(visited, path, current_url=None)

Project

web.site

Function

view_qr_code

Sample CLI

gway web.site view-qr-code

References

['qr', 'qr.generate_url', 'web', 'web.app_url']

Signature

(*args, value=None, **kwargs)

Docstring

Generate a QR code for a given value and serve it from cache if available.