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-4.2.2.tar.gz (34.3 kB view details)

Uploaded Source

Built Distributions

LbPlatformUtils-4.2.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

LbPlatformUtils-4.2.2-py2-none-any.whl (29.3 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.2.tar.gz
  • Upload date:
  • Size: 34.3 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-4.2.2.tar.gz
Algorithm Hash digest
SHA256 53e0d9ede8028fa467861027e32316026450a66e011a92a672b9898fd63af8a0
MD5 44cde96ca15019e66bebe8489380e176
BLAKE2b-256 f9e528e6ace66d27b84f4bb0d0a9fd1f8a9671b9e55d7c5aaa80acff47161b4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.2-py3-none-any.whl
  • Upload date:
  • Size: 29.3 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-4.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a34d444239f9bcb07ab2c3b24d0a151b7a5334d9b7981736135c2250c9b4d117
MD5 d169c50527916625df4be9cbaef03253
BLAKE2b-256 19ce86f41531a45083cc299bd7d18a5235fea6bd20a2243329a95ecfcaea3f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.2-py2-none-any.whl
  • Upload date:
  • Size: 29.3 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-4.2.2-py2-none-any.whl
Algorithm Hash digest
SHA256 d14aecb0c2bee5a388be44f322e2272b06ef3716c1882f31684bb813950571b3
MD5 986977a96bb3164ebdf91460cad07282
BLAKE2b-256 a7675048880a35dbe7874566b938a63d5d508d4d8ad0af9955630a34cebec832

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