def GenClientLib(discovery_path, language, output_path):
 with open(discovery_path) as f:
  discovery_doc = f.read()
 client_name = re.sub('\\.discovery$', '.zip', os.path.basename(discovery_path))
 _GenClientLibFromContents(discovery_doc, language, output_path, client_name)

def GenClientLib ( discovery_path , language , output_path ) : with open ( discovery_path ) as f : discovery_doc = f . read ( ) client_name = re . sub ( '\\.discovery$' , '.zip' , os . path . basename ( discovery_path ) ) _GenClientLibFromContents ( discovery_doc , language , output_path , client_name )
write a client library from a discovery doc .