Dash Grocery
Dash Grocery is a collection of Dash components that wrap useful React libraries.
Install
pip install dash-grocery
Dash Grocery requires Dash 4.5.0 or later.
Quickstart
from dash import Dash, html
import dash_grocery
app = Dash(__name__)
app.layout = html.Div(
[
dash_grocery.Clock(
format="dddd, MMMM Do, YYYY, HH:mm:ss",
ticking=True,
),
dash_grocery.Barcode(value="dash-grocery", format="CODE128"),
dash_grocery.QRCodeSVG(value="https://github.com/IcToxi/dash-grocery"),
]
)
if __name__ == "__main__":
app.run(debug=True)
Components
| Component | Wraps |
|---|---|
Barcode |
react-barcode |
Clock |
Local implementation (no third-party library) |
GridLayout |
react-grid-layout |
LazyLoad |
Local implementation (no third-party library) |
Masonry |
Local implementation (no third-party library) |
MouseParticles |
Local implementation (no third-party library) |
Particles |
tsParticles (slim bundle) |
ParticlesBg |
Local implementation (no third-party library) |
PowerModeInput |
Local implementation (no third-party library) |
QRCodeCanvas, QRCodeSVG |
qrcode.react |
Snake |
Built-in; keyboard and on-screen controls |
Stars |
Local implementation (replaces unmaintained react-stars) |
Textfit |
Local implementation (no third-party library) |
Weather |
react-open-weather |
Components accept their documented React properties as Dash properties. Use
id to reference a component in callbacks; interactive components such as
Stars and PowerModeInput expose their current value as a Dash property.
See the examples for usage, and each component's propTypes
in src/lib/components for supported properties.
Weather requires an API key from the selected weather provider. A key used in
a browser is visible to users; restrict it with the provider and set usage
limits. To use your own data, set option="custom" and pass customData in
the format returned by the selected provider. A custom JavaScript func, when
used outside Dash's JSON-based Python interface, receives the component props
and returns {data, isLoading, errorMessage}.
Run an example
After installing the package, run an example from the repository root:
python -m examples.barcode_usage
Development
Install the JavaScript and Python development dependencies, then build the JavaScript bundle and generated Dash components. The project is tested with Python 3.15, Node.js 22, and Dash's experimental React 19.2.4 runtime:
YARN_NODE_LINKER=node-modules yarn
python -m pip install -r requirements.txt
YARN_NODE_LINKER=node-modules yarn lint
YARN_NODE_LINKER=node-modules yarn build
pytest tests
Run YARN_NODE_LINKER=node-modules yarn start to rebuild the development
bundle whenever a source file changes.
To contribute a component, add its React wrapper under
src/lib/components/, export it from src/lib/index.js, and add an example
under examples/. yarn build:py_and_r also generates R wrappers and requires
an author email in package.json.
Publishing to PyPI
This repository publishes distributions through GitHub Actions Trusted Publishing; no PyPI API token is needed. Before the first release, add a publisher under PyPI account settings → Publishing with:
- PyPI project:
dash-grocery - Owner:
IcToxi - Repository:
dash-grocery - Workflow:
publish-to-pypi.yml - Environment:
pypi
A release is published when a tag such as v0.1.2 matching the version in
package.json is pushed. The publishing workflow builds and tests the package
before uploading it to PyPI. It can also be started manually
(workflow_dispatch) for an existing tag.
Automation
The repository maintains itself:
- CI runs on every push and pull request, and weekly to catch upstream breakage (Dash, React, browsers).
- Dependabot is limited to security updates; passing minor/patch ones are
merged automatically (
dependabot-automerge.yml). Releases are cut by hand (or viaauto-release.yml), and only when needed for security fixes. - Auto release (
auto-release.yml) is manual-only (Actions tab, "Run workflow"). It bumps the patch version ifmainhas dependency or source changes since the last tag and CI passed, then tags, creates the GitHub release and publishes to PyPI. Re-add ascheduletrigger to run it weekly.
Not included
React Bits and Hover.dev are not bundled: they are copy-paste source collections whose licenses restrict redistribution of components inside another package.
Metadata
Release files for dash-grocery 0.3.1
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_grocery-0.3.1.tar.gz | 990.8 kB | With provenance | Details for dash_grocery-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dash_grocery-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for dash_grocery-0.3.1-py3-none-any.whl |
Total release size: 2.0 MB
Release files / dash_grocery-0.3.1.tar.gz
| Download URL | dash_grocery-0.3.1.tar.gz |
|---|---|
| Size | 990.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b1d13442c61c2162cb8678571b4a1844d5dc05dce91b9a883082dfe16996937
|
|
BLAKE2b-256 checksum How to use checksums |
19997303e4144de0a270e67244cd348d6207f81ceced8130c19a4ae65c19a202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / dash_grocery-0.3.1-py3-none-any.whl
| Download URL | dash_grocery-0.3.1-py3-none-any.whl |
|---|---|
| Size | 998.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12d144fb7329559a0a5ca186b05e4627654b9b2ad76e161ca800ab0a89efd645
|
|
BLAKE2b-256 checksum How to use checksums |
9fd2f4c516aeff8a687c6d5d6e9f686da20ac510c59f8093998a15563318d3f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for dash-grocery 0.3.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dash_grocery-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA 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.