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

Undocumented

Async Method __acquireDatabaseLock Acquire the row-based database lock, polling until available.
Async Method __aenter__ Acquire the lock before entering the protected block.
Async Method __aexit__ Release the lock after leaving the protected block.
Method __init__ Initialize the lock for key on backend.
Class Variable __slots__ Undocumented
Instance Variable _backend Undocumented
Instance Variable _impl Undocumented
Instance Variable _key Undocumented
Instance Variable _owner Undocumented
Instance Variable _timeout Undocumented
async def __acquireDatabaseLock(self): (source)

Acquire the row-based database lock, polling until available.

Mirrors the blocking semantics of the other branches: it waits until the lock is free, raising once timeout elapses.

Returns
NoneThis method does not return a value.
Raises
TimeoutErrorIf the lock cannot be acquired before timeout elapses.
async def __aenter__(self) -> Self: (source)

Acquire the lock before entering the protected block.

Returns
SelfThis CacheLock instance.
async def __aexit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None): (source)

Release the lock after leaving the protected block.

Parameters
exc_type:type[BaseException] | NoneException type, if any.
exc_val:BaseException | NoneException instance, if any.
exc_tb:types.TracebackType | NoneTraceback object, if any.
Returns
NoneComplete the documented operation without returning a value.
def __init__(self, backend: Any, key: str, timeout: float | None = None): (source)

Initialize the lock for key on backend.

Parameters
backend:AnyRaw cache backend.
key:strCache key to lock on.
timeout:float | NoneLock timeout in seconds. None means no timeout.
Returns
NoneComplete the documented operation without returning a value.
__slots__: tuple[str, ...] = (source)

Undocumented

_backend = (source)

Undocumented

_impl: asyncio.Lock | RedLock | None = (source)

Undocumented

Undocumented

Undocumented

_timeout = (source)

Undocumented