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
Ensure an uploaded image satisfies the given dimension constraints.
| Function | _parse |
Normalize a ratio constraint into a floating point value. |
Normalize a ratio constraint into a floating point value.
| Parameters | |
raw:object | Ratio expressed as a number or as a "width/height" string. |
name:str | Constraint name reported when the value cannot be parsed. |
| Returns | |
float | None | Parsed ratio, or None when no constraint was supplied. |
| Raises | |
ValueError | If the value cannot be parsed as a finite number or fraction. |