Module platform

Module platform 

Source
Expand description

Platform detection utilities.

Enums§

Platform
Supported platforms.

Functions§

current_platform
Get the current platform, if supported.
get_arch
Get the CPU architecture.
get_wsl_version
Get the WSL version (1 or 2+) if running in WSL. Returns None if not running in WSL.
is_linux
Check if running on Linux.
is_macos
Check if running on macOS.