past - Python version support enforcement

Identification and enforcement of supported Python releases.

class Version(version)[source]

Identifies a Python release in a way that is convenient for comparison and printing.

at_least()[source]

Return True if the current Python version is equal or higher than self.

at_most()[source]

Return True if the current Python version is equal or lower than self.

enforce_at_least(version)[source]

Assert that the current Python version is equal or higher than version.

enforce_at_most(version)[source]

Assert that the current Python version is equal or lower than version.