Metadata-Version: 2.1
Name: sanic_camelcase_middleware
Version: 1.2.0
Summary: Middleware for camelizing request and response bodies for Sanic
Home-page: https://ahmednafies.github.io/sanic_camelcase_middleware/
Author: Ahmed Nafies
Author-email: ahmed.nafies@gmail.com
License: MIT
Project-URL: Documentation, https://ahmednafies.github.io/sanic_camelcase_middleware/
Project-URL: Source, https://github.com/ahmednafies/sanic_camelcase_middleware
Description: # Sanic Camelcase Middleware
        
        [![CircleCI](https://circleci.com/gh/ahmednafies/sanic_camelcase_middleware.svg?style=shield)](https://circleci.com/gh/ahmednafies/sanic_camelcase_middleware) [![codecov](https://codecov.io/gh/ahmednafies/sanic_camelcase_middleware/branch/master/graph/badge.svg)](https://codecov.io/gh/ahmednafies/sanic_camelcase_middleware) [![Downloads](https://pepy.tech/badge/sanic-camelcase-middleware)](https://pepy.tech/project/sanic-camelcase-middleware) ![GitHub Pipenv locked Python version](https://img.shields.io/github/pipenv/locked/python-version/ahmednafies/sanic_camelcase_middleware) ![GitHub](https://img.shields.io/github/license/ahmednafies/sanic_camelcase_middleware)
        
        Middleware for camelizing request and response bodies for sanic
        
        Full documentation can be found [here](https://ahmednafies.github.io/sanic_camelcase_middleware/)
        
        ## How to install
        
        ```bash
            pip install sanic-camelcase-middlware
        ```
        
        ### Example
        
        ```python
            from sanic import Sanic
            from sanic_camelcase_middleware import Camelize
        
            app = Sanic(__name__)
            Camelize(app)
        ```
        
        ### Full example
        
        ```python
            from sanic import Sanic
            from sanic.response import json
            from sanic_camelcase_middleware import Camelize
        
            app = Sanic(__name__)
        
            Camelize(app)
        
        
            @app.route("/post", methods=["POST"])
            async def test(request):
                return json("is_camelcase": True, "message": request.json})
        
        
            if __name__ == "__main__":
                app.run(host="0.0.0.0", port=8000)
        ```
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
