Metadata-Version: 2.4
Name: s5ndt
Version: 0.0.5
Summary: s5n dash tools — Plotly Dash utilities
Author-email: Simon Niederberger <s.niederberger@hotmail.com>
Maintainer-email: Simon Niederberger <s.niederberger@hotmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/saemeon/s5ndt
Project-URL: Repository, https://github.com/saemeon/s5ndt
Keywords: plotly,dash,visualization,dashboard
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dash
Requires-Dist: matplotlib
Dynamic: license-file

[![PyPI](https://img.shields.io/pypi/v/s5ndt)](https://pypi.org/project/s5ndt/)
[![Python](https://img.shields.io/pypi/pyversions/s5ndt)](https://pypi.org/project/s5ndt/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Plotly](https://img.shields.io/badge/Plotly-3F4F75?logo=plotly&logoColor=white)](https://plotly.com/python/)
[![Dash](https://img.shields.io/badge/Dash-008DE4?logo=plotly&logoColor=white)](https://dash.plotly.com/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
[![prek](https://img.shields.io/badge/prek-checked-blue)](https://github.com/saemeon/prek)

# s5ndt

s5n dash tools — Plotly Dash utilities.

**Documentation: [saemeon.github.io/s5ndt](https://saemeon.github.io/s5ndt/)**

## Installation

```bash
pip install s5ndt
```

## Components

| Component | Description |
|-----------|-------------|
| `mpl_export_button` | Matplotlib export wizard for `dcc.Graph` — modal with auto-generated fields, live preview, and PNG download |
| `build_wizard` | Generic modal dialog |
| `build_dropdown` | Generic anchored dropdown with click-outside-to-close |
| `build_config` | Introspects a function signature into labeled Dash input fields |
| `FromPlotly` | `FieldHook` that pre-fills a field from the live Plotly figure |
| `FieldHook` | Base class for runtime field defaults derived from Dash component state |

**Supported field types:** `str`, `int`, `float`, `bool`, `date`, `datetime`, `Literal[...]`, `list[T]`, `tuple[T, ...]`, `T | None`

## License

MIT
