Generate interactive plotly dash dashboards in an instant
Project description
dasher: Generate interactive plotly dash dashboards in an instant
Installation
pip install dasher
You can also install the in-development version with:
pip install https://github.com/mfaafm/dasher/archive/master.zip
First steps
Creating a simple, interactive dashboard with a nice layout is as easy as this:
from dasher import Dasher
import dash_html_components as html
app = Dasher(__name__, title="My first dashboard")
@app.callback(
_name="My first callback",
_desc="Try out the widgets!",
_labels=["Greeting", "Place"],
text="Hello",
place=["World", "Universe"],
)
def my_callback(text, place):
msg = "{} {}!".format(text, place)
return [html.H1(msg)]
if __name__ == "__main__":
app.run_server(debug=True)
The resulting dashboard looks like this:
The code for this dashboard can be found in examples/readme_example.py.
Documentation
To view the full project documentation, visit https://dasher.readthedocs.io/.
License
Free software, MIT License
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.3.1 (2019-12-17)
Update and fix documentation.
Fix documentation build using .readthedocs.yml.
0.3.0 (2019-12-15)
Generate id property from name for every callback. The id is now used to identify the callback, while name is used in the layout for displaying.
0.2.0 (2019-11-03)
Use cookiecutter to create a proper project structure.
Refactor core functionality into dasher.Api.
Combine widget factory and template logic into unified layout implementation.
Fix resizing bug when switching tabs by using callback-based tab switching.
Add support of fully custom widgets.
Add documentation.
Add more examples.
0.1.2 (2019-07-16)
Add _labels argument to the callback decorator to enable customization of widget labels.
0.1.1 (2019-06-10)
Add credits argument to DasherStandardTemplate to toggle whether to show credits in the navbar.
Update docstrings and documentation.
Add margin to navbar.
Project details
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
File details
Details for the file dasher-0.3.1.tar.gz
.
File metadata
- Download URL: dasher-0.3.1.tar.gz
- Upload date:
- Size: 510.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c885baa89840e7316c36d56339928a6c41d804d0f1002bf526088040e7582d98 |
|
MD5 | 724c7dae2695d520302038a999a65a6f |
|
BLAKE2b-256 | a9e7ec9aaac9f6ab0d6efb52ca8eaf8607aae1a72feb223131f93f0d11b4b8b8 |
File details
Details for the file dasher-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dasher-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d666cb3f9a9e62258f6c3c24ea7a65604c9452d0cbd1acc95d6682d46c884b |
|
MD5 | 03cf0c29015e3212c513a1a232ca29e1 |
|
BLAKE2b-256 | 067771b4662a88b4ed41ed0a90679ced73ad1a5bf7713a35236a9c700385a6d3 |