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
There are two major functions to compare versions:
compare_adcm_versions(this, other)- Compare two ADCM version stringscompare_prototype_versions(this, other)- Compare two prototype version strings for ADCM objects
Both returning:
ComparisonResult.NEWERwhenthisis newerComparisonResult.EQUALwhen versions are equalComparisonResult.OLDERwhenotheris 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)- 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adcm_version-2.0.0.tar.gz.
File metadata
- Download URL: adcm_version-2.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.7 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9abb776869b7155dff841b3c6364477d76cf9bc34395a20cc5815376060ce104
|
|
| MD5 |
c3e160e6e56cca330567afbd3fab5937
|
|
| BLAKE2b-256 |
0bf71d3eebccfe92d508ce2465df99b52af88f98f8f2678e8e0d8881e99baff6
|
File details
Details for the file adcm_version-2.0.0-py3-none-any.whl.
File metadata
- Download URL: adcm_version-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.7 Linux/5.4.0-216-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07113967ef43bbee29fadcef236da31e49a645681e8922d1af53b01a94b0608d
|
|
| MD5 |
9d8604252a05425dbde0b078accac77c
|
|
| BLAKE2b-256 |
3010eca3e77268aded8213c65b078ca7e58fd839dd640b417a0e243ad7594d6a
|