Metadata-Version: 1.1
Name: restit
Version: 0.2.6
Summary: HTTP REST library including OOP-readiness and Open-API generation
Home-page: https://restit.readthedocs.io/en/latest/
Author: Erik Tuerke
Author-email: UNKNOWN
License: UNKNOWN
Description: RestIt
        ======
        
        .. image:: https://readthedocs.org/projects/restit/badge/?version=latest
           :target: https://restit.readthedocs.io/en/latest/?badge=latest
        
        .. image:: https://coveralls.io/repos/github/Rollmops/restit/badge.svg?branch=master
           :target: https://coveralls.io/github/Rollmops/restit?branch=master
        
        .. image:: https://github.com/Rollmops/restit/workflows/Python%20package/badge.svg
           :target: https://github.com/Rollmops/restit/workflows/Python%20package/badge.svg
        
        Python HTTP REST library including OOP-readiness and Open-API generation
        
        For a more comprehensive documentation see: https://restit.readthedocs.io/en/latest/
        
        Features
        --------
        
        - `WSGI <https://www.python.org/dev/peps/pep-3333/>`_ conform
        - Validation (using `marshmallow <https://marshmallow.readthedocs.io/en/stable/>`_)
            - query parameter validation
            - path parameter validation
            - request body validation
            - response body validation
        - `OpenApi <https://swagger.io/docs/specification/about/>`_ documentation generation
        - *OOP*-ready (no module-based global instances necessary)
        - Easy hyperlink generation
        - Easy to test
        
        Quick example
        -------------
        
        .. code-block:: python
        
            from restit import Request, Resource, Response, RestItApp
            from restit.decorator import path
        
        
            @path("/")
            class IndexResource(Resource):
                def get(self, request: Request) -> Response:
                    return Response("Hello from index.")
        
        
            app = RestItApp(resources=[IndexResource()])
        
        
            if __name__ == "__main__":
                # start a development server on http://127.0.0.1:5000
                app.start_development_server()
        
        
        You can also use a production-ready server like `Gunicorn <https://gunicorn.org/>`_
        (given the name of the above module is `restit_app_test.py`):
        
        .. code-block:: bash
        
            gunicorn -w 4 restit_app_test:app
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
