Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
analytics Use HTTPS instead of HTTP for Google Analytics in Python samples (#1699) Nov 15, 2018
cloudsql Auto-update dependencies. (#1658) Aug 28, 2018
cloudsql_postgresql Updated appengine/flexible/cloudsql_postgresql samples. (#1666) Aug 28, 2018
datastore update region tags (#1631) Aug 20, 2018
disk Auto-update dependencies. (#1658) Aug 28, 2018
django_cloudsql Auto-update dependencies. (#1658) Aug 28, 2018
extending_runtime Auto-update dependencies. (#1658) Aug 28, 2018
hello_world Auto-update dependencies. (#1658) Aug 28, 2018
hello_world_django Auto-update dependencies. (#1658) Aug 28, 2018
mailgun Auto-update dependencies. (#1658) Aug 28, 2018
mailjet Auto-update dependencies. (#1658) Aug 28, 2018
memcache Auto-update dependencies. (#1658) Aug 28, 2018
metadata Auto-update dependencies. (#1658) Aug 28, 2018
multiple_services Auto-update dependencies. (#1658) Aug 28, 2018
numpy Auto-update dependencies. (#1658) Aug 28, 2018
pubsub Auto-update dependencies. (#1658) Aug 28, 2018
redis Auto-update dependencies. (#1658) Aug 28, 2018
scipy Auto-update dependencies. (#1658) Aug 28, 2018
sendgrid Auto-update dependencies. (#1658) Aug 28, 2018
static_files Auto-update dependencies. (#1658) Aug 28, 2018
storage Auto-update dependencies. (#1658) Aug 28, 2018
tasks Update Cloud Tasks Push Queue Sample (#1698) Sep 12, 2018
twilio Auto-update dependencies. (#1658) Aug 28, 2018
.gitignore Rename MVM To Flexible May 26, 2016
README.md Added "Open in Cloud Shell" buttons to README files (#1254) Dec 7, 2017

README.md

Google App Engine Flexible Environment Python Samples

Open in Cloud Shell

These are samples for using Python on Google App Engine Flexible Environment. These samples are typically referenced from the docs.

See our other Google Cloud Platform github repos for sample applications and scaffolding for other frameworks and use cases.

Run Locally

Some samples have specific instructions. If there is a README in the sample folder, pleaese refer to it for any additional steps required to run the sample.

In general, the samples typically require:

  1. Install the Google Cloud SDK, including the gcloud tool, and gcloud app component.

  2. Setup the gcloud tool. This provides authentication to Google Cloud APIs and services.

    gcloud init
    
  3. Clone this repo.

    git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
    cd python-docs-samples/appengine/flexible
    
  4. Open a sample folder, create a virtualenv, install dependencies, and run the sample:

    cd hello-world
    virtualenv env
    source env/bin/activate
    pip install -r requirements.txt
    python main.py
    
  5. Visit the application at http://localhost:8080.

Deploying

Some samples in this repositories may have special deployment instructions. Refer to the readme in the sample directory.

  1. Use the Google Developers Console to create a project/app id. (App id and project id are identical)

  2. Setup the gcloud tool, if you haven't already.

    gcloud init
    
  3. Use gcloud to deploy your app.

    gcloud app deploy
    
  4. Congratulations! Your application is now live at your-app-id.appspot.com

Contributing changes

Licensing