SemanticVersion#
- class neophile.inventory.version.SemanticVersion(parsed_version, version)#
Bases:
ParsedVersion
Represents a semantic version string.
Methods Summary
from_str
(string)Parse a string into a
SemanticVersion
.is_valid
(string)Return whether a version string is a valid version.
Methods Documentation
- classmethod from_str(string)#
Parse a string into a
SemanticVersion
.- Parameters:
string (
str
) – Version as a string.- Returns:
Parsed version.
- Return type: