Rich console components and multi-level header tables for CLI rendering
Project description
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
uv add dr-render
Components
FancyTable
Extended Rich Table with multi-level spanning headers:
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 borderSectionRule- Colored section dividersSectionTitlePanel- Panel with label and nested contentInfoBlock- Simple styled text block
DataFrame Utilities
create_hyperparameter_sweep_table()- ML hyperparameter sweep visualization with best-value highlightingdataframe_to_fancy_tables()- Split wide DataFrames into paginated FancyTablescreate_counts_table()- Cross-tabulation tables with styled headers
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dr_render-0.1.0.tar.gz.
File metadata
- Download URL: dr_render-0.1.0.tar.gz
- Upload date:
- Size: 73.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a89d84ba6fda9bda018bfb7217f399250bc39f60c208e24f2a841827b8480efa
|
|
| MD5 |
c430f32de3e71b72150768428f67ec23
|
|
| BLAKE2b-256 |
fec77db1d7159083a62a297fb01665b70925a4b497d2cb7347855af0013c084e
|
File details
Details for the file dr_render-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dr_render-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f61375e10cfc379c2c3a21a81c2be0eb6b157eec9f52f21284e2eebd0e558e1
|
|
| MD5 |
9ecebabf9d98a969f69e6075d59b3d78
|
|
| BLAKE2b-256 |
019c118c1c90614d5ee737746527a3bb1aa331677ef0a4307953c5cbb04e29bd
|