Metadata-Version: 2.4
Name: dr-render
Version: 0.1.0
Summary: Rich console components and multi-level header tables for CLI rendering
Project-URL: Homepage, https://github.com/drothermel/dr_render
Project-URL: Repository, https://github.com/drothermel/dr_render
Author-email: Danielle Rothermel <danielle.rothermel@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: cli,console,rendering,rich,tables,terminal
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Terminals
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: ipykernel>=6.30.1
Requires-Dist: matplotlib>=3.10.6
Requires-Dist: pandas>=2.3.2
Requires-Dist: pyarrow>=21.0.0
Requires-Dist: rich>=14.1.0
Description-Content-Type: text/markdown

# dr_render

Rich console components and multi-level header tables for CLI rendering.

## Why "render"?

This library focuses on *rendering* data visually in the terminal. Current features include styled tables and console components, with planned extensions for:

- Annotated text rendering (parts of speech, syntax highlighting)
- Colored markup and linguistic visualization
- Other CLI rendering utilities

## Installation

```bash
uv add dr-render
```

## Components

### FancyTable

Extended Rich Table with multi-level spanning headers:

```python
from dr_render import FancyTable, HeaderCell

table = FancyTable(show_header=True, header_style="bold magenta")
table.add_column()
table.add_column()
table.add_column()

table.add_header_row(
    table.create_spanned_header("Group A", 2, "bold blue"),
    HeaderCell("Single"),
)
table.add_header_row(HeaderCell("Col 1"), HeaderCell("Col 2"), HeaderCell("Col 3"))

table.add_row("a", "b", "c")
```

### Console Components

- `TitlePanel` - Styled title panel with double-edge border
- `SectionRule` - Colored section dividers
- `SectionTitlePanel` - Panel with label and nested content
- `InfoBlock` - Simple styled text block

### DataFrame Utilities

- `create_hyperparameter_sweep_table()` - ML hyperparameter sweep visualization with best-value highlighting
- `dataframe_to_fancy_tables()` - Split wide DataFrames into paginated FancyTables
- `create_counts_table()` - Cross-tabulation tables with styled headers

## License

MIT
