Google App Engine Python 3 Standard Environment API library
Project description
Google App Engine Python 3 Standard Environment API library (private preview)
This is a private preview release of the App Engine SDK for Python 3. It provides access to various API endpoints that were previously only available on the Python 2.7 runtime.
To sign up for the private preview, visit https://docs.google.com/forms/d/e/1FAIpQLSd1hFLA2UFSYwIMxm9ZI3pwigORZBgjJRH0qrnhtE7nvhhRCQ/viewform.
Using the SDK
In your requirements.txt
file, add the following:
appengine-python-standard>=0.2.1
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
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 beta app deploy
(currently only the Beta version has the capability to enable these APIs). 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.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for appengine-python-standard-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ebcbeeda66891e72b827c79f858c10587bb2ec4c29b043dd35c3ec073f1b5c |
|
MD5 | 0dcc55bcda568fee7970205b5e2dfd3c |
|
BLAKE2b-256 | ebab223f09e70f8e0c1376df8bef1caf6e0e800bafb1f53ca5d96efc1269312c |
Hashes for appengine_python_standard-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8272f0766a850de4627a7450782a41996792446f34f4a780243d1806c59d95db |
|
MD5 | 1d5f982fac8d86634b5846a45044a6ce |
|
BLAKE2b-256 | bf1e5363b5b2616a099bd29cb3d080872c51de3beb778890d5cf138c2bd80414 |