ORIONIS API REFERENCE

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)

View In Hierarchy

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
strThe ANSI escape code string for the selected color or style.
Constant BG_ERROR Background color for error messages.
Constant BG_FAIL Background color for failure messages.
Constant BG_INFO Background color for informational messages.
Constant BG_SUCCESS Background color for success messages.
Constant BG_WARNING 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 Bold text style.
Constant TEXT_BOLD_ERROR Bold foreground color for error messages.
Constant TEXT_BOLD_INFO Bold foreground color for informational messages.
Constant TEXT_BOLD_MUTED Bold foreground color for muted (gray) text.
Constant TEXT_BOLD_SUCCESS Bold foreground color for success messages.
Constant TEXT_BOLD_WARNING Bold foreground color for warning messages.
Constant TEXT_BOLD_WHITE Bold foreground color for white text.
Constant TEXT_ERROR Foreground color for error messages.
Constant TEXT_INFO Foreground color for informational messages.
Constant TEXT_MUTED Foreground color for muted (gray) text.
Constant TEXT_STYLE_UNDERLINE Underlined text style.
Constant TEXT_SUCCESS Foreground color for success messages.
Constant TEXT_WARNING Foreground color for warning messages.
Constant TEXT_WHITE Foreground color for white text.
BG_ERROR: str = (source)

Background color for error messages.

Value
'\x1b[41m'

Background color for failure messages.

Value
'\x1b[48;5;166m'

Background color for informational messages.

Value
'\x1b[44m'
BG_SUCCESS: str = (source)

Background color for success messages.

Value
'\x1b[42m'
BG_WARNING: str = (source)

Background color for warning messages.

Value
'\x1b[43m'

Foreground color for cyan text.

Value
'\x1b[36m'

Reset all colors and styles to default.

Value
'\x1b[0m'

Dimmed foreground text style.

Value
'\x1b[2m'

Italicized foreground text style.

Value
'\x1b[3m'

Foreground color for magenta text.

Value
'\x1b[35m'
TEXT_BOLD: str = (source)

Bold text style.

Value
'\x1b[1m'
TEXT_BOLD_ERROR: str = (source)

Bold foreground color for error messages.

Value
'\x1b[1;91m'
TEXT_BOLD_INFO: str = (source)

Bold foreground color for informational messages.

Value
'\x1b[1;34m'
TEXT_BOLD_MUTED: str = (source)

Bold foreground color for muted (gray) text.

Value
'\x1b[1;90m'
TEXT_BOLD_SUCCESS: str = (source)

Bold foreground color for success messages.

Value
'\x1b[1;32m'
TEXT_BOLD_WARNING: str = (source)

Bold foreground color for warning messages.

Value
'\x1b[1;33m'
TEXT_BOLD_WHITE: str = (source)

Bold foreground color for white text.

Value
'\x1b[1;97m'
TEXT_ERROR: str = (source)

Foreground color for error messages.

Value
'\x1b[91m'
TEXT_INFO: str = (source)

Foreground color for informational messages.

Value
'\x1b[34m'
TEXT_MUTED: str = (source)

Foreground color for muted (gray) text.

Value
'\x1b[90m'
TEXT_STYLE_UNDERLINE: str = (source)

Underlined text style.

Value
'\x1b[4m'
TEXT_SUCCESS: str = (source)

Foreground color for success messages.

Value
'\x1b[32m'
TEXT_WARNING: str = (source)

Foreground color for warning messages.

Value
'\x1b[33m'
TEXT_WHITE: str = (source)

Foreground color for white text.

Value
'\x1b[97m'