.. _PLATFORMSMODULE:
.. raw:: html
platformids.platforms
=====================
The *platforms* module provides the identifiers for the runtime platform as defined by
the OS and distribution.
The values are either scanned from the current platform by:
.. code-block:: python
:linenos:
from platformids.platforms import PlatformParameters
x = PlatformParameters() # creates an empty object
x.scan() # scans the platform
print(str(x)) # prints display-format, see also 'repr'
For predefined and tested platforms on *amd64* and *arm64/32* refer to the :ref:`table of standard OS
`.
For example:
* Fedora27:
.. parsed-literal::
category = posix - RTE_POSIX
ostype = linux - RTE_LINUX
dist = fedora - RTE_FEDORA
distrel = fedora27 - RTE_FEDORA27
dist-rel-name = Twenty Seven
dist-vers = [27, 0, 0]
os-vers = [4, 16, 15]
hexversion =
os-hexversion = 0
* OS-X-10.6.8 - SnowLeopard:
.. parsed-literal::
category = posix - RTE_POSIX
ostype = darwin - RTE_DARWIN
dist = osx - RTE_OSX
distrel = osx-10.6.8 - RTE_OSX1068
dist-rel-name = todo-distrelname
dist-vers = [10, 6, 8]
os-vers = [10, 8, 0]
hexversion =
os-hexversion = 0
* CentOS7 - aarch64:
.. parsed-literal::
category = posix - RTE_POSIX
ostype = linux - RTE_LINUX
dist = centos - RTE_CENTOS
distrel = centos-7.5.1804 - RTE_CENTOS75
dist-rel-name = Core
dist-vers = [7, 5, 1804]
os-vers = [4, 14, 52]
hexversion =
os-hexversion = 0
* Armbian - armhfx:
Or in case of *Armbian* derived from *debian* the release names are coupled, while
the release numbering is independent:
.. parsed-literal::
category = `posix - RTE_POSIX `_
ostype = `linux - RTE_LINUX `_
dist = `armbian - RTE_ARMBIAN `_
distrel = `armbian-5.50.0 - RTE_ARMBIAN5500