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
Built Distribution
File details
Details for the file adcm_version-1.0.3.tar.gz
.
File metadata
- Download URL: adcm_version-1.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2052d7c17ef72f1e32971e939ec972426978025e5c052320062f4ed3a2c90bc5 |
|
MD5 | 3d628e1e4073f52fbb84140c820f532a |
|
BLAKE2b-256 | ef31b995e53c2e7495dc551fae89ddd1367706264b680b06a45189345c80c4b9 |
File details
Details for the file adcm_version-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: adcm_version-1.0.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59bc0e6ed23ee0bc870a5a6b5c1a6ea7c671914e43c2cee6a5fb0d1e3c314ab |
|
MD5 | d903b98db846f4f358da10aec0d7e7f4 |
|
BLAKE2b-256 | 756d283857481896f4ef1aa6dcca62b8d16a5eb377134424daeaf1a2df06b60c |