PackagingVersion¶
-
class
neophile.inventory.version.PackagingVersion(parsed_version: Union[LegacyVersion, Version], version: str)¶ Bases:
neophile.inventory.version.ParsedVersionRepresents a version string using
packaging.version.Version.Methods Summary
from_str(string)Parse a string into a Version.is_valid(string)Return whether a version is valid. Methods Documentation
-
classmethod
from_str(string: str) → neophile.inventory.version.PackagingVersion¶ Parse a string into a
Version.Parameters: string ( str) – The version as a string.Returns: version – The parsed version. Return type: PackagingVersion
-
classmethod