semvec/pypi-packages huggingface dataset:
pylegendtestdata 0.6.0
Python package for accessing LEGEND test data
License: MIT
Requires Python: >=3.9

# pylegendtestdata

[![PyPI](https://img.shields.io/pypi/v/pylegendtestdata?logo=pypi)](https://pypi.org/project/pylegendtestdata/)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/legend-exp/pylegendtestdata?logo=git)
[![GitHub Workflow Status](https://img.shields.io/github/checks-status/legend-exp/pylegendtestdata/main?label=main%20branch&logo=github)](https://github.com/legend-exp/pylegendtestdata/actions)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![GitHub issues](https://img.shields.io/github/issues/legend-exp/pylegendtestdata?logo=github)
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/pylegendtestdata?logo=github)
![License](https://img.shields.io/github/license/legend-exp/pylegendtestdata)

Tiny Python package to access [LEGEND test data](https://github.com/legend-exp/legend-testdata).

Install (with pip):
```console
$ python -m pip install pylegendtestdata
```

Usage:

```pycon
>>> from legendtestdata import LegendTestData
>>> ldata = LegendTestData()  # clone legend-exp/legend-testdata below /tmp
>>> ldata.checkout("968c9ba")  # optionally checkout a specific version
>>> ldata.get_path("orca/fc/L200-comm-20220519-phy-geds.orca")  # get absolute path to test file
'/tmp/legend-testdata-gipert/data/orca/fc/L200-comm-20220519-phy-geds.orca'
>>> ldata.reset()  # checkout default branch (main)
```

<sub>*This Python package layout is based on [pyproject-template](https://github.com/gipert/pyproject-template).*</sub>
chartinglib 0.1.0
Integrate Plotly charts into Textual TUI applications with a customizable ChartWidget.
License: MIT
Requires Python: >=3.11

# ChartingLib 📈

**ChartingLib** is a modern TUI (Textual User Interface) Python library built with [Textual](https://github.com/Textualize/textual) and [Plotly](https://plotly.com/python/), designed for interactive data visualization directly in your terminal.

It provides a rich, responsive interface to display a variety of charts such as Line, Bar, Scatter, Candlestick, GDP trends, and more.

---

## ✨ Features

- 📊 Interactive Plotly charts inside your terminal
- 🧠 Automatic data generation or loading using `DataProcessing`
- 🧩 Modular chart widget (`ChartWidget`) for easy embedding
- 🎨 Sidebar for selecting different chart types
- 💻 Clean TUI with keyboard navigation (powered by Textual)

---

## 📦 Installation

```bash
pip install chartinglib
```

---

## 🚀 Usage

Here’s a simple example using `ChartWidget` in a Textual app:

```python
from textual.app import App, ComposeResult
from textual.containers import Container
from chartinglib import ChartWidget, DataProcessing

class DemoChartApp(App):
    def compose(self) -> ComposeResult:
        raw_data = DataProcessing("line").process()
        chart = ChartWidget(chart_type="line", data=raw_data)
        yield Container(chart)

if __name__ == "__main__":
    app = DemoChartApp()
    app.run()
```

---

## 📈 Supported Chart Types

- `line`
- `bar`
- `scatter`
- `candlestick`
- `gdp`
- `revenue`
- `multiple_lines`
- `mixed_bar_line`

---

## 🛠 Development

```bash
git clone https://github.com/yourusername/chartinglib
cd chartinglib
pip install -e .[dev]
```

To run the example app:

```bash
python -m chartinglib.app
```

---

## 📄 License

This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.

---

## 👤 Author

**Your Name**  
[GitHub](https://github.com/yourusername)

---

## 🙏 Acknowledgments

- [Textual by Textualize](https://github.com/Textualize/textual)
- [Plotly for Python](https://plotly.com/python/)