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.
-
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.py
to run the sample:dev_appserver.py app.yaml
-
Visit
http://localhost:8080
to view your application.
Some samples may require additional setup. Refer to individual sample READMEs.
-
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
gcloud
to 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.com
to view your application.
For more information on App Engine:
For more information on Python on App Engine: