PyVersionNumber
A small library for handling Semantic Version Numbers
Installation
pip install PyVersionNumber
Usage
The following code sample shows the two ways to instantiate the VersionNumber class:
import PyVersionNumber
version = PyVersionNumber.VersionNumber("1.2.6")
OR
import PyVersionNumber
version = PyVersionNumber.VersionNumber(1, 2, 6)
From there, you can compare version numbers, perform mathematical operations on two version numbers, print the number out to the console (or cast to a string), or see if the version number indicates the product is in development according to Semantic Versioning Standards (the Major number = 0)
It is a very small and simple library which has many uses. Enjoy!
Contributing
If you wish to contribute, submit a PR and I would be happy to review it!
Metadata
Release files for PyVersionNumber 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyVersionNumber-1.1.1.tar.gz | 3.4 kB | Without provenance | Details for PyVersionNumber-1.1.1.tar.gz |
Release files / PyVersionNumber-1.1.1.tar.gz
| Download URL | PyVersionNumber-1.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
755fd2ac088c80aa1275bbe04f15d309627c2805966ba38238a6e521042b5c62
|
|
BLAKE2b-256 checksum How to use checksums |
3fbc4bd1fddaecc957355022b68f26d169d143b3dfda207acc2c3e28456c16d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
|
Security for PyVersionNumber 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.