# 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](https://cloud.google.com/appengine/docs/standard/python3/services/access) to learn more about using this SDK, and learn more about it in [this product announcement](http://cloud.google.com/blog/products/serverless/support-for-app-engine-services-in-second-generation-runtimes) (Fall 2021).
Additional examples (Datastore [NDB], Task Queues [push tasks], Memcache) can be found in the [App Engine migration repo](https://github.com/googlecodelabs/migrate-python2-appengine). (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`
Raw data
{
"_id": null,
"home_page": "https://github.com/GoogleCloudPlatform/appengine-python-standard",
"name": "appengine-python-standard",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Google LLC",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/2c/49/c9569a830638e1509c8508d33901ca8e2b5303fecc11a585b973b936fc44/appengine_python_standard-1.1.9.tar.gz",
"platform": null,
"description": "# Google App Engine bundled services SDK for Python 3\n\nThis 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.\n\nSee the [documentation](https://cloud.google.com/appengine/docs/standard/python3/services/access) to learn more about using this SDK, and learn more about it in [this product announcement](http://cloud.google.com/blog/products/serverless/support-for-app-engine-services-in-second-generation-runtimes) (Fall 2021).\n\nAdditional examples (Datastore [NDB], Task Queues [push tasks], Memcache) can be found in the [App Engine migration repo](https://github.com/googlecodelabs/migrate-python2-appengine). (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.)\n\n\n## Using the SDK\n\nIn your `requirements.txt` file, add the following:\n\n`appengine-python-standard>=1.0.0`\n\nTo 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`).\n\nIn your app's `app.yaml`, add the following:\n\n`app_engine_apis: true`\n\nIn your `main.py`, import `google.appengine.api.wrap_wsgi_app()` and call it on your\nWSGI app object.\n\nExample for a standard WSGI app:\n\n import google.appengine.api\n\n def app(environ, start_response):\n start_response('200 OK', [('Content-Type', 'text/plain')])\n yield b'Hello world!\\n'\n\n app = google.appengine.api.wrap_wsgi_app(app)\n\nExample for a Flask app:\n\n import google.appengine.api\n from flask import Flask, request\n\n app = Flask(__name__)\n app.wsgi_app = google.appengine.api.wrap_wsgi_app(app.wsgi_app)\n\nThen deploy your app as usual, with `gcloud app deploy`. The following modules are available:\n\n- `google.appengine.api.app_identity`\n- `google.appengine.api.background_thread`\n- `google.appengine.api.blobstore`\n- `google.appengine.api.capabilities`\n- `google.appengine.api.croninfo`\n- `google.appengine.api.dispatchinfo`\n- `google.appengine.api.images`\n- `google.appengine.api.mail`\n- `google.appengine.api.memcache`\n- `google.appengine.api.modules`\n- `google.appengine.api.oauth`\n- `google.appengine.api.runtime`\n- `google.appengine.api.search`\n- `google.appengine.api.taskqueue`\n- `google.appengine.api.urlfetch`\n- `google.appengine.api.users`\n- `google.appengine.ext.blobstore`\n- `google.appengine.ext.db`\n- `google.appengine.ext.gql`\n- `google.appengine.ext.key_range`\n- `google.appengine.ext.ndb`\n- `google.appengine.ext.testbed`\n\n\n## Using the development version of the SDK\n\nTo install the code from the `main` branch on GitHub rather than the latest\nversion published to PyPI, put this in your `requirements.txt` file instead of\n`appengine-python-standard`:\n\n`https://github.com/GoogleCloudPlatform/appengine-python-standard/archive/main.tar.gz`\n",
"bugtrack_url": null,
"license": null,
"summary": "Google App Engine services SDK for Python 3",
"version": "1.1.9",
"project_urls": {
"Homepage": "https://github.com/GoogleCloudPlatform/appengine-python-standard"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea4cd81c3a25133feeb2cad54af919e1fc62baa9125ad4687edcd621d61b4d71",
"md5": "6a78112e3520b8b03295c4433a37b439",
"sha256": "d8465c42d0a278ecd16eb1071afb330ba18ce613d50ead9160d35c644ebd6c07"
},
"downloads": -1,
"filename": "appengine_python_standard-1.1.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6a78112e3520b8b03295c4433a37b439",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.6",
"size": 993575,
"upload_time": "2024-12-09T06:55:04",
"upload_time_iso_8601": "2024-12-09T06:55:04.151587Z",
"url": "https://files.pythonhosted.org/packages/ea/4c/d81c3a25133feeb2cad54af919e1fc62baa9125ad4687edcd621d61b4d71/appengine_python_standard-1.1.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2c49c9569a830638e1509c8508d33901ca8e2b5303fecc11a585b973b936fc44",
"md5": "bf157778686a815f14210b208340fa4a",
"sha256": "0e93be75ce4a5f4ed269877b14f3c77dc8f896cefc117dff0d7630473cc2bb05"
},
"downloads": -1,
"filename": "appengine_python_standard-1.1.9.tar.gz",
"has_sig": false,
"md5_digest": "bf157778686a815f14210b208340fa4a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.6",
"size": 836888,
"upload_time": "2024-12-09T06:55:06",
"upload_time_iso_8601": "2024-12-09T06:55:06.254740Z",
"url": "https://files.pythonhosted.org/packages/2c/49/c9569a830638e1509c8508d33901ca8e2b5303fecc11a585b973b936fc44/appengine_python_standard-1.1.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-09 06:55:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "GoogleCloudPlatform",
"github_project": "appengine-python-standard",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "appengine-python-standard"
}