Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

Release History

This version
History Node

0.15.0

History Node

0.14.5

History Node

0.14.4

History Node

0.14.3

History Node

0.14.2

History Node

0.14.1

History Node

0.14.0

History Node

0.13.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
platinfo-0.15.0.zip (31.0 kB) Copy SHA256 Checksum SHA256 Source Apr 29, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting