Bonnette
ASGI adapter for Azure Functions.
Requirements: Python 3.6
Installation
pip3 install bonnette
Example
import logging
import azure.functions as func
from bonnette import Bonnette
async def app(scope, receive, send):
assert scope["type"] == "http"
await send(
{
"type": "http.response.start",
"status": 200,
"headers": [[b"content-type", b"text/html; charset=utf-8"]],
}
)
await send(
{"type": "http.response.body", "body": b"<html><h1>Hello, world!</h1></html>"}
)
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info("Python HTTP trigger function processed a request.")
handler = Bonnette(app)
return handler(req)
Metadata
Release files for bonnette 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bonnette-0.1.1.tar.gz | 3.8 kB | Without provenance | Details for bonnette-0.1.1.tar.gz |
Release files / bonnette-0.1.1.tar.gz
| Download URL | bonnette-0.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70ef837c523bce1785bfd43400311c73bed4971884b30d21583e067e0b28e2cf
|
|
BLAKE2b-256 checksum How to use checksums |
e258440a1dadad51d86a69592eca4822840b6f7f4659c695637dc5fcc43e01b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8rc1
|
Security for bonnette 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.