fastapi-best-practices icon indicating copy to clipboard operation
fastapi-best-practices copied to clipboard

FastAPI Best Practices and Conventions we used at our startup

Results 16 fastapi-best-practices issues
Sort by recently updated
recently updated
newest added

First of all - it's an amazing set of best practices, I also want to share some things that I use: ### Project Structure `src` could be added to `PYTHONPATH`...

@zhanymkanov thanks for the write up. It’s great to have some benchmarks on professional implementations, this is awesome and one of the most valuables repositories, just a lot of production-ready...

I recently posted this article about testing FastAPI + Omar + Alembic applications: https://pawamoy.github.io/posts/testing-fastapi-ormar-alembic-apps/ The interesting thing in the post is how each test has access to its own, unique,...

I'm eager to explore the overall arrangement in practical application. Primarily, I'm interested in examining the logical separation of dependencies and services. For instance, while working on the login functionality,...

I am planning to use Response Structure like this (https://google.github.io/styleguide/jsoncstyleguide.xml?showone=error#error) ``` { "error": { "code": 404, "message": "File Not Found", "errors": [{ "domain": "Calendar", "reason": "ResourceNotFoundException", "message": "File Not Found...

Hello, Love this repo! I was trying to modify your example from `#22` to check if _nested_ models are round-tripped unnecessarily if contained within the dict I return in my...

Almost all of of here have used some ORM library like Sqlalchemy which is equivalent to how django does its things. I found myself using mongodb as the main database...

Thank you again for this useful repo. I have a question regarding your tip [23](https://github.com/zhanymkanov/fastapi-best-practices#23-if-you-must-use-sync-sdk-then-run-it-in-a-thread-pool). I wonder what the differences between using `def` function and `run_in_threadpool` in `async` function. They...

@zhanymkanov thanks for the write up. This article is very useful for me! In our work, we often deal with a large number of integrations with third-party systems, for this...