AwesomeVersion

25.8.0 · active · verified Sat Apr 11

AwesomeVersion is a Python library designed to parse, compare, and manage various version formats, acting as a universal solution for version string manipulation. It allows making anything a version object and comparing it against a wide range of other version formats. The library is actively maintained with frequent releases, often multiple times a month, providing continuous improvements and new features.

Warnings

Install

Imports

Quickstart

Initialize `AwesomeVersion` objects and use them for comparisons, attribute access (like checking for beta status), and range checks. This demonstrates the core functionality of parsing and comparing version strings.

from awesomeversion import AwesomeVersion

# Basic comparison
current = AwesomeVersion("1.2.2")
upstream = AwesomeVersion("1.2.3")
print(f"Is upstream newer than current? {upstream > current}")

# Version with a pre-release tag
version_beta = AwesomeVersion("1.2.3b0")
print(f"Is version_beta a beta release? {version_beta.beta}")

# Check if a version is within a range
range_check = AwesomeVersion("1.5.0").in_range("1.0.0", "2.0.0")
print(f"Is 1.5.0 in range 1.0.0-2.0.0? {range_check}")

view raw JSON →