Skip to main content

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

Project details


Download files

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

Source Distribution

platinfo-0.15.0.zip (31.0 kB view details)

Uploaded Source

File details

Details for the file platinfo-0.15.0.zip.

File metadata

  • Download URL: platinfo-0.15.0.zip
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for platinfo-0.15.0.zip
Algorithm Hash digest
SHA256 5b0474a0751b902bd79f43ab8b39bfb0f8ebcee5f30f3bdf488b2c92158a00b2
MD5 626177595e9364d2750a34f8e771ed2f
BLAKE2b-256 ebcd50060b91864b8a00a4966c2b99ad3e1cf7132857f3619e2b44a6b1c8ca68

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page