![]() The same applies the other way around, in many cases you can just pass the object you get from the database directly to the client. This also means that in many cases you can pass the same object you get from a request directly to the database, as everything is validated automatically. Including external libraries also based on Pydantic, as ORMs, ODMs for databases. So, any additional Pydantic code you have, will also work. CORS, GZip, Static Files, Streaming responses.įastAPI is fully compatible with (and based on) Pydantic. ![]() It is one of the fastest Python frameworks available, on par with NodeJS and Go. With FastAPI you get all of Starlette's features (as FastAPI is just Starlette on steroids): So, if you already know or use Starlette, most of the functionality will work the same way. So, any additional Starlette code you have, will also work.įastAPI is actually a sub-class of Starlette. Tested ¶įastAPI is fully compatible with (and based on) Starlette. Or in other way, no need for them, import and use the code you need.Īny integration is designed to be so simple to use (with dependencies) that you can create a "plug-in" for your application in 2 lines of code using the same structure and syntax used for your path operations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |