コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 10 of about 17 for style (0.002 sec.)
FastAPI CLI 15121
FastAPI CLI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI CLI is a command line program that you can use to serve your FastAPI app, manage your FastAPI p ... un your FastAPI app for development, you can use the fastapi dev command: $ <font color = "#4E9A06" >fastapi</font> dev <u style = "text-decoration-style:solid" >main.py</u> <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font> ... .py</font> files Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font> <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span> ? main.py <span style="background-color:#007166">< ... font color="#D3D7CF"> code </font></span> Importing the FastAPI app object from the module with the following code: <u style="text-decoration-style:solid">from </u><u style="text-decoration-style:solid"><b>main</b></u><u style="text-decoration-sty ...
https://man.mtool.work/fastapi/0.115/fastapi-cli/
チュートリアル - ユーザーガイド 9552
チュートリアル - ユーザーガイド このチュートリアルは FastAPI のほぼすべての機能の使い方を段階的に紹介します。 各セクションは前のセクションを踏まえた内容になっています。しかし、トピックごとに分割されているので、特定のAPIの要求を満たすようなト ... の例を実行するには、コードを main.py ファイルにコピーし、 uvicorn を次のように起動します: $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) <span style="color: green;">I ... NFO</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO</span>: Waiting for applicati ... on startup. <span style="color: green;">INFO</span>: Application startup complete. コードを記述またはコピーし、編集してローカルで実行することを 強 ...
https://man.mtool.work/fastapi/0.115/tutorial/
Development - Contributing 9397
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 ... , there is a script that builds the site and checks for any changes, live-reloading: $ python ./scripts/docs.py live <span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008 <span style="color: green;">[INFO]</span> Start watching ch ... anges <span style="color: green;">[INFO]</span> Start detecting changes It will serve the documentation on http://127.0.0.1:8008 . That way, ... ed by test coverage. Apps and docs at the same time If you run the examples with, e.g.: $ fastapi dev tutorial001.py <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) as Uvicorn by default will us ...
https://man.mtool.work/fastapi/0.115/contributing/
最初のステップ 9207
最初のステップ 最もシンプルなFastAPIファイルは以下のようになります: Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/" ) async def root (): return { "message" : "Hello World" } これを main.py にコピーします。 ライブサ ... ーバーを実行します: $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) <span style="color: green;">I ... NFO</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO</span>: Waiting for applicati ... on startup. <span style="color: green;">INFO</span>: Application startup complete. 備考 uvicorn main:app は以下を示します: main : main.py ファイル ...
https://man.mtool.work/fastapi/0.115/tutorial/first-steps/
Behind a Proxy 8293
Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration ... ath To achieve this, you can use the command line option --root-path like: $ fastapi run main.py --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) If you use Hypercorn, it also ... : request . scope . get ( "root_path" )} Then, if you start Uvicorn with: $ fastapi run main.py --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) The response would be somethi ... someapi/traefik.toml And now start your app, using the --root-path option: $ fastapi run main.py --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) Check the responses Now, if y ...
https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
手動デプロイ 8086
手動デプロイ FastAPI を手動でデプロイすることもできます。 以下の様なASGI対応のサーバをインストールする必要があります: Uvicorn Uvicorn , uvloopとhttptoolsを基にした高速なASGIサーバ。 $ pip install "uvicorn[standard]" ---> 100% 豆知識 standar ... し、以下の様に --reload オプションは使用しないで下さい: Uvicorn Hypercorn $ uvicorn main:app --host 0 .0.0.0 --port 80 <span style="color: green;">INFO</span>: Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit) $ hypercorn main:app --bind 0 .0. ...
https://man.mtool.work/fastapi/0.115/deployment/manually/
Configure Swagger UI 8086
Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa ... ger_ui_parameters . update ( swagger_ui_parameters ) html = f """ <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href=" { swagger_css_url } "> <link rel="shortcut icon" href=" { swagger_favicon_url } "> <title> { title } </title> ... le_fonts : html += """ <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> """ html += f """ <link rel="shortcut icon" href=" { redoc_favicon_url } "> <!-- ReDoc doesn't change outer page st ... yles --> <style> body {{ margin: 0; padding: 0; }} </style> </head> <body> <noscript> ReDoc requires Javascript to function. Please enable ...
https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
Sub Applications - Mounts 8035
Sub Applications - Mounts Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you need to have two independent FastAPI applications, with their own independent Open ... "/subapi" , subapi ) Check the automatic API docs Now, run the fastapi command with your file: $ fastapi dev main.py <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) And open the docs at http://1 ...
https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
条件付き OpenAPI 7983
条件付き OpenAPI 必要であれば、設定と環境変数を利用して、環境に応じて条件付きでOpenAPIを構成することが可能です。また、完全にOpenAPIを無効にすることもできます。 セキュリティとAPI、およびドキュメントについて 本番環境においてドキュメントのUIを ... 字列に設定することによってOpenAPI (UIドキュメントを含む) を無効化することができます。 $ OPENAPI_URL = uvicorn main:app <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) すると、以下のように /openapi ...
https://man.mtool.work/fastapi/0.115/how-to/conditional-openapi/
WebSocket 7931
WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム ... 。 試してみる ファイル名が main.py である場合、以下の方法でアプリケーションを実行します。 $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ブラウザで http://127.0.0.1:8 ... sを試してみる ファイル名が main.py である場合、以下の方法でアプリケーションを実行します。 $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ブラウザで http://127.0.0.1:8 ...
https://man.mtool.work/fastapi/0.115/advanced/websockets/
PREV 1 2 NEXT