Python package to validate version codes.
As usual, just download it using pip:
pip install validate_version_code
Here’s a basic how-to:
from validate_version_code import validate_version_code
valid_version_code = "1.2.3"
invalid_version_code = "beta.3"
assert validate_version_code(valid_version_code)
assert not validate_version_code(invalid_version_code)
This package is distributed under the MIT license. This license can be found here.