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
| Function | is |
Report whether a value behaves like an uploaded file. |
| Function | measure |
Compute the comparable size of a value. |
| Function | read |
Read the whole content of an uploaded file. |
| Constant | _FILE |
Undocumented |
| Constant | KILOBYTE |
Undocumented |
Compute the comparable size of a value.
Numbers are compared by their own magnitude, strings and collections by their length, and uploaded files by their size in kilobytes.
| Parameters | |
value:object | Value whose size is required. |
| Returns | |
float | None | Comparable size, or None when the value has no measurable size. |
Read the whole content of an uploaded file.
| Parameters | |
value:object | Uploaded file to read. |
| Returns | |
bytes | None | Raw content, or None when the value is not a readable file. |