gd.py
develop
  • Introduction
  • Version Related Info
  • Setting Up Logging
  • Client
  • Entities
  • Users
  • Comments, Friend Requests and Messages
  • Songs
  • Levels
  • Rewards
  • Date and Time
  • Save API
  • Level Editing
  • Guidelines
  • Recording
  • Memory Interaction
  • Exceptions
  • Enums
  • Event Reference
  • Console Usage
  • Advanced API Reference
  • Decorators
  • Debugging and Code Utilities
gd.py
  • Docs »
  • Version Related Info
  • Edit on GitHub

Version Related Info¶

There are two main ways to get version information about the library.

gd.__version__¶

A string representation of the version. e.g. "1.0.0". This is based off of PEP 440.

gd.version_info¶

Library version, wrapped into VersionInfo, similar to sys.version_info.

Just like sys.version_info the valid values for releaselevel are “alpha”, “beta”, “candidate” and “final”.

gd.aiohttp_version¶

Version of aiohttp, wrapped into VersionInfo.

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) is 1.0.0a1.

classmethod from_string(version: str) → gd.version.VersionInfo[source]¶

Create VersionInfo from version string.

to_string() → str[source]¶

Convert VersionInfo to string.

gd.make_version_info(string: str) → gd.version.VersionInfo¶

Same as from_string().

Next Previous

© Copyright 2019-2020, nekitdev Revision b9d5e29c.

Built with Sphinx using a theme provided by Read the Docs.