OS
QuantConnect.OS
Bases: Object
Operating systems class for managing anything that is operation system specific.
IS_LINUX
IS_LINUX: bool
Global Flag :: Operating System
IS_WINDOWS
IS_WINDOWS: bool
Global Flag :: Operating System
PATH_SEPARATION
PATH_SEPARATION: str
Character Separating directories in this OS:
DRIVE_SPACE_REMAINING
DRIVE_SPACE_REMAINING: int
Get the drive space remaining on windows and linux in MB
DRIVE_SPACE_USED
DRIVE_SPACE_USED: int
Get the drive space remaining on windows and linux in MB
DRIVE_TOTAL_SPACE
DRIVE_TOTAL_SPACE: int
Total space on the drive
APPLICATION_MEMORY_USED
APPLICATION_MEMORY_USED: int
Gets the amount of private memory allocated for the current process (includes both managed and unmanaged memory).
TOTAL_PHYSICAL_MEMORY_USED
TOTAL_PHYSICAL_MEMORY_USED: int
Get the RAM used on the machine:
CPU_USAGE
CPU_USAGE: float
Total CPU usage as a percentage
dispose
dispose() -> None
Disposes of the OS internal resources
get_server_statistics
get_server_statistics() -> Dictionary[str, str]
Gets the statistics of the machine, including CPU% and RAM
initialize
initialize() -> None
Initializes the OS internal resources