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

Per-task stack of open transactions bound to one raw connection.

Async Method __aenter__ Return the existing raw connection without acquiring another one.
Async Method __aexit__ Leave transaction control and cleanup to the owning task.
Method __init__ Bind a raw connection and root transaction to the current task.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable connection Open connection shared by all transaction levels.
Instance Variable owner Owner produced by current_task.
Instance Variable transactions Transaction scopes currently associated with the connection context.
async def __aenter__(self) -> AsyncConnection | ThreadedConnection: (source)

Return the existing raw connection without acquiring another one.

Returns
AsyncConnection | ThreadedConnectionOpen connection retained by the transaction owner.
async def __aexit__(self, *exc_info: object): (source)

Leave transaction control and cleanup to the owning task.

Parameters
*exc_info:objectException details supplied by the context manager; unused.
Returns
NoneNo return value.
def __init__(self, connection: AsyncConnection | ThreadedConnection, transaction: AsyncTransaction | ThreadedTransaction): (source)

Bind a raw connection and root transaction to the current task.

Parameters
connection:AsyncConnection | ThreadedConnectionOpen connection shared by all transaction levels.
transaction:AsyncTransaction | ThreadedTransactionRoot transaction used to initialize the stack.
Returns
NoneNo return value.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

connection = (source)

Open connection shared by all transaction levels.

Owner produced by current_task.

transactions: list[AsyncTransaction | ThreadedTransaction] = (source)

Transaction scopes currently associated with the connection context.