Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Google App Engine bundled services SDK for Python 3

This is a release of the App Engine services SDK for Python 3. It provides access to various services and API endpoints that were previously only available on the Python 2.7 runtime.

See the documentation to learn more about using this SDK, and learn more about it in this product announcement (Fall 2021).

Additional examples (Datastore [NDB], Task Queues [push tasks], Memcache) can be found in the App Engine migration repo. (Specifically look for samples whose folders have a b but where the Python 2 equivalent folder does not have an a, meaning this SDK is required, e.g., Modules 1 [mod1 and mod1b], 7, 12, etc.)

Using the SDK

In your requirements.txt file, add the following:

appengine-python-standard>=1.0.0

To use a pre-release version (Eg. 1.0.1-rc1), modify the above line to appengine-python-standard>=[insert_version] (Eg. appengine-python-standard>=1.0.1-rc1).

In your app's app.yaml, add the following:

app_engine_apis: true

In your main.py, import google.appengine.api.wrap_wsgi_app() and call it on your WSGI app object.

Example for a standard WSGI app:

import google.appengine.api

def app(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    yield b'Hello world!\n'

app = google.appengine.api.wrap_wsgi_app(app)

Example for a Flask app:

import google.appengine.api
from flask import Flask, request

app = Flask(__name__)
app.wsgi_app = google.appengine.api.wrap_wsgi_app(app.wsgi_app)

Then deploy your app as usual, with gcloud app deploy. The following modules are available:

  • google.appengine.api.app_identity
  • google.appengine.api.background_thread
  • google.appengine.api.blobstore
  • google.appengine.api.capabilities
  • google.appengine.api.croninfo
  • google.appengine.api.dispatchinfo
  • google.appengine.api.images
  • google.appengine.api.mail
  • google.appengine.api.memcache
  • google.appengine.api.modules
  • google.appengine.api.oauth
  • google.appengine.api.runtime
  • google.appengine.api.search
  • google.appengine.api.taskqueue
  • google.appengine.api.urlfetch
  • google.appengine.api.users
  • google.appengine.ext.blobstore
  • google.appengine.ext.db
  • google.appengine.ext.gql
  • google.appengine.ext.key_range
  • google.appengine.ext.ndb
  • google.appengine.ext.testbed

Using the development version of the SDK

To install the code from the main branch on GitHub rather than the latest version published to PyPI, put this in your requirements.txt file instead of appengine-python-standard:

https://github.com/GoogleCloudPlatform/appengine-python-standard/archive/main.tar.gz

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appengine_python_standard-3.1.0b0.tar.gz (844.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appengine_python_standard-3.1.0b0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file appengine_python_standard-3.1.0b0.tar.gz.

File metadata

File hashes

Hashes for appengine_python_standard-3.1.0b0.tar.gz
Algorithm Hash digest
SHA256 dac279f29a122f10bc1c7fed90c8ee03873a96e5df7dbd27e7d4750eeb63faf8
MD5 0459d9233cb5b346e45cbcf3708b3b16
BLAKE2b-256 28d0635d58093c8a6eb9d7af71c19a4a7423fa8dff81b6eacfcbfcbed0be5e11

See more details on using hashes here.

File details

Details for the file appengine_python_standard-3.1.0b0-py3-none-any.whl.

File metadata

File hashes

Hashes for appengine_python_standard-3.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d73570cba4e1b99fc4438a6e068693149967e92024a1b4428017248300a4ef69
MD5 a3c86ced6949f8041d61e9328fd162c3
BLAKE2b-256 e71faa44be240ae8103d60d0bc0d4f613a6b9e20c15d6184740e3223113ab50f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page