Download and install Google App Engine SDK
https://cloud.google.com/appenginedownloads?hl=es#Google_App_Engine_SDK_for_Python
$ unzip google_appengine_1.9.24.zip
$ export PATH=$PATH:/path/to/google_appengine/
Skeleton of example application
https://github.com/GoogleCloudPlatform/appengine-try-python-flask
Create a test server in your machine:
$ dev_appserver.py appengine-try-python-flask
In your browser:
http://localhost:8080
To manage it:
http://localhost:8000
or --host option to launch server in other IP than localhost:
$ dev_appserver.py --host=0.0.0.0 appengine-try-python-flask
INFO 2016-05-01 16:14:56,073 sdk_update_checker.py:229] Checking for updates to the SDK.
INFO 2016-05-01 16:14:56,430 api_server.py:205] Starting API server at: http://localhost:41286
INFO 2016-05-01 16:14:56,453 dispatcher.py:197] Starting module "default" running at: http://0.0.0.0:8080
INFO 2016-05-01 16:14:56,454 admin_server.py:118] Starting admin server at: http://localhost:8000
Upload the example app:
appcfg.py [options] update <app-directory>|<files...>
$ appcfg.py -A vicente-hernando update appengine-try-python-flask
You can visit it with your browser:
https://vicente-hernando.appspot.com
Download source code from a running application in Google App Engine
If you have lost the source code of your application, you cand download it from Google App Engine (if you can authenticate) by using appcfg tool.
appcfg tool
appcfg.py download_app -A <app_id> -V <version> <output-dir>
Your app_id is necessary. You can found it in https://console.cloud.google.com/iam-admin/projects
version is optional.
$ appcfg.py -A my-cdn download_app my-cdn
https://cloud.google.com/appengine/docs/standard/python/tools/downloading-source-code