SemanticVersion#

class neophile.inventory.version.SemanticVersion(parsed_version, version)#

Bases: ParsedVersion

Represents a semantic version string.

Parameters:

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:

SemanticVersion

static is_valid(string)#

Return whether a version string is a valid version.

Parameters:

string (str) – Version as a string.

Returns:

Whether it is valid.

Return type:

bool