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.
Undocumented
| Method | __get |
Return the current date and time. |
| Method | __get |
Return current date and time formatted with muted color. |
| Method | __print |
Print a message with the specified text color. |
| Method | __print |
Print a formatted message with a background color. |
| Method | anticipate |
Provide autocomplete suggestions based on user input. |
| Method | ask |
Prompt user for input and return the response. |
| Method | choice |
Prompt user to select an option from a list. |
| Method | clear |
Clear the console screen. |
| Method | clear |
Clear the current line in the console. |
| Method | confirm |
Ask for confirmation and return True or False. |
| Method | dump |
Dump variable information to the console with formatting options. |
| Method | error |
Print an error message with a red background. |
| Method | exception |
Print exception details and stack trace. |
| Method | exit |
Exit the program with an error message. |
| Method | exit |
Exit the program with a success message. |
| Method | fail |
Print a failure message with a red background. |
| Method | info |
Print an informational message with a blue background. |
| Method | line |
Print a horizontal line in the console. |
| Method | new |
Print multiple new lines. |
| Method | secret |
Prompt for hidden input using the provided question. |
| Async Method | sleep |
Asynchronously sleep for a specified number of seconds. |
| Method | success |
Print a success message with a green background. |
| Method | table |
Print a formatted table with bold headers and box-drawing borders. |
| Method | text |
Print an error message in red. |
| Method | text |
Print a bold error message in red. |
| Method | text |
Print an informational message in blue. |
| Method | text |
Print a bold informational message in blue. |
| Method | text |
Print a muted (gray) message. |
| Method | text |
Print a bold muted (gray) message. |
| Method | text |
Print a success message in green. |
| Method | text |
Print a bold success message in green. |
| Method | text |
Print an underlined message. |
| Method | text |
Print a warning message in yellow. |
| Method | text |
Print a bold warning message in yellow. |
| Method | warning |
Print a warning message with a yellow background. |
| Method | write |
Write values to the output stream and move to the next line. |
| Method | write |
Print a message and move to the next line. |
| Property | progress |
Get a new instance of the ProgressBar class. |
Return current date and time formatted with muted color.
| Returns | |
str | Formatted timestamp string in muted color. |
Print a message with the specified text color.
| Parameters | |
message:str | Message to print. |
textANSIColors | Text color to use. |
| Returns | |
None | This method does not return any value. |
str, bg_color: ANSIColors, message: str, *, timestamp: bool):
(source)
¶
Print a formatted message with a background color.
| Parameters | |
label:str | Label to display (e.g., 'SUCCESS', 'INFO'). |
bgANSIColors | Background color to use. |
message:str | Message to print. |
timestamp:bool | Whether to include a timestamp. |
| Returns | |
None | This method does not return any value. |
Provide autocomplete suggestions based on user input.
Notes
Match the beginning of user input with available options. Return the first match, or default/user input if no match.
| Parameters | |
question:str | Prompt for the user. |
options:list of str | List of possible autocomplete options. |
default:str, optional | Default value if no match is found. Defaults to None. |
| Returns | |
str | Chosen option if matched, otherwise default or user input. |
Prompt user to select an option from a list.
Notes
Display a numbered list of choices and prompt the user to select one. Re-prompt until a valid selection is made.
| Parameters | |
question:str | Prompt message for the user. |
choices:list of str | List of available choices. |
defaultint, optional | Index of the default choice (zero-based). Default is 0. |
| Returns | |
str | Selected choice from the list. |
| Raises | |
ValueError | If choices is empty or default_index is out of range. |
Clear the console screen.
Notes
Emite códigos de escape ANSI para limpiar la pantalla y mover el cursor al origen, evitando el overhead de lanzar un subproceso.
| Returns | |
None | This method does not return any value. |
Clear the current line in the console.
Notes
Move the cursor to the start of the line and overwrite it with a space. Return the cursor to the beginning.
| Returns | |
None | This method does not return any value. |
type[ Any], show_types: bool = True, show_index: bool = False, expand_all: bool = True, max_depth: int | None = None, module_path: str | None = None, line_number: int | None = None, force_exit: bool = False, redirect_output: bool = False, insert_line: bool = False):
(source)
¶
Dump variable information to the console with formatting options.
| Parameters | |
*args:Any | Variables to be dumped. |
showbool, optional | Show variable types (default is True). |
showbool, optional | Show index for collections (default is False). |
expandbool, optional | Expand all nested structures (default is True). |
maxint or None, optional | Maximum depth to expand (default is None). |
modulestr or None, optional | Path of the module (default is None). |
lineint or None, optional | Line number for context (default is None). |
forcebool, optional | Force program exit after dump (default is False). |
redirectbool, optional | Redirect output to file or stream (default is False). |
insertbool, optional | Insert a line after output (default is False). |
| Returns | |
None | This method does not return any value. |
Print a horizontal line in the console.
Notes
Outputs a newline character as a visual separator.
| Returns | |
None | This method does not return any value. |
Print multiple new lines.
| Parameters | |
count:int, optional | Number of new lines to print (default is 1). |
| Returns | |
None | This method does not return any value. |
| Raises | |
ValueError | If count is less than or equal to 0. |
Print a formatted table with bold headers and box-drawing borders.
Notes
Adjust column widths dynamically and use bold for headers.
| Parameters | |
headers:list of str | Column headers for the table. |
rows:list of list of str | Table rows, each as a list of column values. |
| Returns | |
None | This method does not return any value. |
| Raises | |
ValueError | If headers or rows are empty. |
object, sep: str | None = ' ', end: str | None = '\n', file: SupportsWrite[ str] | None = None, flush: bool = False):
(source)
¶
Write values to the output stream and move to the next line.
| Parameters | |
*values:object | Values to print. |
sep:str | None, optional | Separator between values. Defaults to " ". |
end:str | None, optional | String appended after the last value.. |
file:SupportsWrite[str] | None, optional | Output stream. Defaults to sys.stdout. |
flush:bool, optional | Whether to forcibly flush the stream. Defaults to False. |
| Returns | |
None | This method prints values and returns None. |
Get a new instance of the ProgressBar class.
| Returns | |
IProgressBar | A new instance of the ProgressBar class. |