Results of 1 - 10 of about 17 for color (0.002 sec.)
- FastAPI CLI 14518
- 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
...the fastapi command in the terminal. To run 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:#00948...5"><font color="#D3D7CF"> FastAPI </font></span> Starting development server ? Searching for package file structure from directories with...<font color="#3465A4">__init__.py</font> files Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">aweso... - https://man.mtool.work/fastapi/0.115/fastapi-cli/
- Server Workers - Gunicorn と Uvicorn 11173
- Server Workers - Gunicorn と Uvicorn 前回のデプロイメントのコンセプトを振り返ってみましょう: セキュリティ - HTTPS 起動時の実行 再起動 レプリケーション(実行中のプロセス数) メモリ 開始前の事前ステップ ここまでのドキュメントのチュートリアルで
...もしれないです。 どんな場合であれ、以下のように実行します: $ uvicorn main:app --host 0 .0.0.0 --port 8080 --workers 4 <font color="#A6E22E">INFO</font>: Uvicorn running on <b>http://0.0.0.0:8080</b> (Press CTRL+C to quit) <font color="#A6E22E">INFO</fo...nt>: Started parent process [<font color="#A1EFE4"><b>27365</b></font>] <font color="#A6E22E">INFO</font>: Started server process [<font color="#A1EFE4">27368</fon...t>] <font color="#A6E22E">INFO</font>: Waiting for application startup. <font color="#A6E22E">INFO</font>: Application startup complete. <... - https://man.mtool.work/fastapi/0.115/deployment/server-workers/
- Development - Contributing 9242
- 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
...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 changes <...span style="color: green;">[INFO]</span> Start detecting changes It will serve the documentation on http://127.0.0.1:8008 . That way, you ca...est 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 use the p... - https://man.mtool.work/fastapi/0.115/contributing/
- チュートリアル - ユーザーガイド 9155
- チュートリアル - ユーザーガイド このチュートリアルは 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;">INFO</sp...an>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO</span>: Waiting for application star...tup. <span style="color: green;">INFO</span>: Application startup complete. コードを記述またはコピーし、編集してローカルで実行することを 強くお勧め... - https://man.mtool.work/fastapi/0.115/tutorial/
- 最初のステップ 8862
- 最初のステップ 最もシンプルな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;">INFO</sp...an>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO</span>: Waiting for application star...tup. <span style="color: green;">INFO</span>: Application startup complete. 備考 uvicorn main:app は以下を示します: main : main.py ファイル (Pytho... - https://man.mtool.work/fastapi/0.115/tutorial/first-steps/
- Behind a Proxy 8086
- 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
...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 has th...est . 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 something like.../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 you go t... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- 手動デプロイ 7914
- 手動デプロイ 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.0.0:80... - https://man.mtool.work/fastapi/0.115/deployment/manually/
- Sub Applications - Mounts 7879
- 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
...i" , 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://127.0.0.... - https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
- Templates 7879
- Templates Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use any template engine you want with FastAPI . A common choice is Jinja2, the same one used by F
...">Item ID: {{ id }} </a></h1> </body> </html> In this example, it would link to a CSS file at static/styles.css with: h1 { color : green ; } And because you are using StaticFiles , that CSS file would be served automatically by your FastAPI applicatio... - https://man.mtool.work/fastapi/0.115/advanced/templates/
- 条件付き OpenAPI 7828
- 条件付き 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.json ,... - https://man.mtool.work/fastapi/0.115/how-to/conditional-openapi/