flask-pydantic
quart
Our great sponsors
flask-pydantic | quart | |
---|---|---|
4 | 5 | |
337 | 2,616 | |
- | 3.9% | |
6.4 | 8.0 | |
3 months ago | 26 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flask-pydantic
-
Validating JSON
Hi, depending on what kind of programming you do (i.e. use lots of type annotation) I'd recommend either Pydantic or Marshmallow. First comes usually paired with FastAPI, but both do a phantastic job. There's also an extension for Flask + Marshmallow as well for Flask + Pydantic. Personally I see Pydantic as the more modern one.
- Python Flask has no remaining open issues or pull requests
- How do professional SWEs keep learning more Python?
-
New major versions of Flask, Jinja, Click, and Werkzeug released!
flask_pydantic
quart
-
Ask HN: What have you created that deserves a second chance on HN?
I've three things :),
1. Quart, https://quart.palletsprojects.com, an ASGI (async/await) re-implementation of the Python web MicroFramework Flask. It is now maintained alongside, by the same people, as Flask.
2. Hypercorn, https://hypercorn.readthedocs.io, an ASGI/WSGI server that supports HTTP/1, HTTP/2, and HTTP/3.
3. My book "A Blueprint for Production-Ready Web Applications", which uses both of the above and shows a beginner how to build a full stack app (React frontend) running on AWS. See https://pgjones.dev/tozo/ for details, code, and link to the example app.
-
How does a single running instance of a Flask application handle multiple requests at once? Is it all async or multithreaded? Or handled by the webserver (NGINX, gunicorn, etc)?
If you want async flask, you should use quart for now. The roadmap is to fully incorporate quart into flask at some point, but it’s unclear when that’s going to happen.
-
This Week In Python
quart – An async Python micro framework for building web applications
- Quart: An async Python micro framework for building web applications
- Quart, the async implementation of Flask has joined Pallets
What are some alternatives?
flask-pydantic-spec - An Flask OpenAPI library using Pydantic
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
flask-smorest - DB agnostic framework to build auto-documented REST APIs with Flask and marshmallow
Flask - The Python micro framework for building web applications.
flask-rebar - Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.
starlette - The little ASGI framework that shines. 🌟
quart - An async Python micro framework for building web applications.
httpx - A next generation HTTP client for Python. 🦋
django-awl - Miscellaneous django tools
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
asgiref - ASGI specification and utilities