Skip to main content

Google Cloud Functions support for ASGI

Project description

grevillea

Work in Progress

Google Cloud Functions support for ASGI

Requirements

Python 3.7

Installation

pip3 install grevillea

Example

from grevillea import Grevillea

async def app(scope, receive, send):
    await send(
        {
            "type": "http.response.start",
            "status": 200,
            "headers": [[b"content-type", b"text/plain; charset=utf-8"]],
        }
    )
    await send({"type": "http.response.body", "body": b"Hello, world!"})


handler = Grevillea(app)

Project details


Download files

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

Source Distribution

grevillea-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file grevillea-0.0.1.tar.gz.

File metadata

  • Download URL: grevillea-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

File hashes

Hashes for grevillea-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e6119c380d0a7deb55a3eb25dc812e65789d7633fe8af652e6f45afecc65f23
MD5 7fd3bbaacb85c3bdadeb063652b5c2cb
BLAKE2b-256 4a9e233b039bf03b479a1de7e062146441735d8e0e9c0c0298ce8dcf597e6f8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page