Version Related Info¶
There are two main ways to get version information about the library.
-
gd.version_info¶ Library version, wrapped into
VersionInfo, similar tosys.version_info.Just like
sys.version_infothe valid values forreleaselevelare “alpha”, “beta”, “candidate” and “final”.
-
gd.aiohttp_version¶ Version of
aiohttp, wrapped intoVersionInfo.
-
gd.python_version¶ Python version, wrapped into
VersionInfo.
-
class
gd.VersionInfo(major, minor, micro, release_level, serial)[source]¶ Named tuple that represents version info, similar to
sys.version_info.-
str(v) Return human-friendly version format. For example,
VersionInfo(1, 0, 0, "alpha", 1)is1.0.0a1.
-
classmethod
from_string(version: str) → gd.version.VersionInfo[source]¶ Create
VersionInfofromversionstring.
-
to_string() → str[source]¶ Convert
VersionInfoto string.
-
-
gd.make_version_info(string: str) → gd.version.VersionInfo¶ Same as
from_string().