Skip to main content

No project description provided

Project description

ADCM version

Name

ADCM version

Description

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

Installation

pip install adcm-version

Usage

  • compare_adcm_versions(version_a, version_b) - Compare two ADCM version strings, return 1 (if a is newer), 0 (if versions are equal), or -1 (if b is newer)

    >>> from adcm_version import compare_adcm_versions
    >>> compare_adcm_versions("2021.11.22.15", "2023.11.28.07")
    -1
    
  • compare_prototype_versions(version_a, version_b) - Compare two prototype version strings for ADCM objects, return 1 (if a is newer), 0 (if versions are equal), or -1 (if b is newer)

    >>> from adcm_version import compare_prototype_versions
    >>> compare_prototype_versions("2.1.10_b1", "2.1.6_b4")
    1
    
  • 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
    

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

adcm_version-1.0.3.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

adcm_version-1.0.3-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

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