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

class _PoolBudget: (source)

Constructor: _PoolBudget()

View In Hierarchy

Account for open pools including idle keep-alive and in-progress closes.

Credits return after a physical pool closes or its initialization fails.

Method __init__ Initialize an empty connection budget and FIFO wait queue.
Method _wake Grant waiting requests the credits available in FIFO order.
Async Method acquire Grant a temporary pool one socket or a shared pool its full ceiling.
Method release Return the budget only after initialization failure or physical close.
Instance Variable used Connection credits currently held by pools on this loop.
Instance Variable waiting Pending allocations in FIFO order with their limits and wake-up futures.
def __init__(self): (source)

Initialize an empty connection budget and FIFO wait queue.

Returns
NoneStart with all connection credits available.
def _wake(self): (source)

Grant waiting requests the credits available in FIFO order.

Returns
NoneNotify each waiter whose requested credits now fit.
async def acquire(self, charge: int, maximum: int): (source)

Grant a temporary pool one socket or a shared pool its full ceiling.

Parameters
charge:intPhysical connection credits reserved for this pool.
maximum:intMaximum credits available to concurrent pools.
Returns
NoneResume when the requested credits have been assigned to the pool.
def release(self, charge: int): (source)

Return the budget only after initialization failure or physical close.

Parameters
charge:intPhysical connection credits reserved for this pool.
Returns
NoneMake the released credits available to waiting pools.

Connection credits currently held by pools on this loop.

Pending allocations in FIFO order with their limits and wake-up futures.