FastAPI framework, high performance, easy to learn, fast to code, ready for production
Flask has been around much longer than FastAPI and, as a result, is a much more mature framework. Some examples:
- There's a memory leak with a particular combination of packages FastAPI 
- Before Pydantic v2, you would validate your data on input (when it's stored in the db) and then every single time on retrieval. There is no way to skip validation, for example, when you are generating a response on data that was already validated when it was persisted to the db. 
- FastAPI has documentation only in the form of tutorials. There is no API documentation and if something is not clear looking through the source code is the only option
- You need ORJSON for maximum serialisation performance (perhaps this has changed with Pydantic v2) 
- Using FastAPI with uvicorn doesn't respect log format settings 
I don't mean to imply that FastAPI is a bad framework. The Flask ecosystem has had over a decade to mature. FastAPI and the ecosystem will get there but it _needs_ time.
Data validation using Python type hints
Well the performance increase is so huge because pydantic1 is really really slow. And for using rust, I'd have expected more tbh…
I've been benchmarking pydantic v2 against typedload (which I write) and despite the rust, it still manages to be slower than pure python in some benchmarks.
The ones on the website are still about comparing to v1 because v2 was not out yet at the time of the last release.
pydantic's author will refuse to benchmark any library that is faster (https://github.com/pydantic/pydantic/pull/3264 https://github.com/pydantic/pydantic/pull/1525 https://github.com/pydantic/pydantic/pull/1810) and keep boasting about amazing performances.
On pypy, v2 beta was really really really slow.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Semantic Versioning Specification
This is semver:
> Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.
An ASGI web server, for Python. 🦄
A fast static code analyzer & language server for Python
You might want to check Pylyzer then (https://github.com/mtshiba/pylyzer).
I'm not involved at all. It is still very very early in development. But as it is in the same vein, I thought I'd mentioned it here.
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
> Maybe it was very slow before
That is at least partly the case. I maintain msgspec, another Python JSON validation library. Pydantic V1 was ~100x slower at encoding/decoding/validating JSON than msgspec, which was more a testament to Pydantic's performance issues than msgspec's speed. Pydantic V2 is definitely faster than V1, but it's still ~10x slower than msgspec, and up to 2x slower than other pure-python implementations like mashumaro.
Recent benchmark here: https://gist.github.com/jcrist/d62f450594164d284fbea957fd48b...
Web APIs for Django. 🎸
I wish Django would take async more seriously. This comment gives a pretty good overview of the current situation (some points are more valid than others): https://github.com/encode/django-rest-framework/discussions/...
The Python ecosystem is strange. Where other dev communities will embrace new ways of doing things faster than most people can keep up — the Python community needs to be pulled kicking and screaming into the light once ever decade or so. Python 2 to 3, ~10 years.
async/await has been in Python since 2015, it feels like it's going to be another 5 years before we see people taking async seriously in the big packages. Same problem we had during the 2/3 transition. No library support, no developer support.
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
A FastAPI utility to allow Controller Class usage
Has litestar CBV (class based views) fastapi refuses to implement them so we build . Or proper lifetime event ?
Example Litestar project using Postgresql, Redis and Docker
Litestar Fullstack Reference Application with Vue, Vite, and SQLAlchemy, Docker, Task Queues, and more!
https://github.com/cofin/litestar-fullstack - it has Users and Auth , Roles , Teams , Tagging , Data migration , Caching , Background Worker Services , Background scheduling , manage.py-like cli for creating users , admin users , and docker containers.
How to use FastAPI for microservices in Python
6 projects | dev.to | 7 Jul 2022
Building a Secure API with FastAPI, PostgreSQL, and Hanko Authentication
5 projects | dev.to | 30 Oct 2023
Function Calling: The Most Significant AI Feature Since ChatGPT Itself?
1 project | dev.to | 7 Sep 2023
Building Serverless Applications with AWS – API
1 project | dev.to | 5 Aug 2023
2 projects | news.ycombinator.com | 30 Jun 2023