Top 23 Python OpenAPI Projects
FastAPI framework, high performance, easy to learn, fast to code, ready for productionProject mention: Stripe Open Sources Markdoc | news.ycombinator.com | 2022-05-11
Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more.Project mention: Ask HN: I just got my first job and I need to learn faster and better | news.ycombinator.com | 2022-03-08
I wouldn't overthink this, no ones expecting a new hire to instantly pick up the codebase. You mentioned you only got generic advice from the other developer, did you ask generic questions? It's difficult to answer vague questions. Most importantly I wouldn't extrapolate your experience at this company to sweeping generalizations about how smart you are - there's close to 0 correlation.
As for FastAPI specifically I'd check out the sample postgresql project tiangalo made, it's incredibly well put together.
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 supportProject mention: How much front-end knowledge is required to work in Flask? | reddit.com/r/flask | 2022-04-26
I do like to use their SQLAlchemy ModelView for CRUD operations and expose a OpenAPI to it using flask based connexion project for front-end or other integration points.
An implementation of the JSON Schema specification for PythonProject mention: I wrote okjson - A fast, simple, and pythonic JSON Schema Validator | reddit.com/r/Python | 2022-03-31
I had a requirement to process and validate large payloads of JSON concurrently for a web service, initially I implemented it using jsonschema and fastjsonschema but I found the whole JSON Schema Specification to be confusing at times and on top of that wanted better performance. Albeit there are ways to compile/cache the schema, I wanted to move away from the schema specification so I wrote a validation library inspired by the design of tiangolo/sqlmodel (type hints) to solve this problem easier.
Easy OpenAPI specs and Swagger UI for your Flask APIProject mention: FastAPI vs. Flask: Comparing the Pros and Cons of Top Microframeworks for Building a REST API in Python | dev.to | 2022-03-26
Flask offers extensions, such as Flask-Swagger or Flasgger, which operate using the specification mentioned above. They require additional installation and knowledge of the format used by these standards.
💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
Django Ninja (Django, but minimal like flask + Pydantic)
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.Project mention: Deploying Django Rest Framework with Postgres on fly.io | dev.to | 2021-12-30
Swagger and OpenAPI capabilities using drf-yasg, where you can only see endpoints and Swagger docs if you have a valid Token
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.6 and above with performance auto-tuning. Optionally with Alpine Linux.Project mention: Please share or link to a FastApi tutorial with VM or containerized webserver | reddit.com/r/FastAPI | 2021-12-03
There is a prepackaged docker image using uvicorn/gunicorn from the same guy who made fastapi. Read me should be enough for you to get going. https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker Also be worth reading offical docs on doing this yourself too. https://fastapi.tiangolo.com/uk/deployment/docker/
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
A modern API testing tool for web applications built with Open API and GraphQL specifications.Project mention: Generating arbitrary queries for a GraphQL schema | reddit.com/r/graphql | 2022-05-02
P.S. There is a higher-level tool that wraps this library (so, one doesn't have to write Python code)
Pydantic model generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.Project mention: PSA: I think this JSON to Pydantic converter is extremely useful for boilerplate model creation | reddit.com/r/FastAPI | 2022-04-23
Not sure who owns/hosts the site, but its based on this github repo.
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
A dynamic FastAPI router that automatically creates CRUD routes for your modelsProject mention: FastAPI CRUD Router | news.ycombinator.com | 2022-02-02
Bravado is a python client library for Swagger 2.0 services
A lightweight Python web API framework.
APIFlask (Flask with Pydantic and all the other good stuff)
DB agnostic framework to build auto-documented REST APIs with Flask and marshmallow
Light, Flexible and Extensible ASGI API frameworkProject mention: What new in Starlite 1.1 | reddit.com/r/Python | 2022-02-14
One feature you could actually contribute to is this: https://github.com/starlite-api/starlite/issues/37
An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.
Generate modern Python clients from OpenAPIProject mention: YAML: It's Time to Move On | news.ycombinator.com | 2021-11-14
Thanks for the link, but not necessarily.
How WSDL and the code generation around it worked, was that you'd have a specification of the web API (much like OpenAPI attempts to do), which you could feed into any number of code generators, to get output code which has no coupling to the actual generator at runtime, whereas Pyotr is geared more towards validation and goes into the opposite direction: https://pyotr.readthedocs.io/en/latest/client/
The best analogy that i can think of is how you can also do schema first application development - you do your SQL migrations (ideally in an automated way as well) and then just run a command locally to generate all of the data access classes and/or models for your database tables within your application. That way, you save your time for 80% of the boring and repetitive stuff while minimizing the risks of human error and inconsistencies, while nothing preventing you from altering the generated code if you have specific needs (outside of needing to make it non overrideable, for example, a child class of a generated class). Of course, there's no reason why this can't be applied to server code either - write the spec first and generate stubs for endpoints that you'll just fill out.
Similarly there shouldn't be a need for a special client to generate stubs for OpenAPI, the closest that Python in particular has for now is this https://github.com/openapi-generators/openapi-python-client
However, for some reason, model driven development never really took off, outside of niche frameworks, like JHipster: https://www.jhipster.tech/
Furthermore, for whatever reason formal specs for REST APIs also never really got popular and aren't regarded as the standard, which to me seems silly: every bit of client code that you write will need a specific version to work against, which should be formalized.
SqlAlchemy Flask-Restful Swagger Json:API OpenAPIProject mention: Flask vs Flask RESTful API | reddit.com/r/flask | 2021-10-01
If you want to expose your database, i created this: https://github.com/thomaxxl/safrs/blob/master/docs/ExposeDB.md
Fuzz test your application using your OpenAPI or Swagger API definition without codingProject mention: Automated API Testing Tools | reddit.com/r/devsecops | 2022-05-16
OpenAPI Spec validatorProject mention: Validating RESTful-ness of Flask API | reddit.com/r/devops | 2021-08-17
I did find https://github.com/p1c2u/openapi-spec-validator and https://github.com/p1c2u/openapi-schema-validator, but I'm pretty new to the devops world so I'm not sure if these are exactly what I'm looking for. Any recommendations or advice is appreciated.
🔥 Fire up your API
Flama (Starlette, Marshmallow instead of Pydantic)
Python OpenAPI related posts
Show HN: Mitmproxy2swagger – Automagically reverse-engineer REST APIs
8 projects | news.ycombinator.com | 12 May 2022
Flask vs FastAPI?
11 projects | reddit.com/r/Python | 6 May 2022
APIFlask is a lightweight Python web API framework
2 projects | news.ycombinator.com | 5 May 2022
A lightweight Python web API framework
1 project | news.ycombinator.com | 4 May 2022
How much front-end knowledge is required to work in Flask?
1 project | reddit.com/r/flask | 26 Apr 2022
Django Ninja – Fast Django REST Framework
1 project | news.ycombinator.com | 25 Apr 2022
PSA: I think this JSON to Pydantic converter is extremely useful for boilerplate model creation
2 projects | reddit.com/r/FastAPI | 23 Apr 2022
What are some of the best open-source OpenAPI projects in Python? This list will help you:
Are you hiring? Post a new remote job listing for free.