display
Utils for displaying dascore objects.
Functions
| Name | Description |
|---|---|
| array_to_text | Convert a coordinate to string. |
| attrs_to_text | Convert pydantic model to text. |
| counts_to_text |
Render a mapping of name to count as a: 2, b: 1.
|
| get_dascore_text | Get stylized dascore text. |
| get_header_text | Get the banner which opens the repr of a top-level dascore object. |
| get_nice_text | Get a rich Text object for formatting nice display for various datatypes. |
| indent_text | Indent every line of a rich Text, keeping its styles. |
| limit_reprs |
Render at most limit items, with a line naming what was left out.
|
| mapping_to_text | Get the “➤ Header” block a mapping of names to values prints as. |
| model_to_line | Get a one-line summary of a pydantic model. |
| stated_fields | Return the fields of a pydantic model which state something. |
| value_to_text | Get the text one value prints as, given the name it is stated under. |