Skip to main content

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 react-live-clock
LazyLoad react-lazyload
Masonry react-masonry-component
MouseParticles react-mouse-particles
ParticlesBg particles-bg
PowerModeInput power-mode-input
QRCodeCanvas, QRCodeSVG qrcode.react
Snake Built-in; keyboard and on-screen controls
Stars react-stars
Textfit react-textfit
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

For each release, update the version in package.json, then push a matching tag such as v0.0.8. The publishing workflow builds and tests the package before uploading it to PyPI.

Metadata

Release files for dash-grocery 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dash-grocery 0.1.0
File Size Uploaded Provenance Actions
dash_grocery-0.1.0.tar.gz 888.6 kB With provenance Details for dash_grocery-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dash-grocery 0.1.0
File Interpreter ABI Platform Actions
dash_grocery-0.1.0-py3-none-any.whl Python 3 none any Details for dash_grocery-0.1.0-py3-none-any.whl

Total release size: 1.8 MB

Release files / dash_grocery-0.1.0.tar.gz

Download URL dash_grocery-0.1.0.tar.gz
Size 888.6 kB
Tags Source
SHA-256 checksum
How to use checksums
292488e55cac550f7ff5aaca39cbe5b7a46171ce645ce379dc18992ae7853c84
BLAKE2b-256 checksum
How to use checksums
a89755f904b7826dad126386bb434bcc285d6d1abb3c5e9f4c0787c76ab246be
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 log

Release files / dash_grocery-0.1.0-py3-none-any.whl

Download URL dash_grocery-0.1.0-py3-none-any.whl
Size 897.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
980658812e9ebdff27d3d93e8931b2feef82fc5c9ef9424392c58a926c8cba87
BLAKE2b-256 checksum
How to use checksums
d35eddf9c9c5e48b78e7570ca010aba180d74110e846ce10116d9c62790817ab
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 log

Security for dash-grocery 0.1.0

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.

Select from 2 files

Attestation for dash_grocery-0.1.0.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 log

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.

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