Skip to main content

Detect the Linux distribution for the StorPool build system

Project description

sp-variant - detect the Linux distribution for the StorPool build system

The sp-variant library is mainly useful within the StorPool internal build and QA environment, as well as the first step of installations on end-user systems. It examines several files and tries to determine what distribution and what version it is running on.

Basic command-line usage

  • sp_variant detect - identify the current Linux distribution
  • sp_variant show current - show JSON data about the current distribution
  • sp_variant show all - show JSON data about all supported distributions
  • sp_variant show NAME - show JSON data about a specific distribution
  • sp_variant command list - show a list of distribution-specific commands
  • sp_variant command run category.item [arg...] - run a distribution-specific command
  • sp_variant repo add - add the Apt or Yum repository definitions for the StorPool package repository

Basic Python API

The sp_variant.variant module exports several constants and functions, among them:

  • detect_variant() - return an object describing the detected distribution
  • get_variant() - get an object describing the specified distribution
  • get_by_alias() - same, but specify the StorPool builder alias for the distribution
  • get_all_variants() - get objects describing all supported distributions
  • command_run() - run a distribution-specific command

Basic Rust API

The sp-variant crate exports several constants and functions, among them:

  • build_variants() - return information about all supported variants
  • detect() - get an object describing the detected distribution
  • get_from() - get an object describing the specified distribution
  • get_by_alias_from() - same, but specify the StorPool builder alias for the distribution

For more information, as well as for suggestions and problem reports, please contact the StorPool support team.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sp_variant-3.5.2.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

sp_variant-3.5.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file sp_variant-3.5.2.tar.gz.

File metadata

  • Download URL: sp_variant-3.5.2.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.19

File hashes

Hashes for sp_variant-3.5.2.tar.gz
Algorithm Hash digest
SHA256 588102df9fc1c43cbd85dbe31de600cdd6bc841ceac60276a865e6631292c48b
MD5 83bbf1db31f94cf7100a5ff4fed6a036
BLAKE2b-256 930e64d3f1e5d25846b0c48e34d2b1e8d474142e8496166d47b2078c9dabb88c

See more details on using hashes here.

File details

Details for the file sp_variant-3.5.2-py3-none-any.whl.

File metadata

  • Download URL: sp_variant-3.5.2-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.19

File hashes

Hashes for sp_variant-3.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e528637b4a3592ebb575c0f23aa89b2176238163c7f5933158f65afeeafa7654
MD5 c43a5e9148cd145f37c892105d628438
BLAKE2b-256 6c36345d3a350055649574c5481cff3329fab92a146b73c5432a2d0a9ddd60bf

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