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.

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

sp_variant-3.5.3.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sp_variant-3.5.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sp_variant-3.5.3.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for sp_variant-3.5.3.tar.gz
Algorithm Hash digest
SHA256 e004190991b57568292171f4e3a7d2b6896901d4bcfcf65be1d85dcbfd340de7
MD5 d12867f76d72c955187f08f27c1d3887
BLAKE2b-256 d4cbfa2d6f98ea51f4d20534cfcd7a44ce37afce39d3381299734c080ac8b151

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sp_variant-3.5.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for sp_variant-3.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 825894f28f50bd2de1f4a5b2a19d2b5881878f1bb1caae362b137fd4e953ae83
MD5 06d4df42a703527e6fab63390a58213d
BLAKE2b-256 2dae9ab00d42e2dcd97bc8e82918632dce8ad63102fee37f93c530fb91936376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page