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.

class documentation

Undocumented

Class Method calculate Calculate the recommended maximum number of worker processes.
Class Method setRamPerWorker Update the RAM allocation per worker.

Calculate the recommended maximum number of worker processes.

Notes

The calculation considers both CPU core count and available RAM. Ensures resources are not overcommitted. No instantiation is required.

Parameters
None
Returns
intThe 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.
def setRamPerWorker(cls, ram_per_worker: float): (source)

Update the RAM allocation per worker.

Notes

Changing the RAM allocation per worker affects every subsequent call to calculate(). No instantiation is required.

Parameters
ram_per_worker:floatNew amount of RAM in GB to allocate for each worker.
Returns
NoneThis method updates the class-level RAM allocation and returns nothing.
Raises
ValueErrorIf the budget is not finite, positive, or at least one byte.