Renderers
Utility module that provides standardized functions for rendering
- class Renderer(plain=False, theme=None)[source]
Renderer provides methods for rendering text using different, predefined colors and styles.
Initialize render utilities.
- Parameters:
plain (bool) – Whether to use plain text rendering
theme (Theme) – Theme instance to use for colors. If None, uses
theme. (default)
- error(message)[source]
Render a message with a red color.
- Return type:
- Parameters:
message – Text to render
- info(message)[source]
Render a message with a bright blue color.
- Return type:
- Parameters:
message – Text to render
- markdown(message)[source]
Render markdown formatted text.
- Return type:
- Parameters:
message – Text to render
- normal(message)[source]
Render a message with a normal color.
- notice(message)[source]
Render a message with a bright yellow color.
- Return type:
- Parameters:
message – Text to render
- format_datetime(unformatted_date)[source]
Format a datetime string to a more human readable format.