Dash-oop-components

Latest version: v0.0.10

Safety actively analyzes 622894 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.8

Breaking Changes
- component callbacks should now be declared in `def component_callbacks(self, app)` instead of `_register_callbacks(self, app)`. Although for now the old `_register_callbacks()` will still work.


New Features
- added .id(), .Input(), .Output() and .State() methods to DashComponent
- basically just tags `+'-'+self.name` to the end of a `component_id`
- results in somewhat cleaner callbacks:

html.Div(id=self.id("output-div")

app.callback(
self.Output("output-div", "children"),
self.Input("input-first-n", "value")
)
def update_div(first_n):
...

0.0.6

New Features
- If you add a parameter `filepath` to your `DashFigureFactory` you can `.dump()` without specifying a filepath as it defaults to the filepath parameter.
- If that `DashFigureFactory` is parameter for a `DashComponent` (or`DashApp`), you can
then load the pickled object instead of rebuilding the `DashFigureFactory` from scratch.
This is useful for when you have a computationally expensive build process
for your `DashFigureFactory`. You can indicate that you would like
to try to load from pickles or only wish to load from pickles by
passing `try_pickles=True` or `force_pickles=True` when loading from config:
python
DashApp.from_yaml("dashboard.yaml", try_pickles=True)`

- `DashComponentTabs`: generate a `dcc.Tabs` wrapper with a list of `dcc.Tab` children based on a list of `DashComponent` subcomponents.
- This allows `dash_oop_components` to keep track of which querystring parameters belong to which tab in `._tab_params`.
- So this `DashApp` the possibility only keeping track of querystring parameters of the specific tab that you are currently on.
- Documentation [here](https://oegedijk.github.io/dash_oop_components/querystrings.htmlAddendum:-Tracking-querystring-params-of-current-tab-only) and [here](https://oegedijk.github.io/dash_oop_components/querystrings.htmlAddendum:-Tracking-querystring-params-of-current-tab-only)
- `DashConnector`: a `Connector` can generate callbacks between
`DashComponent` instances. This makes connections between components
also modular and re-usable.
- Documentation [here](https://oegedijk.github.io/dash_oop_components/core.htmlDashConnector)

Bug Fixes
- Cleaned up querystring code

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.