Consuming GAE Endpoints with a Python client
google-app-engine, google-cloud-endpoints, python
Solution
You can use the Google APIs Client Library for Python which is compatible with endpoints.
Normally you would build a client using `service = build(api, version, http=http)` for example `service = build("plus", "v1", http=http)` to build a client to access to Google+ API.
For using the library for your endpoint you would use:
service = build("your_api", "your_api_version", http=http,
discoveryServiceUrl=("https://yourapp.appspot.com/_ah/api/discovery/v1/"
"apis/{api}/{apiVersion}/rest"))
You can then access your API with
result = service.resource().method([parameters]).execute()
Problem
I am using Google AppEngine Endpoints to build a web API. I will consume it with a client written in Python. I know that scripts are provided to generate Android and iOS client API, but it doesn't seem that there is anything comparable for Python. It does seem redundant to code everything again. For instance, the messages definition which are basically the same. It there anyway of getting this done more easily? Thanks