Skip to main content

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.

Project description

AwesomeVersion

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.

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

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 black
  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

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

awesomeversion-20.12.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awesomeversion-20.12.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file awesomeversion-20.12.0.tar.gz.

File metadata

  • Download URL: awesomeversion-20.12.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for awesomeversion-20.12.0.tar.gz
Algorithm Hash digest
SHA256 2e620eb07739d0521c03db71184e1a23704aaa4e8ef2fe61ef530783d1b031d9
MD5 83c9e8b3b7bfe75ef671a6b7b1bdcc80
BLAKE2b-256 0076cd6fc79b6d0872a5bf3affbd063cb9d2e9d838e1bf56f1ceb340faa4223e

See more details on using hashes here.

File details

Details for the file awesomeversion-20.12.0-py3-none-any.whl.

File metadata

  • Download URL: awesomeversion-20.12.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1

File hashes

Hashes for awesomeversion-20.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0c3c6d7253824b9b68d41519ee69c86ed1788335a4d0c60aa5c677a3f44aa5
MD5 12d47395a9e92f22a76f74ec332b12c7
BLAKE2b-256 7c7ee4255a50721b19824f6a8e20763aa44152a7f9d850b4641c7db9b0d0699a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page