コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 6 of about 6 for images (0.004 sec.)
ボディ - ネストされたモデル 12905
ボディ - ネストされたモデル FastAPI を使用すると、深くネストされた任意のモデルを定義、検証、文書化、使用することができます(Pydanticのおかげです)。 リストのフィールド 属性をサブタイプとして定義することができます。例えば、Pythonの list は以 ... tr description : Union [ str , None ] = None price : float tax : Union [ float , None ] = None tags : Set [ str ] = set () images : Union [ List [ Image ], None ] = None @app . put ( "/items/ {item_id} " ) async def update_item ( item_id : int , item : ... aseModel ): name : str description : str | None = None price : float tax : float | None = None tags : set [ str ] = set () images : list [ Image ] | None = None @app . put ( "/items/ {item_id} " ) async def update_item ( item_id : int , item : Item ): ... tr description : Union [ str , None ] = None price : float tax : Union [ float , None ] = None tags : set [ str ] = set () images : Union [ list [ Image ], None ] = None @app . put ( "/items/ {item_id} " ) async def update_item ( item_id : int , item : ...
https://man.mtool.work/fastapi/0.115/tutorial/body-nested-models/
パスパラメータ 9413
パスパラメータ Pythonのformat文字列と同様のシンタックスで「パスパラメータ」や「パス変数」を宣言できます: Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/items/ {item_id} " ) async def read_item ( item_id ): return { ... "Deep Learning FTW!" } if model_name . value == "lenet" : return { "model_name" : model_name , "message" : "LeCNN all the images" } return { "model_name" : model_name , "message" : "Have some residuals" } 情報 Enumerations (もしくは、enums)はPython 3. ... "Deep Learning FTW!" } if model_name . value == "lenet" : return { "model_name" : model_name , "message" : "LeCNN all the images" } return { "model_name" : model_name , "message" : "Have some residuals" } ドキュメントの確認 パスパラメータ の利用可能な ... "Deep Learning FTW!" } if model_name . value == "lenet" : return { "model_name" : model_name , "message" : "LeCNN all the images" } return { "model_name" : model_name , "message" : "Have some residuals" } 列挙値 の取得 model_name.value 、もしくは一般に ...
https://man.mtool.work/fastapi/0.115/tutorial/path-params/
Static Files - StaticFiles 9212
Static Files - StaticFiles You can use the StaticFiles class to serve static files, like JavaScript, CSS, images, etc. Read more about it in the FastAPI docs for Static Files . You can import it directly from fastapi.staticfiles : from fast ...
https://man.mtool.work/fastapi/0.115/reference/staticfiles/
Development - Contributing 7951
Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If ... t change the word immediately after the /// , it determines the color of the info box. Do not change the paths in links to images, code files, Markdown documents. However, when a Markdown document is translated, the #hash-parts in links to its headings ...
https://man.mtool.work/fastapi/0.115/contributing/
Request Files 7750
Request Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can define files to be uploaded by the client using File . Info To receive uploaded files, first ... size limit, and after passing this limit it will be stored in disk. This means that it will work well for large files like images, videos, large binaries, etc. without consuming all the memory. You can get metadata from the uploaded file. It has a file ...
https://man.mtool.work/fastapi/0.115/tutorial/request-files/
Release Notes 7567
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 ... bot] . ⬆ Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.10. PR #10061 by @dependabot[bot] . ? Update sponsors, Bump.sh images. PR #10381 by @tiangolo . ? Update FastAPI People. PR #10363 by @tiangolo . 0.103.2 Refactors ⬆️ Upgrade compatibility wit ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT