version_info
#
PyScript.version_info
is a namedtuple
representing the current version of PyScript. It can be used to compare whether current version precedes or follows a desired version. For a human-readable version of the same info, see __version__
>>> pyscript.version_info
version_info(year=2023, month=2, minor=1, releaselevel='dev')
Version Fields#
parameter |
CalVer equivalent field |
example value |
description |
---|---|---|---|
|
Full year (YYYY) |
2023 |
The year of the release; when printed or represented as a string, always written with 4 digits |
|
Short Month (MM) |
2 |
The month of the release; when printed or represented as a string, written with 1 or 2 digits as necessary |
|
1 |
The incremental number of the release for this month; when printed or represented as a string, written with 1 or two digits as necessary |
|
|
‘dev’ |
A string representing the qualifications of this build |