THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class ANSIColors(Enum): (source)
Define ANSI escape codes for styling terminal text and backgrounds.
This Enum provides ANSI escape codes for foreground and background colors, as well as text styles such as bold, underline, dim, italic, and magenta. Use these codes to enhance console output readability and emphasis.
| Returns | |
str | The ANSI escape code string for the selected color or style. |
| Constant | BG |
Background color for error messages. |
| Constant | BG |
Background color for failure messages. |
| Constant | BG |
Background color for informational messages. |
| Constant | BG |
Background color for success messages. |
| Constant | BG |
Background color for warning messages. |
| Constant | CYAN |
Foreground color for cyan text. |
| Constant | DEFAULT |
Reset all colors and styles to default. |
| Constant | DIM |
Dimmed foreground text style. |
| Constant | ITALIC |
Italicized foreground text style. |
| Constant | MAGENTA |
Foreground color for magenta text. |
| Constant | TEXT |
Bold text style. |
| Constant | TEXT |
Bold foreground color for error messages. |
| Constant | TEXT |
Bold foreground color for informational messages. |
| Constant | TEXT |
Bold foreground color for muted (gray) text. |
| Constant | TEXT |
Bold foreground color for success messages. |
| Constant | TEXT |
Bold foreground color for warning messages. |
| Constant | TEXT |
Bold foreground color for white text. |
| Constant | TEXT |
Foreground color for error messages. |
| Constant | TEXT |
Foreground color for informational messages. |
| Constant | TEXT |
Foreground color for muted (gray) text. |
| Constant | TEXT |
Underlined text style. |
| Constant | TEXT |
Foreground color for success messages. |
| Constant | TEXT |
Foreground color for warning messages. |
| Constant | TEXT |
Foreground color for white text. |