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 | __force |
Terminate the program if the force exit flag is set. |
| Method | __init__ |
Initialize the VarDumper instance with default configuration. |
| Method | __make |
Create and return a configured Console instance for output formatting. |
| Method | __make |
Create a Rich Panel with a pretty-printed representation of the value. |
| Method | __print |
Print a blank line to the console if requested. |
| Method | __redirect |
Redirect standard output and error streams temporarily. |
| Method | __resolve |
Resolve and set the caller's module path and line number. |
| Method | __store |
Clone the given value using deep copy and store its type information. |
| Method | expand |
Set whether to expand all nested data structures. |
| Method | force |
Set whether to terminate the program after dumping. |
| Method | line |
Set the line number for header display. |
| Method | max |
Set the maximum depth for nested structures. |
| Method | module |
Set the module path to display in the header. |
| Method | print |
Print the stored values in a formatted manner and return HTML output. |
| Method | redirect |
Set whether to temporarily restore stdout/stderr during output. |
| Method | show |
Set whether to display an index number for each argument. |
| Method | show |
Set whether to display the type of each argument in the panel title. |
| Method | to |
Generate the HTML representation of the dumped output. |
| Method | value |
Add a value to be dumped. |
| Method | values |
Receive and store multiple values to be dumped. |
| Instance Variable | __args |
Undocumented |
| Instance Variable | __console |
Undocumented |
| Instance Variable | __expand |
Undocumented |
| Instance Variable | __force |
Undocumented |
| Instance Variable | __last |
Undocumented |
| Instance Variable | __line |
Undocumented |
| Instance Variable | __max |
Undocumented |
| Instance Variable | __module |
Undocumented |
| Instance Variable | __original |
Undocumented |
| Instance Variable | __original |
Undocumented |
| Instance Variable | __redirect |
Undocumented |
| Instance Variable | __redirected |
Undocumented |
| Instance Variable | __show |
Undocumented |
| Instance Variable | __show |
Undocumented |
| Instance Variable | __show |
Undocumented |
Terminate the program if the force exit flag is set.
If the internal force exit flag is True, terminate the program using os._exit(1) or sys.exit(1) depending on the redirect output flag.
| Returns | |
None | This method does not return any value. |
Initialize the VarDumper instance with default configuration.
Sets up internal state for variable dumping, including display options, output formatting, and argument storage.
| Returns | |
None | This method does not return a value. |
Create and return a configured Console instance for output formatting.
| Returns | |
Console | A Console object with a custom theme for variable dumping and recording enabled. |
Create a Rich Panel with a pretty-printed representation of the value.
Notes
Uses internal configuration for indentation, expansion, and panel width.
| Parameters | |
value:type[T] | Object to be pretty-printed inside the panel. |
_type:str | Type name of the value for display in the panel title. |
| Returns | |
Panel | Rich Panel object displaying the formatted content. |
Redirect standard output and error streams temporarily.
If output redirection is enabled and not already redirected, this method saves the current stdout and stderr, then redirects them to the original system streams. If already redirected, it restores stdout and stderr to their previously saved values.
| Returns | |
None | This method does not return a value. |
Resolve and set the caller's module path and line number.
If the internal module path or line number is not set, this method uses the inspect module to retrieve the caller's frame and extract the relevant information. If the frame is unavailable, it sets default values.
| Returns | |
None | This method does not return any value. |
Print the stored values in a formatted manner and return HTML output.
Optionally inserts a blank line before and after the output, resolves caller information, prints a header with module and line details, and displays each stored value in a styled panel. Handles optional output redirection and program termination.
| Parameters | |
insertbool, optional | If True, insert a blank line before and after the output. Default is False. |
| Returns | |
None | This method does not return any value. |
Set whether to temporarily restore stdout/stderr during output.
| Parameters | |
redirect:bool, optional | If True, temporarily restores stdout and stderr to their original streams during output. Default is True. |
| Returns | |
VarDumper | The current instance with the updated redirect output setting. |
| Raises | |
TypeError | If 'redirect' is not of type bool. |
Generate the HTML representation of the dumped output.
Notes
Calls the print method to prepare the output and then exports it with a light terminal palette and inline styles, so the dump is readable and self-contained when embedded in a page. The module and line header is omitted from the HTML output.
| Parameters | |
insertbool, optional | If True, insert a blank line before and after the output. Default is False. |
| Returns | |
str | HTML fragment containing the formatted dumped output. |