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.

module documentation

Undocumented

Class MultipartStreamParser Parse a multipart byte stream into form fields and uploaded files.
Async Function complete_in_thread Run a blocking function in a worker thread without losing cancellation state.
Constant _BYTE_DASH Undocumented
Constant _CHUNK_SIZE Undocumented
Constant _DELIMITER_INVALID Undocumented
Constant _MAX_BOUNDARY_SIZE Undocumented
Constant _STATE_FINISHED Undocumented
Constant _STATE_READ_BODY Undocumented
Constant _STATE_READ_HEADERS Undocumented
Constant _STATE_SEARCH_BOUNDARY Undocumented
async def complete_in_thread(function: Callable[..., T], *args: object) -> T: (source)

Run a blocking function in a worker thread without losing cancellation state.

Parameters
function:Callable[..., T]Function to execute in a worker thread.
*args:objectPositional arguments passed to the function.
Returns
TThe result returned by the function.
Raises
CancelledErrorAfter the worker finishes, preserving the first cancellation even if further cancellations arrive while waiting for safe resource cleanup.
_BYTE_DASH: int = (source)

Undocumented

Value
ord('-')
_CHUNK_SIZE = (source)

Undocumented

Value
64 * 1024
_DELIMITER_INVALID: int = (source)

Undocumented

Value
-2
_MAX_BOUNDARY_SIZE: int = (source)

Undocumented

Value
70
_STATE_FINISHED: int = (source)

Undocumented

Value
3
_STATE_READ_BODY: int = (source)

Undocumented

Value
2
_STATE_READ_HEADERS: int = (source)

Undocumented

Value
1
_STATE_SEARCH_BOUNDARY: int = (source)

Undocumented

Value
0