code: def codes_get_api_version():
      
      ver = lib.codes_get_api_version()
      patch = ver % 100
      ver = ver // 100
      minor = ver % 100
      major = ver // 100
  
      return "%d.%d.%d" % (major, minor, patch)
docs: Get the API version.
  
      Returns the version of the API as a string in the format "major.minor.revision".