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.
Configure finite request, buffering, multipart and concurrency budgets.
Read environment defaults when each instance is created. Explicit constructor values take precedence and every budget remains immutable after validation.
| Method | __post |
Validate finite byte budgets and nonnegative multipart counts. |
| Instance Variable | max |
Maximum transport bytes consumed for one request, including framing. Defaults to 16 MiB from HTTP_MAX_BODY_SIZE. |
| Instance Variable | max |
Maximum bytes materialized by body(), JSON and other buffered parsers. Defaults to 2 MiB from HTTP_MAX_BUFFER_SIZE. |
| Instance Variable | max |
Maximum active HTTP requests per kernel, including response delivery. Defaults to 128 from HTTP_MAX_CONCURRENT_REQUESTS. |
| Instance Variable | max |
Maximum bytes of one multipart text field before decoding. Defaults to 1 MiB from HTTP_MAX_FIELD_SIZE. |
| Instance Variable | max |
Maximum multipart text field count; zero rejects all text fields. Defaults to 128 from HTTP_MAX_FIELDS. |
| Instance Variable | max |
Maximum multipart file count; zero rejects all files. Defaults to 32 from HTTP_MAX_FILES. |
| Instance Variable | max |
Maximum MIME header bytes per multipart part. Defaults to 16 KiB from HTTP_MAX_PART_HEADER_SIZE. |
| Instance Variable | max |
Budget for retained multipart field strings and in-memory file payloads. Transport buffers, object metadata and temporary copies are additional. Defaults to 8 MiB from HTTP_MAX_MULTIPART_MEMORY_SIZE. |
| Instance Variable | max |
Maximum bytes of one multipart file or field. Defaults to 10 MiB from HTTP_MAX_PART_SIZE. |
| Instance Variable | memory |
Maximum file payload bytes retained before spooling to disk. Defaults to 256 KiB from HTTP_UPLOAD_MEMORY_THRESHOLD. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | __init__ |
Initialize declared fields and public extra attributes. |
| Method | _dynamic |
Return public instance attributes that are not declared fields. |
| Method | _validate |
Validate names and storage for public extra attributes. |
| Method | get |
Describe declared fields and, optionally, dynamic attributes. |
| Method | to |
Return a recursively copied dictionary of declared and extra values. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Class Variable | _orionis |
Cache declared fields and normalized type names for each concrete class. |
Validate finite byte budgets and nonnegative multipart counts.
| Returns | |
None | Validate limits before the HTTP kernel snapshots them. |
| Raises | |
TypeError | If a limit is not an integer or is a boolean. |
ValueError | If a byte or concurrency limit is nonpositive, or a count is negative. |
Maximum transport bytes consumed for one request, including framing. Defaults to 16 MiB from HTTP_MAX_BODY_SIZE.
Maximum bytes materialized by body(), JSON and other buffered parsers. Defaults to 2 MiB from HTTP_MAX_BUFFER_SIZE.
Maximum active HTTP requests per kernel, including response delivery. Defaults to 128 from HTTP_MAX_CONCURRENT_REQUESTS.
Maximum bytes of one multipart text field before decoding. Defaults to 1 MiB from HTTP_MAX_FIELD_SIZE.
Maximum multipart text field count; zero rejects all text fields. Defaults to 128 from HTTP_MAX_FIELDS.
Budget for retained multipart field strings and in-memory file payloads. Transport buffers, object metadata and temporary copies are additional. Defaults to 8 MiB from HTTP_MAX_MULTIPART_MEMORY_SIZE.