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

Uploaded Source

Built Distributions

LbPlatformUtils-4.3.1-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

LbPlatformUtils-4.3.1-py2-none-any.whl (29.5 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.3.1.tar.gz
  • Upload date:
  • Size: 35.5 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.3.1.tar.gz
Algorithm Hash digest
SHA256 9ab3cd1e9d4117cfe5673be1fd906c671dc10d7c9aa14d9bf5e757a8b7647677
MD5 f6d5189ed6179a53b2b9bb18146603ef
BLAKE2b-256 429d948ab52f9134394f736acc1db16f2cf794b5d7d197f12d000f2565fe1cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 29.5 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6372bad67af70806fe465ba2432720a58fb2c654e5312e83ad5ac9bf06697d9
MD5 5c8b8feeb2d95f568283d65c5ef69efb
BLAKE2b-256 507779613c935053c16fe3a5f1521003399ccdcfba71a68ded30e46aba502ee2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbPlatformUtils-4.3.1-py2-none-any.whl
  • Upload date:
  • Size: 29.5 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.3.1-py2-none-any.whl
Algorithm Hash digest
SHA256 5352634cc865853ac9d0e2593872a3bf36edd7bf507fbffdc00d8e3ab9b1c796
MD5 bc7979dea0e524c15b303874c8528ad9
BLAKE2b-256 f5d09a7d2b543a8cd1099dfbb255ff1a0b3da86cef84a07c93c3c5dac04afcab

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