Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

platinfo: A small library from getting information on the current platform

Project description

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:
- relatively short
- readable (as much as possible making matching the given name to an
actually machine self-explanatory)
- be capable enough to produce all names needed to distinguish all
platform-specific application builds
- generally safe for usage in filenames
- not ugly (e.g. "MSWin32" is ugly)

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
platinfo-0.14.1.zip (13.9 kB) Copy SHA256 hash SHA256 Source None Apr 9, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page