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 _TransportSlot: (source)

Constructor: _TransportSlot()

View In Hierarchy

Publish one successfully initialized transport, including on cancellation.

Concurrent first sends wait for the same transport initialization.

Method __init__ Initialize an empty transport slot and its first-use lock.
Method _refund Return the reserved connection credits to the pool budget.
Async Method close Await the release of an initialized transport exactly once.
Async Method get Serialize first use and allow another attempt after factory failure.
Instance Variable budget Source of credits to refund when initialization fails or the transport closes.
Instance Variable charge Number of connection credits reserved for the transport.
Instance Variable lock Guard against concurrent first-use factories.
Instance Variable transport Transport available for sends after the factory succeeds.
def __init__(self): (source)

Initialize an empty transport slot and its first-use lock.

Returns
NonePrepare the slot for lazy transport initialization.
def _refund(self): (source)

Return the reserved connection credits to the pool budget.

Returns
NoneRestore the slot's connection allowance to its original budget.
async def close(self): (source)

Await the release of an initialized transport exactly once.

Returns
NoneReturn all connection credits after closing the transport.
async def get(self, factory: Factory, budget: _PoolBudget, charge: int, maximum: int) -> IHttpTransport: (source)

Serialize first use and allow another attempt after factory failure.

Parameters
factory:FactoryFactory that initializes a transport on its owning loop.
budget:_PoolBudgetShared connection budget for the loop.
charge:intPhysical connection credits reserved for this pool.
maximum:intMaximum credits available to concurrent pools.
Returns
IHttpTransportTransport initialized on the owning event loop.

Source of credits to refund when initialization fails or the transport closes.

Number of connection credits reserved for the transport.

Guard against concurrent first-use factories.

Transport available for sends after the factory succeeds.