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

Manage and execute a collection of background tasks sequentially.

This class holds an ordered list of BackgroundTask instances and runs them one after another when invoked.

Async Method __call__ Execute all background tasks sequentially.
Method __init__ Initialize BackgroundTasks with an optional sequence of tasks.
Method addTask Add a new BackgroundTask to the task list.
Class Variable __slots__ Undocumented
Instance Variable tasks Undocumented

Inherited from BackgroundTask:

Async Method run Run the background task.
Instance Variable __args Undocumented
Instance Variable __func Undocumented
Instance Variable __is_async Undocumented
Instance Variable __kwargs Undocumented
async def __call__(self): (source)

Execute all background tasks sequentially.

Returns
NoneThis method does not return a value.
def __init__(self, tasks: Sequence[BackgroundTask] | None = None): (source)

Initialize BackgroundTasks with an optional sequence of tasks.

Parameters
tasks:Sequence[BackgroundTask] | NoneOptional sequence of BackgroundTask instances to initialize with.
Returns
NoneThis method does not return a value.
def addTask(self, func: Callable, *args: object, **kwargs: object): (source)

Add a new BackgroundTask to the task list.

Parameters
func:CallableThe function to be executed as a background task.
*args:objectPositional arguments to pass to the function.
**kwargs:objectKeyword arguments to pass to the function.
Returns
NoneThis method does not return a value.