Python OpenAPI

Open-source Python projects categorized as OpenAPI

Top 23 Python OpenAPI Projects

  • fastapi

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

    Project mention: Why I made TabbyAPI | | 2024-07-12

    But was the plan really that simple? Well, kind of. While I had the people for the job, my knowledge in Python and API servers was basically 0. I ended up using a webserver framework called FastAPI which made my life much easier. It’s also very popular in the python community and well documented.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • django-ninja

    πŸ’¨ Fast, Async-ready, Openapi, type hints based framework for building APIs

    Project mention: Building a SaaS app using Django | | 2024-07-08

    When developing a SaaS application, you might choose to create a REST API and use a frontend framework like React.js or Vue.js. In this case you'd have two choices, one go with Django rest framework or go with Django ninja

  • litestar

    Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs

    Project mention: Build Performant APIs, Light, Flexible and Extensible ASGI API Framework | | 2024-07-04
  • connexion

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

    Project mention: Write OpenAPI with TypeSpec | | 2024-03-27

    I like the idea, especially the TS-like syntax around enums and union types. I've always preferred the SDL for GraphQL vs writing OpenAPI for similar reasons.

    I echo the sentiment others have brought up, which is the trade-offs of a code-driven schema vs schema-driven code.

    At work we use Pydantic and FastAPI to generate the OpenAPI contract, but there's some cruft and care needed around exposing those underlying Pydantic models through the API documentation. It's been easy to create schemas that have compatibility problems when run through other code generators. I know there are projects such as connexction[1] which attempt to inverse this, but I don't have much experience with it. In the GraphQL space it seems that code-first approaches are becoming more favored, though there's a different level of complexity needed to create a "typesafe" GraphQL server (eg. model mismatches between root query resolvers and field resolvers).


  • flasgger

    Easy OpenAPI specs and Swagger UI for your Flask API

  • drf-yasg

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

  • uvicorn-gunicorn-fastapi-docker

    Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python with performance auto-tuning.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • datamodel-code-generator

    Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.

    Project mention: Datamodel-code-generator: Pydantic model/dataclass from OpenAPI, JSON, YAML | | 2023-11-16
  • best-of-web-python

    πŸ† A ranked list of awesome python libraries for web development. Updated weekly.

  • Schemathesis

    Supercharge your API testing, catch bugs, and ensure compliance

    Project mention: Ask HN: Any Good Fuzzer for gRPC? | | 2024-03-21

    I am not aware of any tools like that, but eventually, I plan to add support for gRPC fuzzing to Schemathesis. There were already some discussions and it is more or less clear how to move forward. See

  • fastapi-crudrouter

    A dynamic FastAPI router that automatically creates CRUD routes for your models

  • openapi-python-client

    Generate modern Python clients from OpenAPI

    Project mention: What makes a good REST API? | | 2024-05-15

    openapi-python-client: Generate API client for Python

  • apispec

    A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..

  • apiflask

    A lightweight Python web API framework.

  • agent-protocol

    Common interface for interacting with AI agents. The protocol is tech stack agnostic - you can use it with any framework for building agents.

    Project mention: Show HN: Common protocol for communication with (and between) AI Agents | | 2023-08-09
  • mashumaro

    Fast and well tested serialization library

    Project mention: DotDict: A simple Python library to make chained attributes possible | | 2023-08-02
  • flask-smorest

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

  • bravado

    Bravado is a python client library for Swagger 2.0 services

  • fastapi-azure-auth

    Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs πŸ”’ B2C, single- and multi-tenant support.

    Project mention: FastUI: Build Better UIs Faster | | 2024-03-01

    I'm under the impression that you work for a company that sells services related to FastAPI?

    I maintain an open source library in my spare time for free, that you are welcome to ignore if you find better alternatives.

  • APIFuzzer

    Fuzz test your application using your OpenAPI or Swagger API definition without coding

    Project mention: APIFuzzer – HTTP API Testing Framework | | 2023-08-18
  • safrs

    SqlAlchemy Flask-Restful Swagger Json:API OpenAPI

  • pyswagger

    An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.

  • openapi-spec-validator

    OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.

  • SaaSHub

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

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python OpenAPI discussion

Log in or Post with

Python OpenAPI related posts

  • What a fascinating python framework!

    1 project | | 19 May 2024
  • FastAPI Got Me an OpenAPI Spec Really... Fast

    4 projects | | 22 Apr 2024
  • Django Ninja is a web framework for building APIs with Django

    1 project | | 2 Mar 2024
  • GraphQL is for Backend Engineers

    1 project | | 5 Feb 2024
  • Effortless API Documentation: Accelerating Development with FastAPI, Swagger, and ReDoc

    3 projects | | 28 Dec 2023
  • It's Christmas day. You wake up, run to the tree, tear open the largest package with your name on it... FastAPI has added _____?

    4 projects | /r/Python | 6 Dec 2023
  • Django Ninja

    1 project | /r/savedForMS | 5 Dec 2023
  • A note from our sponsor - InfluxDB | 24 Jul 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more β†’


What are some of the best open-source OpenAPI projects in Python? This list will help you:

Project Stars
1 fastapi 73,745
2 django-ninja 6,671
3 litestar 5,165
4 connexion 4,458
5 flasgger 3,550
6 drf-yasg 3,370
7 uvicorn-gunicorn-fastapi-docker 2,633
8 datamodel-code-generator 2,474
9 best-of-web-python 2,247
10 Schemathesis 2,186
11 fastapi-crudrouter 1,350
12 openapi-python-client 1,186
13 apispec 1,158
14 apiflask 992
15 agent-protocol 875
16 mashumaro 740
17 flask-smorest 638
18 bravado 600
19 fastapi-azure-auth 417
20 APIFuzzer 412
21 safrs 402
22 pyswagger 382
23 openapi-spec-validator 326

Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in is all you need to start monitoring your apps. Sign up for our free tier today.

Did you konow that Python is
the 1st most popular programming language
based on number of metions?