Skip to main content

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 strings
  • compare_prototype_versions(this, other) - Compare two prototype version strings for ADCM objects

Both returning:

  • ComparisonResult.NEWER when this is newer
  • ComparisonResult.EQUAL when versions are equal
  • ComparisonResult.OLDER when other is 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) - 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
    

Metadata

Release files for adcm-version 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adcm-version 2.0.0
File Size Uploaded
adcm_version-2.0.0.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adcm-version 2.0.0
File Interpreter ABI Platform
adcm_version-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.2 kB

Release files / adcm_version-2.0.0.tar.gz

Download URL adcm_version-2.0.0.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9abb776869b7155dff841b3c6364477d76cf9bc34395a20cc5815376060ce104
BLAKE2b-256 checksum
How to use checksums
0bf71d3eebccfe92d508ce2465df99b52af88f98f8f2678e8e0d8881e99baff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.7 Linux/5.4.0-216-generic

Release files / adcm_version-2.0.0-py3-none-any.whl

Download URL adcm_version-2.0.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07113967ef43bbee29fadcef236da31e49a645681e8922d1af53b01a94b0608d
BLAKE2b-256 checksum
How to use checksums
3010eca3e77268aded8213c65b078ca7e58fd839dd640b417a0e243ad7594d6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.7 Linux/5.4.0-216-generic

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page