Metadata-Version: 2.5
Name: spaday-lightweight-charts
Version: 0.2.0
Summary: Lightweight charts for spaday
Project-URL: Repository, https://github.com/1kbgz/spaday-lightweight-charts
Project-URL: Homepage, https://github.com/1kbgz/spaday-lightweight-charts
Author-email: 1kbgz <dev@1kbgz.com>
License: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: spaday>=0.6.0
Provides-Extra: develop
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-dist; extra == 'develop'
Requires-Dist: codespell; extra == 'develop'
Requires-Dist: hatch-js; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: httpx; extra == 'develop'
Requires-Dist: mdformat; extra == 'develop'
Requires-Dist: mdformat-tables>=1; extra == 'develop'
Requires-Dist: pydantic>=2; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: starlette; extra == 'develop'
Requires-Dist: transports; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: ty; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: uvicorn; extra == 'develop'
Requires-Dist: websockets; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Provides-Extra: examples
Requires-Dist: pydantic>=2; extra == 'examples'
Requires-Dist: starlette; extra == 'examples'
Requires-Dist: transports; extra == 'examples'
Requires-Dist: uvicorn; extra == 'examples'
Requires-Dist: websockets; extra == 'examples'
Description-Content-Type: text/markdown

# spaday-lightweight-charts

TradingView Lightweight Charts for spaday.

[![Build Status](https://github.com/1kbgz/spaday-lightweight-charts/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/1kbgz/spaday-lightweight-charts/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/1kbgz/spaday-lightweight-charts/branch/main/graph/badge.svg)](https://codecov.io/gh/1kbgz/spaday-lightweight-charts)
[![License](https://img.shields.io/github/license/1kbgz/spaday-lightweight-charts)](https://github.com/1kbgz/spaday-lightweight-charts)
[![PyPI](https://img.shields.io/pypi/v/spaday-lightweight-charts.svg)](https://pypi.python.org/pypi/spaday-lightweight-charts)

## Documentation

- [Build a live chart](docs/src/tutorial.md) — guided first chart.
- [Update chart data and appearance](docs/src/how-to.md) — task-focused recipes.
- [API reference](docs/src/reference.md) — component props and package descriptor.
- [Why a wrapper component?](docs/src/explanation.md) — integration design and tradeoffs.

## Quick example

```python
from spaday import serve
from spaday_lightweight_charts import LightweightChart

chart = LightweightChart(
    type="area",
    data=[{"time": "2026-01-01", "value": 42}],
)

serve(chart, packages=["lightweight-charts"])
```

`data` accepts a point array or a time-keyed mapping. Bind it to a spaday store field for live updates. Supported series types are `line`, `area`, `candlestick`, `bar`, and `histogram`.

## Run the local example

```bash
python -m pip install -e ".[examples]"
python -m spaday_lightweight_charts.example
```

Open `http://127.0.0.1:8011` to inspect the [complete dashboard example](spaday_lightweight_charts/example.py): three responsive
charts, server-streamed price data, renderer controls, per-point colors, and light/dark themes. It passes
the local package descriptor directly, so it does not install or resolve the integration from GitHub.
