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

Parse a multipart byte stream into form fields and uploaded files.

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 Byte values for RFC 2046 protocol characters.
Constant _CHUNK_SIZE Chunk size used by stream_parser.
Constant _CLEANUP_PHASE Failure phase shared by multipart upload cleanup operations.
Constant _DEFAULT_LIMITS Default limits used by stream_parser.
Constant _DELIMITER_INVALID Delimiter invalid used by stream_parser.
Constant _MAX_BOUNDARY_SIZE Max boundary size value used by stream_parser.
Constant _STATE_FINISHED State finished value used by stream_parser.
Constant _STATE_READ_BODY State read body value used by stream_parser.
Constant _STATE_READ_HEADERS State read headers value used by stream_parser.
Constant _STATE_SEARCH_BOUNDARY Integer constants for the parser state machine.
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:collections.abc.Callable[..., T]Function to execute in a worker thread.
*args:objectPositional arguments passed to the function.
Returns
TThe result returned by the function.
Raises
asyncio.CancelledErrorAfter the worker finishes, preserving the first cancellation even if further cancellations arrive while waiting for safe resource cleanup.
_BYTE_DASH: int = (source)

Byte values for RFC 2046 protocol characters.

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

Chunk size used by stream_parser.

Value
64 * 1024
_CLEANUP_PHASE: str = (source)

Failure phase shared by multipart upload cleanup operations.

Value
'payload.cleanup'
_DEFAULT_LIMITS = (source)

Default limits used by stream_parser.

Value
{item.name: item.metadata['default'] for item in fields(HTTPBodyLimits)}
_DELIMITER_INVALID: int = (source)

Delimiter invalid used by stream_parser.

Value
-2
_MAX_BOUNDARY_SIZE: int = (source)

Max boundary size value used by stream_parser.

Value
70
_STATE_FINISHED: int = (source)

State finished value used by stream_parser.

Value
3
_STATE_READ_BODY: int = (source)

State read body value used by stream_parser.

Value
2
_STATE_READ_HEADERS: int = (source)

State read headers value used by stream_parser.

Value
1
_STATE_SEARCH_BOUNDARY: int = (source)

Integer constants for the parser state machine.

Value
0