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 (ifa
is newer), 0 (if versions are equal), or -1 (ifb
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 (ifa
is newer), 0 (if versions are equal), or -1 (ifb
is newer)>>> from adcm_version import compare_prototype_versions >>> compare_prototype_versions("2.1.10_b1", "2.1.6_b4") 1
-
is_legacy(version)
- returnTrue
, if ADCM version format is old (for example2023.11.28.07
), elseFalse
>>> 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)
Built Distribution
Close
Hashes for adcm_version-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59bc0e6ed23ee0bc870a5a6b5c1a6ea7c671914e43c2cee6a5fb0d1e3c314ab |
|
MD5 | d903b98db846f4f358da10aec0d7e7f4 |
|
BLAKE2b-256 | 756d283857481896f4ef1aa6dcca62b8d16a5eb377134424daeaf1a2df06b60c |