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.

module documentation

Calculate worker counts from the current process and CPU environment.

Function _get_cpu_count Return the logical CPU count available to this process.
Constant _BYTES_PER_GB Bytes per gb used by workers.
Constant _CPU_COUNT Store the process resource limits for the lifetime of this process.
Constant _DEFAULT_RAM_PER_WORKER_BYTES Default ram per worker bytes used by workers.
Constant _ERR_INVALID_RAM_PER_WORKER RAM per worker must be a finite positive value..
Constant _ERR_RAM_PER_WORKER_TOO_SMALL RAM per worker must be at least one byte..
Constant _RAM_TOTAL_BYTES Ram total bytes used by workers.
def _get_cpu_count() -> int: (source)

Return the logical CPU count available to this process.

Returns
intLogical CPU count available to this process.
_BYTES_PER_GB: int = (source)

Bytes per gb used by workers.

Value
1 << 30
_CPU_COUNT: int = (source)

Store the process resource limits for the lifetime of this process.

Value
_get_cpu_count()
_DEFAULT_RAM_PER_WORKER_BYTES: int = (source)

Default ram per worker bytes used by workers.

Value
1 << 29
_ERR_INVALID_RAM_PER_WORKER: str = (source)

RAM per worker must be a finite positive value..

Value
'RAM per worker must be a finite positive value.'
_ERR_RAM_PER_WORKER_TOO_SMALL: str = (source)

RAM per worker must be at least one byte..

Value
'RAM per worker must be at least one byte.'
_RAM_TOTAL_BYTES: int = (source)

Ram total bytes used by workers.

Value
psutil.virtual_memory().total