Skip to main content

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.

Metadata

Release files for sp-variant 3.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sp-variant 3.5.3
File Size Uploaded Provenance Actions
sp_variant-3.5.3.tar.gz 48.2 kB Without provenance Details for sp_variant-3.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sp-variant 3.5.3
File Interpreter ABI Platform Actions
sp_variant-3.5.3-py3-none-any.whl Python 3 none any Details for sp_variant-3.5.3-py3-none-any.whl

Total release size: 66.5 kB

Release files / sp_variant-3.5.3.tar.gz

Download URL sp_variant-3.5.3.tar.gz
Size 48.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e004190991b57568292171f4e3a7d2b6896901d4bcfcf65be1d85dcbfd340de7
BLAKE2b-256 checksum
How to use checksums
d4cbfa2d6f98ea51f4d20534cfcd7a44ce37afce39d3381299734c080ac8b151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / sp_variant-3.5.3-py3-none-any.whl

Download URL sp_variant-3.5.3-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
825894f28f50bd2de1f4a5b2a19d2b5881878f1bb1caae362b137fd4e953ae83
BLAKE2b-256 checksum
How to use checksums
2dae9ab00d42e2dcd97bc8e82918632dce8ad63102fee37f93c530fb91936376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for sp-variant 3.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page