Core component suite for Dash
Project description
Notice
As of Dash 2, the development of dash-core-components has been moved to the main Dash repo
This package exists for backward compatibility
Dash Core Components
This package provides the core React component suite for Dash.
Development
The dash package contains some tools to build components and drive the bundles build process.
To avoid the circular dependency situation, we don't add dash as a required install in the dash-core-components setup.
But, in order to do development locally, you need to install dash before everything.
- Install the dependencies with:
# it's recommended to install your python packages in a virtualenv
# python 2
$ pip install virtualenv --user && virtualenv venv && . venv/bin/activate
# python 3
$ python -m venv venv && . venv/bin/activate
# make sure dash is installed with dev and testing dependencies
$ pip install dash[dev,testing] # in some shells you need \ to escape []
# run the build process
$ npm i --ignore-scripts && npm run build
# install dcc in editable mode
$ pip install -e .
Code quality and tests
To run integration tests (test_integration.py)
You can run the Selenium integration tests with the
npm test
Testing your components in Dash
-
Run the build watcher by running $ npm run build:watch
-
Run the dash layout you want to test
# Import dash_core_components to your layout, then run it: $ python my_dash_layout.py
Uninstalling python package locally
$ npm run uninstall-local
Publishing
There's an npm script that will handle publish, provided you have the right credentials. You can run it by running
$ npm run publish-all
See the Publishing New Components/Features section of the Contributing guide for step-by-step instructions on publishing new components.
Dash Component Boilerplate
See the dash-component-boilerplate repo for more information.
Big Thanks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dash_core_components-2.0.0.tar.gz.
File metadata
- Download URL: dash_core_components-2.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6733874af975e552f95a1398a16c2ee7df14ce43fa60bb3718a3c6e0b63ffee
|
|
| MD5 |
98f5516cc507ce1a894516ade3491735
|
|
| BLAKE2b-256 |
4155ad4a2cf9b7d4134779bd8d3a7e5b5f8cc757f421809e07c3e73bb374fdd7
|
File details
Details for the file dash_core_components-2.0.0-py3-none-any.whl.
File metadata
- Download URL: dash_core_components-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b8e8cce13b18d0802ee3acbc5e888cb1248a04968f962d63d070400af2e346
|
|
| MD5 |
b79b427ebbd0a4afa6d27333855e5a2a
|
|
| BLAKE2b-256 |
009ea29f726e84e531a36d56cff187e61d8c96d2cc253c5bcef9a7695acb7e6a
|