Metadata-Version: 2.1
Name: bonnette
Version: 0.0.2
Summary: Azure Functions ASGI adapter
Home-page: https://github.com/erm/bonnette
Author: Jordan Eremieff
Author-email: jordan@eremieff.com
License: MIT
Description: # Bonnette
        
        ASGI adapter for Azure Functions.
        
        <a href="https://pypi.org/project/bonnette/">
            <img src="https://badge.fury.io/py/bonnette.svg" alt="Package version">
        </a>
        <a href="https://travis-ci.org/erm/bonnette">
            <img src="https://travis-ci.org/erm/bonnette.svg?branch=master" alt="Build Status">
        </a>
        
        This adapter was originally part of [Mangum](https://github.com/erm/mangum), an adapter for ASGI support on AWS Lambda & API Gateway.
        
        **Requirements**: Python 3.6
        
        ## Installation
        
        ```shell
        pip3 install bonnette
        ```
        
        ## Example
        
        Bonnette consists of a single adapter class for using ASGI applications on Azure Functions.
        
        ```python
        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>",
                }
            )
        
        handler = Bonnette(app)
        ```
        
        ## Dependencies
        
        `azure-functions` - *required* for Azure Function support.
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
