platinfo: A small library from getting information on the current platform
This module determines and returns standardized names for platforms, where the “standard” is Trent Mick’s reasoning :) from experience building ActivePython on a fairly large number of platforms.
The driving goal is to provide platform names that are:
A simple usage example:
>>> from platinfo import PlatInfo >>> pi = PlatInfo() >>> pi.os 'macosx' >>> pi.arch 'x86' >>> pi.name() 'macosx-x86'
Currently this has fairly wide OS coverage (Windows, Linux, Mac, Solaris, HP-UX, AIX, OpenBSD).