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 Local implementation (replaces unmaintained 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.1

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.1
File Size Uploaded Provenance Actions
dash_grocery-0.1.1.tar.gz 894.2 kB With provenance Details for dash_grocery-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / dash_grocery-0.1.1.tar.gz

Download URL dash_grocery-0.1.1.tar.gz
Size 894.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7f3bb76de62de30621bda2a5097f559c29b52ed66f0fe3019f1e8cfcd7ff61f6
BLAKE2b-256 checksum
How to use checksums
80bf887d4a588b29ea727576124b158947160af7ee262410445d5a67f62da26f
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.1-py3-none-any.whl

Download URL dash_grocery-0.1.1-py3-none-any.whl
Size 903.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8aff61f422168328441b084ca3733bcc65c97292b402aea66d32f77ad6c65229
BLAKE2b-256 checksum
How to use checksums
8bca74a79122a3ab4efa0dc5faf31f6942b11b754fbf171f2808c95c5725fd14
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.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.

Select from 2 files

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