Catalog PyPI
PACKAGE EXPLORERView in registry

adcm-version

PyPI
Versions collected1
Direct dependencies1From release 2.0.0
Last observed20 Oct, 19:14 UTC

README

Version 2.0.0 documentation

ADCM version

Name

ADCM version

Description

This package is intended to compare versions of the ADCM product.

Installation

pip install adcm-version

Usage

There are two major functions to compare versions:

  • compare_adcm_versions(this, other) - Compare two ADCM version strings
  • compare_prototype_versions(this, other) - Compare two prototype version strings for ADCM objects

Both returning:

  • ComparisonResult.NEWER when this is newer
  • ComparisonResult.EQUAL when versions are equal
  • ComparisonResult.OLDER when other is newer

Example:

>>> from adcm_version import compare_prototype_versions, ComparisonResult
>>> compare_prototype_versions("2.1.10_b1", "2.1.6_b4")
ComparisonResult.NEWER

As for releases 2.x.y ComparisonResult can be treated as integer (returned value of 1.x.y versions).

Also there is a function to check if version format is legacy ADCM version format:

  • is_legacy(version) - return True, if ADCM version format is old (for example 2023.11.28.07), else False

    >>> from adcm_version import is_legacy
    >>> is_legacy("2021.11.22.15")
    True
    

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.022 Dec 20251

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c8869fda46fe54f20a6670b3fcafa081a22bda75855c12eb767eeb7f0d3a03e1