head.daveops.net

Snippets for yer computer needs

Python - platform

Python - platform

@Python

Examples

# Get machine type
platform.machine()
# Determine system type (e.g. Linux, Windows)
platform.system()
# Get Linux distro
platform.linux_distribution()