Skip to main content

AwesomeVersion

codecov python version dependencies PyPI Actions

One version package to rule them all, One version package to find them, One version package to bring them all, and in the darkness bind them.

Make anything a version object, and compare against a vast section of other version formats.

Installation

python3 -m pip install awesomeversion

Example usage

These are some examples of what you can do, more examples can be found in the tests directory.

from awesomeversion import AwesomeVersion

current = AwesomeVersion("1.2.2")
upstream = AwesomeVersion("1.2.3")

print(upstream > current)
> True
from awesomeversion import AwesomeVersion

version = AwesomeVersion("1.2.3b0")

print(version.beta)
> True
from awesomeversion import AwesomeVersion

current = AwesomeVersion("2021.1.0")
upstream = AwesomeVersion("2021.1.0b2")

print(upstream > current)
> False
from awesomeversion import AwesomeVersion

current = AwesomeVersion("latest")
upstream = AwesomeVersion("2021.1.0")

print(upstream > current)
> False
from awesomeversion import AwesomeVersion

current = AwesomeVersion("latest")
upstream = AwesomeVersion("dev")

print(upstream > current)
> True
from awesomeversion import AwesomeVersion

with AwesomeVersion("20.12.0") as current:
    with AwesomeVersion("20.12.1") as upstream:
        print(upstream > current)
> True
from awesomeversion import AwesomeVersion

with AwesomeVersion("20.12.0") as current:
    print("2020.12.1" > current)
> True

Contribute

All contributions are welcome!

  1. Fork the repository
  2. Clone the repository locally and open the devcontainer or use GitHub codespaces
  3. Do your changes
  4. Lint the files with make lint
  5. Ensure all tests passes with make test
  6. Ensure 100% coverage with make coverage
  7. Commit your work, and push it to GitHub
  8. Create a PR against the main branch

Release files for awesomeversion 21.10.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 awesomeversion 21.10.0
File Size Uploaded
awesomeversion-21.10.0.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awesomeversion 21.10.0
File Interpreter ABI Platform
awesomeversion-21.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / awesomeversion-21.10.0.tar.gz

Download URL awesomeversion-21.10.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
17c8a337c530bb4cb592612f9c4d046fa8e977d2d6be75dd6ca4e72e863cdefb
BLAKE2b-256 checksum
How to use checksums
8ee89d0c352f7c756f90f162df052ed67a4ba0ab6915f74fc4df8a93a18d7fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / awesomeversion-21.10.0-py3-none-any.whl

Download URL awesomeversion-21.10.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36e7a3b163c7d79545aa8c4a30151cad6c96caa050893a08e960b79f6cf91d24
BLAKE2b-256 checksum
How to use checksums
6018a4f0b8bec8c29420b3875a1bb5f34e679a1e0919b529066d34e72daef537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release history Release notifications | RSS feed

25.5.0

2 release files

24.6.0

2 release files

23.8.0

2 release files

23.5.0

2 release files

22.9.0

2 release files

22.8.0

2 release files

22.6.0

2 release files

22.5.2

2 release files

22.5.1

2 release files

22.4.2

2 release files

22.4.1

2 release files

22.2.0

2 release files

This release

21.10.0 This release

2 release files

21.8.1

2 release files

21.8.0

2 release files

21.2.3

2 release files

21.1.8

2 release files

21.1.7

2 release files

21.1.6

2 release files

21.1.5

2 release files

21.1.4

2 release files

21.1.3

2 release files

21.1.2

2 release files

21.1.1

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