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: Building an Email Assistant Application with Burr | dev.to | 2024-04-26

    In this tutorial, I will demonstrate how to use Burr, an open source framework (disclosure: I helped create it), using simple OpenAI client calls to GPT4, and FastAPI to create a custom email assistant agent. We’ll describe the challenge one faces and then how you can solve for them. For the application frontend we provide a reference implementation but won’t dive into details for it.

  • django-ninja

    💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

  • Project mention: Ask HN: What Underrated Open Source Project Deserves More Recognition? | news.ycombinator.com | 2024-03-07

    Django Ninja [1], it forever changed how I write Django project, in a way so elegant and productive.

    [1]: https://django-ninja.dev/

  • 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
  • litestar

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

  • Project mention: Litestar – powerful, flexible, and highly performant Python ASGI framework | news.ycombinator.com | 2024-02-26

    What would you like to see here? Could you perhaps open an issue at https://github.com/litestar-org/litestar so we can track and implement this?

    If you are just needing a client what you need should be available OOTB, unless you want more hands off.

    Here is also a good article for example: https://dev.to/pbaletkeman/secure-python-litestar-site-with-...

  • connexion

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

  • Project mention: Write OpenAPI with TypeSpec | news.ycombinator.com | 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).

    [1] https://github.com/spec-first/connexion

  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS 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 | news.ycombinator.com | 2023-11-16
  • best-of-web-python

    🏆 A ranked list of awesome python libraries for web development. Updated weekly.

  • Schemathesis

    Automate your API Testing: catch crashes, validate specs, and save time

  • Project mention: Ask HN: Any Good Fuzzer for gRPC? | news.ycombinator.com | 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 https://github.com/schemathesis/schemathesis/discussions/190...

  • fastapi-crudrouter

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

  • apispec

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

  • openapi-python-client

    Generate modern Python clients from OpenAPI

  • Project mention: GraphQL is for Backend Engineers | dev.to | 2024-02-05

    On the backend, developers either need to manually document the entire API or rely on auto-generation tools that don’t fully meet their needs. Consumers face the same choice, write code by hand or workaround the bugs in their SDK generator (stated, lovingly, as the maintainer of an OpenAPI client generator). On top of this, these solutions result in inconsistent understandings of the API. Reproducing errors becomes time-consuming and frustrating, which feels like a battle instead of a collaboration. What we need is a shared language to describe how the API works—one that doesn’t add unnecessary layers of abstraction or manual work.

  • 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 | news.ycombinator.com | 2023-08-09
  • mashumaro

    Fast and well tested serialization library

  • Project mention: DotDict: A simple Python library to make chained attributes possible | news.ycombinator.com | 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

  • safrs

    SqlAlchemy Flask-Restful Swagger Json:API OpenAPI

  • APIFuzzer

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

  • Project mention: APIFuzzer – HTTP API Testing Framework | news.ycombinator.com | 2023-08-18
  • 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 | news.ycombinator.com | 2024-03-01

    I'm under the impression that you work for a company that sells services related to FastAPI? https://github.com/Intility/fastapi-azure-auth

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

  • 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 related posts

Index

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

Project Stars
1 fastapi 70,779
2 django-ninja 6,197
3 litestar 4,416
4 connexion 4,416
5 flasgger 3,491
6 drf-yasg 3,322
7 uvicorn-gunicorn-fastapi-docker 2,520
8 datamodel-code-generator 2,302
9 best-of-web-python 2,163
10 Schemathesis 2,091
11 fastapi-crudrouter 1,304
12 apispec 1,134
13 openapi-python-client 1,066
14 apiflask 954
15 agent-protocol 754
16 mashumaro 729
17 flask-smorest 619
18 bravado 600
19 safrs 397
20 APIFuzzer 394
21 fastapi-azure-auth 388
22 pyswagger 379
23 openapi-spec-validator 315

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com