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

Uploaded Source

Built Distributions

LbPlatformUtils-4.2.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

LbPlatformUtils-4.2.1-py2-none-any.whl (28.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.1.tar.gz
  • Upload date:
  • Size: 33.8 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.1.tar.gz
Algorithm Hash digest
SHA256 d2ad4b4f372539e8e9bdb33824a72f3149ca48e17a2936317f8e3299394a321e
MD5 0bfdcad8e98d3128b67fb603a6743317
BLAKE2b-256 67e1798122025f798445599b6ca292e3e87d82f2966d3db1aee8a7380ec62012

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f11eb62b5638df6a83bc074e573710105ca796b886ad90eebb599372c8018e1d
MD5 3a216bb15689da179e78beb1aa8340eb
BLAKE2b-256 7e654ce2ec046cce0874d6a17df8ba68787a95c59c667268a348d85f72643f4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.2.1-py2-none-any.whl
  • Upload date:
  • Size: 28.9 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.1-py2-none-any.whl
Algorithm Hash digest
SHA256 71ceb7760c71b9cee0c1fcc5757ecfb72a293e729f79df1a62d6cae2566351ab
MD5 82bf736df7980c592269217e24e00051
BLAKE2b-256 4921aaf86c78454a7f698a5a676c1155de103e33df3bd87533c32b67ac198435

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