versions

class SoftwareVersion(string_id)[source]

Bases: object

Base class for representing version numbers / IDs of software. Different software may use different conventions to represent its versions, so it may be necessary to subclass this class to provide the appropriate parsing and comparison of versions.

compare_dotted_versions(version0, version1)[source]

Comparison function for reasonably standard version numbers, with subversions to any level of nesting specified by dots.