Top 20 Python API Frameworks with OpenAPI Support

This page summarizes the projects mentioned and recommended in the original post on dev.to

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. Robyn

    Robyn is a Super Fast Async Python Web Framework with a Rust runtime.

    It seems like every month, a new Python web framework is launched - with a new set of features, better performance, or a cleaner syntax than its predecessors. One feature that often gets ignored, however, is OpenAPI support. We've talked at great lengths about the benefits of OpenAPI - including marketing your API - but in short, OpenAPI generation via web framework is the best way to make sure your API documentation matches your API implementation. It seems like newer frameworks are starting to realize the importance of OpenAPI - with some frameworks like Robyn, adding OpenAPI docs generation as a part of the beta.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. uvicorn

    An ASGI web server, for Python. 🦄

    Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools. It is designed to run asynchronous Python web applications, particularly those built with frameworks like FastAPI, Starlette, and others.

  4. drf-yasg

    Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.

    Third-Party Packages: OpenAPI support via packages like drf-yasg (OpenAPI 2.x / Swagger) and drf-spectacular (OpenAPI 3.x).

  5. starlette

    The little ASGI framework that shines. 🌟

    Starlette is a lightweight ASGI framework/toolkit, ideal for building high-performance async services in Python. It provides the essential components needed to build web applications, including routing, middleware, sessions, and more.

  6. drf-spectacular

    Sane and flexible OpenAPI 3 schema generation for Django REST framework.

    Third-Party Packages: OpenAPI support via packages like drf-yasg (OpenAPI 2.x / Swagger) and drf-spectacular (OpenAPI 3.x).

  7. BlackSheep

    Fast ASGI web framework for Python

    BlackSheep is an asynchronous web framework to build event-based web applications with Python.

  8. APIFairy

    A minimalistic API framework built on top of Flask, Marshmallow and friends.

    Extensions Required: Uses extensions like APIFairy, or Flask-Smorest for OpenAPI support.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. flask-smorest

    DB agnostic framework to build auto-documented REST APIs with Flask and marshmallow

    Extensions Required: Uses extensions like APIFairy, or Flask-Smorest for OpenAPI support.

  11. django-rest-framework

    Web APIs for Django. 🎸

    Django REST Framework is a powerful and flexible toolkit for building Web APIs using Django, the popular high-level Python web framework. Zuplo proudly sponsors the DRF project to continue improving the Django API development ecosystem.

  12. eve-swagger

    Swagger extension for Eve-powered RESTful APIs

    Extension Required: Uses eve-swagger to generate Swagger/OpenAPI documentation.

  13. falcon-openapi

    An OpenAPI first approach to Falcon APIs

    Extensions Required: Libraries like falcon-openapi or falcon-apispec enable OpenAPI support. It's worth noting that it's been many years since either of these extensions have been updated.

  14. falcon-apispec

    apispec plugin that generates OpenAPI specification (aka Swagger Docs) for Falcon web applications.

    Extensions Required: Libraries like falcon-openapi or falcon-apispec enable OpenAPI support. It's worth noting that it's been many years since either of these extensions have been updated.

  15. Pyramid

    Pyramid - A Python web framework

    Pyramid is a small, fast, down-to-earth Python web framework. It is designed to make creating web applications easier.

  16. bottle-swagger

    A Bottle plugin for Swagger REST APIs

    Extensions Required: Use bottle-swagger or bottle-openapi-3.

  17. bottle-openapi-3

    OpenAPI 3.0 Support for the Bottle Web Framework

    Extensions Required: Use bottle-swagger or bottle-openapi-3.

  18. pyramid_openapi3

    Pyramid addon for OpenAPI3 validation of requests and responses.

    Extensions Required:pyramid_openapi3 is the latest extension, while others use Yelp's pyramid_swagger. If you use cornice to build APIs on top of Pyramid, you can use the cornice-swagger extension to add OpenAPI support.

  19. pyramid_swagger

    Convenient tools for using Swagger to define and validate your interfaces in a Pyramid webapp.

    Extensions Required:pyramid_openapi3 is the latest extension, while others use Yelp's pyramid_swagger. If you use cornice to build APIs on top of Pyramid, you can use the cornice-swagger extension to add OpenAPI support.

  20. responder

    A familiar HTTP Service Framework for Python. (by kennethreitz)

    Responder is a web framework for Python that aims to bring the best of Flask, Falcon, and others into one.

  21. tornado-swagger

    Swagger API Documentation builder for tornado server.

    Extensions Required: Use tornado-swagger or similar libraries.

  22. fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

    FastAPI is a modern, high-performance web framework for building APIs with Python 3.6+ based on standard Python type hints. It is designed for quick development and high efficiency. Zuplo is a proud sponsor of the FastAPI project, to help drive API development in Python.

  23. connexion

    Connexion is a modern Python web framework that makes spec-first and api-first development easy.

    Connexion is a framework that automagically handles HTTP requests based on OpenAPI specification, built on top of Flask.

  24. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Understanding Uvicorn: The basics

    3 projects | dev.to | 13 Mar 2025
  • I built a word guessing game with LLM

    6 projects | dev.to | 24 Feb 2025
  • Best Backend Frameworks for 2025: A Developer's Guide to Making the Right Choice

    8 projects | dev.to | 2 Feb 2025
  • Building a crashproof cloud backend in Python using REST and PostgreSQL

    4 projects | dev.to | 11 Oct 2024
  • Understanding WebSockets using Python

    2 projects | dev.to | 8 Sep 2024

Did you know that Python is
the 2nd most popular programming language
based on number of references?