Style¶
style ¶
Purple-themed CLI styling for T3 API utilities.
error_style
module-attribute
¶
Bold red style for error messages and failures.
info_style
module-attribute
¶
Bold blue style for informational messages and help text.
success_style
module-attribute
¶
Bold green style for success messages and completed actions.
warning_style
module-attribute
¶
Bold yellow style for warning messages and cautions.
progress_style
module-attribute
¶
Bold magenta style for progress indicators and status updates.
header_style
module-attribute
¶
Bold magenta style for main section headers and titles.
subheader_style
module-attribute
¶
Bold bright magenta style for subsection headers.
menu_style
module-attribute
¶
Magenta style for menu items and interactive selection elements.
file_path_style
module-attribute
¶
Cyan style for file and directory paths.
technical_style
module-attribute
¶
Dim white style for technical details and secondary information.
data_style
module-attribute
¶
Bright white style for data values and code output.
primary_style
module-attribute
¶
Primary magenta theme style for general branded elements.
accent_style
module-attribute
¶
Bright magenta accent style for highlights and emphasis.
muted_style
module-attribute
¶
Dim magenta style for subdued or secondary themed text.
print_success ¶
Print a success message with green checkmark.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Text to display after the green checkmark symbol. |
required |
print_error ¶
Print an error message with red X mark.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Text to display after the red X mark symbol. |
required |
print_warning ¶
Print a warning message with yellow warning symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Text to display after the yellow warning symbol. |
required |
print_info ¶
Print an info message with blue info symbol.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Text to display after the blue info symbol. |
required |
print_progress ¶
Print a progress/status message with purple dots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Status text to display after the purple dots symbol. |
required |
print_header ¶
Print a main header with decorative purple borders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Header text displayed between the decorative border symbols. |
required |
Source code in t3api_utils/style/messages.py
print_subheader ¶
Print a section subheader with decorative purple borders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Subheader text displayed between the decorative border symbols. |
required |
Source code in t3api_utils/style/messages.py
print_menu_item ¶
Print a numbered menu item with purple styling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number
|
int
|
Menu item number displayed as the selection index. |
required |
text
|
str
|
Description text displayed after the number. |
required |
Source code in t3api_utils/style/messages.py
print_file_path ¶
Print a file path with cyan highlighting.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Any
|
File or directory path to display with cyan styling. |
required |
print_technical ¶
Print technical information in dim text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
info
|
str
|
Technical detail text rendered in dim styling. |
required |
print_data ¶
Print data/code in bright white.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
str
|
Data or code content displayed in bright white styling. |
required |
print_labeled_info ¶
Print labeled information with purple label and white value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label
|
str
|
Descriptive label rendered in magenta, followed by a colon. |
required |
value
|
Any
|
Associated value rendered in bright white after the label. |
required |
Source code in t3api_utils/style/messages.py
print_state_info ¶
Print current state information with purple styling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state_items
|
list[str]
|
List of state descriptor strings joined with pipe separators. No output is produced if the list is empty. |
required |