lionshead package

Determine more specific platform information than that which is available with distutils.util.get_platform().

lionshead.get_platform_stability_string()[source]

Returns the platform’s stability as a string.

lionshead.get_specific_platform()[source]

Get the specific platform in a Pythonic representation. The return value is a 4-namedtuple with members:

  • dist - OS distribution (string)
  • major_vers - Distribution major version (string)
  • full_vers - Distribution full version (string)
  • stability - Stability (stable or unstable)

Strings are not “sanitized” to remove characters considered invalid in platform strings such as in distutils.util.get_platform().

If the specific platform cannot be determined, None is returned.

lionshead.get_specific_platform_string()[source]

Returns the specific platform as a normalized string.