コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 6 of about 6 for executed (0.004 sec.)
Lifespan Events 13161
Lifespan Events Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can define logic (code) that should be executed before the application starts up . This means t ... hat this code will be executed once , before the application starts receiving requests . The same way, you can define logic (code) that should be execute ... d when the application is shutting down . In this case, this code will be executed once , after having handled possibly many requests . Because this code is executed before the application starts taking re ... l by putting the (fake) model function in the dictionary with machine learning models before the yield . This code will be executed before the application starts taking requests , during the startup . And then, right after the yield , we unload the model ...
https://man.mtool.work/fastapi/0.115/advanced/events/
Bigger Applications - Multiple Files 8956
Bigger Applications - Multiple Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you are building an application or a web API, it's rarely the case that you ... this router. And we can add a list of dependencies that will be added to all the path operations in the router and will be executed/solved for each request made to them. Tip Note that, much like dependencies in path operation decorators , no value will b ... All of them will include the predefined responses . All these path operations will have the list of dependencies evaluated/executed before them. If you also declare dependencies in a specific path operation , they will be executed too . The router depend ... encies are executed first, then the dependencies in the decorator , and then the normal parameter dependencies. You can also add Security depe ...
https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
OpenAPI Callbacks 8225
OpenAPI Callbacks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You could create an API with a path operation that could trigger a request to an external API cre ... llback yourself, you could use something like HTTPX or Requests . Write the callback documentation code This code won't be executed in your app, we only need it to document how that external API should look like. But, you already know how to easily creat ...
https://man.mtool.work/fastapi/0.115/advanced/openapi-callbacks/
Virtual Environments 8225
Virtual Environments Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . When you work in Python projects you probably should use a virtual environment (or a similar m ... the path to that program. The most important part is that when you call python , that is the exact " python " that will be executed. So, you can confirm if you are in the correct virtual environment. Tip It's easy to activate one virtual environment, get ...
https://man.mtool.work/fastapi/0.115/virtual-environments/
Settings and Environment Variables 8134
Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configuratio ... irst time, instead of computing it again, executing the code of the function every time. So, the function below it will be executed once for each combination of arguments. And then the values returned by each of those combinations of arguments will be us ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
Release Notes 8061
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... item Before FastAPI 0.106.0, raising exceptions after yield was not possible, the exit code in dependencies with yield was executed after the response was sent, so Exception Handlers would have already run. This was designed this way mainly to allow usin ... g the same objects "yielded" by dependencies inside of background tasks, because the exit code would be executed after the background tasks were finished. Nevertheless, as this would mean waiting for the response to travel through the ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT