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

Uploaded Source

Built Distributions

LbPlatformUtils-4.2.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

LbPlatformUtils-4.2.0-py2-none-any.whl (28.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.0.tar.gz
  • Upload date:
  • Size: 33.7 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.0.tar.gz
Algorithm Hash digest
SHA256 b8fc8bc45182b167d446b3c60d99f951c219d53530becd6a9d2f7263ba4b544d
MD5 895e8a39b16713fdb595d0c441b424c1
BLAKE2b-256 268b071e26708f6e754477cce7534c46e7069a370e4309b3abbc0188f9d39819

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.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-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4683bb38998592f6701721ec9b5392e91a8988afa6ce773dd0f7e3c336fdc504
MD5 be25d4b224b68c0713bccac80eae2374
BLAKE2b-256 d3e3d3d74db31806ddbd9e54a290a879f390d32570a1924a1dba2cd3b88dfae8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.0-py2-none-any.whl
  • Upload date:
  • Size: 28.7 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.0-py2-none-any.whl
Algorithm Hash digest
SHA256 cc03b4f97899ce9f9f6bcd627f3fd7da58f34043913f71b89cabfb1c58bd0f97
MD5 87f496d5c898d46b3ec9b6ebed6977d5
BLAKE2b-256 e3c2880ec3c8dd4cce37bfba4a809113f87fe9f1f0d8de6cae47acf72d3b352a

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