Google App Engine Samples
This section contains samples for Google App Engine. Most of these samples have associated documentation that is linked within the docstring of the sample itself.
Running the samples locally
-
Download the Google App Engine Python SDK for your platform.
-
Many samples require extra libraries to be installed. If there is a
requirements.txt, you will need to install the dependencies withpip.pip install -t lib -r requirements.txt -
Use
dev_appserver.pyto run the sample:dev_appserver.py app.yaml -
Visit
http://localhost:8080to view your application.
Some samples may require additional setup. Refer to individual sample READMEs.
Deploying the samples
-
Download the Google App Engine Python SDK for your platform.
-
Many samples require extra libraries to be installed. If there is a
requirements.txt, you will need to install the dependencies withpip.pip install -t lib -r requirements.txt -
Use
gcloudto deploy the sample, you will need to specify your Project ID and a version number:gcloud app deploy --project your-app-id -v your-version -
Visit
https://your-app-id.appspot.comto view your application.
Additional resources
For more information on App Engine:
For more information on Python on App Engine:
