Get the latest Google App Engine SDK version number

I am writing a script to automatically download and update the installed version of the Google App Engine SDK. I can determine the installed version.

I need to make a wget request and check if it returns a 404 error; in fact, these are at least 2 requests, one to check for bug fixes, and the second to check for minor version updates.

I would like to avoid these wget requests. To do this, I need to determine the latest (stable, non-preliminary) version of the SDK. Is this information available through an API or other source that can be programmed?

+4
source share
1 answer

The python SDK checks the current SDK when starting the dev server. This launcher also has this object.

This will be the method I would use.

For the sdk command line, the python code that implements the verification is https://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/tools/sdk_update_checker.py and, as you pointed out, the code https://code.google.com/p/google-appengine-wx-launcher/source/browse/trunk/launcher/app.py starts to run

The code executes the RPC api for http://appengine.google.com/api/updatecheck and gets a yaml response. Thus, you can use this code or even just import and SDKUpdateChecker from sdk_checker.

+4
source

Source: https://habr.com/ru/post/1487201/


All Articles