The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 Python OpenAPI Projects
-
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.
-
litestar
Production-ready, Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs
-
connexion
Connexion is a modern Python web framework that makes spec-first and api-first development easy.
-
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.
-
datamodel-code-generator
Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
-
apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
-
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.
-
fastapi-azure-auth
Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
-
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
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.
Project mention: Ask HN: What Underrated Open Source Project Deserves More Recognition? | news.ycombinator.com | 2024-03-07Django Ninja [1], it forever changed how I write Django project, in a way so elegant and productive.
[1]: https://django-ninja.dev/
Project mention: Litestar – powerful, flexible, and highly performant Python ASGI framework | news.ycombinator.com | 2024-02-26What 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-...
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
Project mention: Datamodel-code-generator: Pydantic model/dataclass from OpenAPI, JSON, YAML | news.ycombinator.com | 2023-11-16
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...
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.
Project mention: Show HN: Common protocol for communication with (and between) AI Agents | news.ycombinator.com | 2023-08-09
Project mention: DotDict: A simple Python library to make chained attributes possible | news.ycombinator.com | 2023-08-02
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.
Python OpenAPI related posts
- FastAPI Got Me an OpenAPI Spec Really... Fast
- Django Ninja is a web framework for building APIs with Django
- GraphQL is for Backend Engineers
- Effortless API Documentation: Accelerating Development with FastAPI, Swagger, and ReDoc
- It's Christmas day. You wake up, run to the tree, tear open the largest package with your name on it... FastAPI has added _____?
- Django Ninja
- Django 5.0 Is Released
-
A note from our sponsor - WorkOS
workos.com | 26 Apr 2024
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