Metadata-Version: 2.1
Name: make-response
Version: 1
Summary: Format the responses in flask
Home-page: https://github.com/SandaruThilakarathne/make_response
Author: Theesh
Author-email: theekshana.sandaru@gmail.com
License: MIT
Download-URL: https://github.com/SandaruThilakarathne/make_response/archive/v0.6.tar.gz
Description: # Response Formatter
        This library will help you to work with flask application without hesitating responses and exception in routes.
        
        #### How to use
            
        1)  To get exceptions as response messages use like below. Make sure to set 'allow_exception=False'.
            Once you done you would be able work without breaking when exception comes. The exception will come
            as a response
            
                from make_response.format import response_format
                
                @app.route('/')
                @response_format(allow_exception=False)
                def hello_world():
                    return {}, True, 200, 'message'
            
        2) For see the exceptions. Once you give 'allow_exception=True' it will allows to raise the exception and
           the app would brake as usual way.
           
               from make_response.format import response_format
               
               @app.route('/')
               @response_format(allow_exception=True)
               def hello_world():
                   return {}, True, 200, 'message'
         
                         
Keywords: flask
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
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.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
