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.
class documentation
Undocumented
| Class Method | calculate |
Calculate the recommended maximum number of worker processes. |
| Class Method | set |
Update the RAM allocation per worker. |
| Class Variable | __slots__ |
Undocumented |
Calculate the recommended maximum number of worker processes.
Notes
Uses cached CPU and RAM values and a precomputed RAM budget so each invocation only needs integer arithmetic.
| Parameters | |
| Returns | |
int | The maximum number of worker processes that can be safely run in parallel, determined by the lesser of available CPU cores and memory capacity. Always returns at least 1. |
Update the RAM allocation per worker.
Notes
Changing the RAM allocation per worker affects every subsequent call to calculate(). The update is reflected immediately.
| Parameters | |
ramfloat | New amount of RAM in GB to allocate for each worker. |
| Returns | |
None | This method updates the class-level RAM allocation and returns nothing. |
| Raises | |
ValueError | If the budget is not finite, positive, or at least one byte. |