Skip to main content

utilities from platform detection

Project description

pipeline status coverage report

This is a project started to coordinate between LHCb Core Software and LHCbDirac platform compatibility information.

It follows up on discussions in

OS Id Derivation

The OS Id (os_id) is a short string used to identify the Operating System (e.g. Linux flavour, MacOS, Windows…) and its version, usually in the format <name><version>.

On Linux, the OS Id is computed from different possible sources:

  • file /etc/os-release [1]
    • the name is extracted from the field ID, up the first (optional) -

    • the version is extracted from the field VERSION_ID
      • if ID or ID_LIKE contain rhel or suse we keep only up to the first .

      • otherwise we remove all occurrences of .

      • if VERSION_ID is not present and the name is debian we set the version to testing

  • file /etc/redhat-release
    • the name is
      • slc if it contains CERN

      • sl if it contains Scientific Linux

      • centos if it contains CentOS

      • rhel if it contains Red Hat Enterprise Linux

    • the version is the number after the word release, up to the first .

  • file /etc/lsb-release
    • the name is extracted from the field DISTRIB_ID, up the first (optional) -, and made lowercase

    • the version is extracted from the field DISTRIB_RELEASE removing all occurrences of .

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

LbPlatformUtils-3.1.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distributions

LbPlatformUtils-3.1.0-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

LbPlatformUtils-3.1.0-py2-none-any.whl (28.1 kB view details)

Uploaded Python 2

File details

Details for the file LbPlatformUtils-3.1.0.tar.gz.

File metadata

  • Download URL: LbPlatformUtils-3.1.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for LbPlatformUtils-3.1.0.tar.gz
Algorithm Hash digest
SHA256 c0881b19d4fe8f623f5a12627234e13f67739bfa0f0b8be2bdc9f35f1c566b24
MD5 1c78bbe0e5d9b9eb9a94bb967ab985d3
BLAKE2b-256 2c32b328af43b2463f1f07ae51d6e2f78f7313f7e5ae207ee3f29b7aaa4d14df

See more details on using hashes here.

File details

Details for the file LbPlatformUtils-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: LbPlatformUtils-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 61.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for LbPlatformUtils-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c68cdc2ff5e486a1136ee2f81bf17204fcbcf7c6d3408c85efbd70f7d43762f
MD5 6201ec720f5785122ecb7f8d69a73b0c
BLAKE2b-256 34ab8d687baccb7406867d3c2998ef866a8831743e8a1a3ed63e7f3ef0ed2fb6

See more details on using hashes here.

File details

Details for the file LbPlatformUtils-3.1.0-py2-none-any.whl.

File metadata

  • Download URL: LbPlatformUtils-3.1.0-py2-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

File hashes

Hashes for LbPlatformUtils-3.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 d3f3d31c079b2ccd4d8cef03d705b0bedeff8f47028c977e19b58486fe7bae87
MD5 a252016e20e05b29c946b41711842dae
BLAKE2b-256 c579eec3b1319441dab20fdc44efd68713fa59f5e6cd604e074cd96a88705ff5

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