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
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. |
Initialize an empty transport slot and its first-use lock.
| Returns | |
None | Prepare the slot for lazy transport initialization. |
Return the reserved connection credits to the pool budget.
| Returns | |
None | Restore the slot's connection allowance to its original budget. |
Await the release of an initialized transport exactly once.
| Returns | |
None | Return 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:Factory | Factory that initializes a transport on its owning loop. |
budget:_PoolBudget | Shared connection budget for the loop. |
charge:int | Physical connection credits reserved for this pool. |
maximum:int | Maximum credits available to concurrent pools. |
| Returns | |
IHttpTransport | Transport initialized on the owning event loop. |