import platform print(platform.system()) # e.g. Windows, Linux, Darwin print(platform.architecture()) # e.g. 64-bit print(platform.machine()) # e.g. x86_64 print(platform.node()) # Hostname print(platform.processor()) # e.g. i386