Dash QR manger is a wrapper around react-google-qrcode and react-qr-reader.
Installation
pip install dash-qr-manager
Usage
Creating QR code
import dash_qr_manager as dqm
import dash
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div(
children=[
dqm.DashQrGenerator(
id='qr-code',
data='http://example.com/',
framed=True,
)
]
)
if __name__ == '__main__':
app.run_server(debug=True)
Reading QR code
import dash_qr_manager as dqm
import dash
from dash.dependencies import Input, Output
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div(
children=[
dqm.DashQrReader(
id='qr-code-reader',
style={'width': '50%'}
),
html.Div(id='qr-code-data')
]
)
@app.callback(
Output('qr-code-data', 'children'),
Input('qr-code-reader', 'result')
)
def code(qr_code_data):
return qr_code_data
if __name__ == '__main__':
app.run_server(debug=True)
Documentation
DashQrGenerator
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- data (string; optional):
The data to encode.
- framed (boolean; optional):
Adds a frame to the image.
- size (number; optional):
Image size in pixels (width x height). Min value: 30, Max value:
547.
- style (dict; optional):
The style of the QR code.
for more information: https://www.npmjs.com/package/react-google-qrcode
DashQrReader
Keyword arguments:
- id (string; optional):
The ID used to identify this component in Dash callbacks.
- className (string; optional):
ClassName for the container element.
- containerStyle (dict; optional):
Style object for the container element.
- result (string; optional):
decoded data.
- scanDelay (number; optional):
The scan period for the QR hook.
- style (dict; optional):
The style of the QR code.
- videoContainerStyle (dict; optional):
Style object for the video container element.
- videoId (string; optional):
The ID for the video element.
- videoStyle (dict; optional):
Style object for the video element.
for more information: https://www.npmjs.com/package/react-qr-reader
Metadata
Release files for dash-qr-manager 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dash_qr_manager-0.0.4.tar.gz | 174.0 kB | Without provenance | Details for dash_qr_manager-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dash_qr_manager-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for dash_qr_manager-0.0.4-py3-none-any.whl |
Total release size: 349.1 kB
Release files / dash_qr_manager-0.0.4.tar.gz
| Download URL | dash_qr_manager-0.0.4.tar.gz |
|---|---|
| Size | 174.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd74f07bf59a69cd63c67e6ec1b78ec14a90027fb8b6d10aabf4af6f4b79965c
|
|
BLAKE2b-256 checksum How to use checksums |
57dc476613b536993d91c959b7fa004302514d0548ff12c617626cae7a602593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Release files / dash_qr_manager-0.0.4-py3-none-any.whl
| Download URL | dash_qr_manager-0.0.4-py3-none-any.whl |
|---|---|
| Size | 175.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a14b52c6f049a14646e227b69672f81a344f1c0bde53048cd7baa35f697749fc
|
|
BLAKE2b-256 checksum How to use checksums |
0a88f0753448fe9d8082f6dc64809e67b0fc455b0fe48435aa71e885aca6bdf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Security for dash-qr-manager 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.