Skip to main content

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 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

Metadata

Release files for dr-render 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dr-render 0.1.0
File Size Uploaded
dr_render-0.1.0.tar.gz 73.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dr-render 0.1.0
File Interpreter ABI Platform
dr_render-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 84.2 kB

Release files / dr_render-0.1.0.tar.gz

Download URL dr_render-0.1.0.tar.gz
Size 73.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a89d84ba6fda9bda018bfb7217f399250bc39f60c208e24f2a841827b8480efa
BLAKE2b-256 checksum
How to use checksums
fec77db1d7159083a62a297fb01665b70925a4b497d2cb7347855af0013c084e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / dr_render-0.1.0-py3-none-any.whl

Download URL dr_render-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f61375e10cfc379c2c3a21a81c2be0eb6b157eec9f52f21284e2eebd0e558e1
BLAKE2b-256 checksum
How to use checksums
019c118c1c90614d5ee737746527a3bb1aa331677ef0a4307953c5cbb04e29bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page