Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

trentm/platinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

* * *
WARNING: This is platinfo 2.x (installs as 'platinfo2') . This branch is
currently unstable. Use platinfo 0.x for something more stable for now.
* * *

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

About

Automatically exported from code.google.com/p/platinfo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages