def GenClientLib(discovery_path, language, output_path):
  with open(discovery_path) as f:
    discovery_doc = f.read()

  client_name = re.sub(r'\.discovery$', '.zip',
                       os.path.basename(discovery_path))

  _GenClientLibFromContents(discovery_doc, language, output_path, client_name)
Write a client library from a discovery doc, using a cloud service to file.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/endpointscfg.py/GenClientLib