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.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

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

adcm_version-1.0.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file adcm_version-1.0.0.tar.gz.

File metadata

  • Download URL: adcm_version-1.0.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/5.4.0-153-generic

File hashes

Hashes for adcm_version-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3bc984895a752b0cab89b8011d0d00608857a612024333538eea0c6bb76e4358
MD5 0e50589a106ae539453dd10f0c0275ac
BLAKE2b-256 5c58efaeab2958c7611cc0b7ba589223330ef496333957a25a15bc20225c7ab2

See more details on using hashes here.

File details

Details for the file adcm_version-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: adcm_version-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/5.4.0-153-generic

File hashes

Hashes for adcm_version-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4db72b72c3b89085043f8aaae0e5d2b641ce690acca9c681348b390764d163
MD5 8fd1c48510f4c011f6e2d8e599542b46
BLAKE2b-256 c1540932a0afe8944193d18a4fc12a7f8ed7db56cf4d8065aee4f246dcdbad53

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