sprocket_bio.grammar.version

class sprocket_bio.grammar.version.SupportedVersion

Bases: object

Represents a supported WDL version.

The Default implementation of this type returns the most recent fully-supported ratified version of WDL.

class V1(_0)

Bases: SupportedVersion

The document version is 1.x.

has_same_major_version(other)

Returns true if the other version has the same major version as this one.

>>> from sprocket_bio.grammar.version import SupportedVersion, V1
>>> SupportedVersion.V1(V1.ZERO).has_same_major_version(SupportedVersion.V1(V1.TWO))
True
class sprocket_bio.grammar.version.V1

Bases: object

Represents a supported V1 WDL version.

FOUR = V1.FOUR
ONE = V1.ONE
THREE = V1.THREE
TWO = V1.TWO
ZERO = V1.ZERO