Skip to main content

HTTP REST library including OOP-readiness and Open-API generation

Project description

Python HTTP REST library including OOP-readiness and Open-API generation

For a more comprehensive documentation see:


  • WSGI conform
  • Validation (using marshmallow)
    • query parameter validation
    • path parameter validation
    • request body validation
    • response body validation
  • OpenApi documentation generation
  • OOP-ready (no module-based global instances necessary)
  • Easy hyperlink generation
  • Exception mapping
  • Response serialization customization
  • Request deserialization customization
  • Easy to test

Quick example

from restit import Request, Resource, Response, RestItApp
from restit.decorator import 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

You can also use a production-ready server like Gunicorn (given the name of the above module is

gunicorn -w 4 restit_app_test:app

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restit-0.3.2.tar.gz (5.2 MB view hashes)

Uploaded source

Built Distribution

restit-0.3.2-py3-none-any.whl (5.3 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page