Skip to main content

Simple version class

Project description

Versions

project codecov

Don't use this, There's probably better solutions out there.

This is a simple class I use that stores a version number.

It can compare to other versions, and supports different release channels (alpha, beta, release). Alphas and Betas can have a number attached to them, for example 0.5.6-alpha2, or 1.6.0-beta3. Releases are indicated by a lack of a channel, and therefore can't have a number attached to them (1.0.0 is a Release).

It can also create "warnings" for versions that are too old, or too new. This is useful for when you want to warn users that they are using an old version of your software, or that they are using a version that is too new for the server to support.

The full list of features are avalable by reading the code. Trust me, it's simple.

I'm putting this into a package because I use it in multiple projects.

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

versions_kaneryu-1.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

versions_kaneryu-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file versions_kaneryu-1.0.1.tar.gz.

File metadata

  • Download URL: versions_kaneryu-1.0.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for versions_kaneryu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ce0a48becf672b51d0f78ceb3516e10b8a243d512ca6e6a1b1cbb48eb154b1b9
MD5 4d1288b48553da8f544f0e7afc6240b4
BLAKE2b-256 0649257473617384f255359fa7860e472dcf9664ce22121dab5079f7edd470cd

See more details on using hashes here.

File details

Details for the file versions_kaneryu-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for versions_kaneryu-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d72529681682dd0f57dd266a87aaa61af92e2cadaee4762ffb650d892c0975d8
MD5 8fa29a696ed4570bedccde2766b04579
BLAKE2b-256 f03ecfbc5eedd1696f673fbbc8ac455694578c7d403f980ea9e98e230a3f701d

See more details on using hashes here.

Supported by

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