Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dr_render-0.1.0.tar.gz (73.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dr_render-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

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

Hashes for dr_render-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a89d84ba6fda9bda018bfb7217f399250bc39f60c208e24f2a841827b8480efa
MD5 c430f32de3e71b72150768428f67ec23
BLAKE2b-256 fec77db1d7159083a62a297fb01665b70925a4b497d2cb7347855af0013c084e

See more details on using hashes here.

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

Hashes for dr_render-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f61375e10cfc379c2c3a21a81c2be0eb6b157eec9f52f21284e2eebd0e558e1
MD5 9ecebabf9d98a969f69e6075d59b3d78
BLAKE2b-256 019c118c1c90614d5ee737746527a3bb1aa331677ef0a4307953c5cbb04e29bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page