qip.system

qip.system.query()[source]

Return system mapping.

Raises:RuntimeError – if platform is not supported.
Returns:system mapping.

It should be in the form of:

{
    "platform": "linux",
    "arch": "x86_64",
    "os": {
        "name": "centos",
        "major_version": 7
    }
}
qip.system.query_linux()[source]

Return Linux system mapping.

Returns:system mapping.
qip.system.query_mac()[source]

Return mac system mapping.

Returns:system mapping.
qip.system.query_windows()[source]

Return windows system mapping.

Warning

The Windows versions superior to 8 will not be recognised properly with a Python version under 2.7.11

https://hg.python.org/cpython/raw-file/53d30ab403f1/Misc/NEWS

Also a bug as been introduced in Python 2.7.11 that prevent the recognition of old Windows version

https://bugs.python.org/issue26513

Returns:system mapping.