paralleldomain.utilities.os

is_container()

Returns True if process is running inside a (Docker) container.

Return type

bool

cpu_count()

Returns CPU count. If process is running inside a (Docker) container, it returns the allocated virtual CPU count.

Return type

int