Results of 1 - 10 of about 16 for quit (0.002 sec.)
- 手動デプロイ 12788
- 手動デプロイ FastAPI を手動でデプロイすることもできます。 以下の様なASGI対応のサーバをインストールする必要があります: Uvicorn Uvicorn , uvloopとhttptoolsを基にした高速なASGIサーバ。 $ pip install "uvicorn[standard]" ---> 100% 豆知識 standar
...p --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 Running on 0.0.0.0:8080 over http (CTRL + C to quit) 停止した場合に自動的に再起動... - https://man.mtool.work/fastapi/0.115/deployment/manually/
- 最初のステップ 12112
- 最初のステップ 最もシンプルなFastAPIファイルは以下のようになります: Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/" ) async def root (): return { "message" : "Hello World" } これを main.py にコピーします。 ライブサ
...icorn 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</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Starte...バーを再起動させる。開発用。 出力には次のような行があります: INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) この行はローカルマシンでアプリが提供されているURLを示しています。 チェック ブラウザで http://127.0.0.1:8000 を開きます。...icorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) 以下のようなアプリを作成したとき: Python 3.8+ from fastapi import FastAPI my_awesome_api = FastAPI () @my_awesome_api . g... - https://man.mtool.work/fastapi/0.115/tutorial/first-steps/
- Behind a Proxy 10761
- 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
....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 the option --root-path . Technical Details The ASGI specification defines a root_path f....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: { "message" : "Hello World" , "root_path" : "/api/v1" } Setting the root_path in th....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 to the URL with the port for Uvicorn: http://127.0.0.1:8000/app , you will see the nor... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- Sub Applications - Mounts 9080
- 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
...: $ 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.1:8000/docs . You will see the automatic API docs for the main app, including only it... - https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
- FastAPI CLI 8733
- 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
...g on <font color="#729FCF"><u style="text-decoration-style:solid">http://127.0.0.1:8000</u></font> <b>(</b>Press CTRL+C to quit<b>)</b> <span style="background-color:#007166"><font color="#D3D7CF"> INFO </font></span> Started reloader process <b>[</b... - https://man.mtool.work/fastapi/0.115/fastapi-cli/
- 条件付き OpenAPI 8733
- 条件付き OpenAPI 必要であれば、設定と環境変数を利用して、環境に応じて条件付きでOpenAPIを構成することが可能です。また、完全にOpenAPIを無効にすることもできます。 セキュリティとAPI、およびドキュメントについて 本番環境においてドキュメントのUIを
..._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 , /docs , /redoc のどのURLにアクセスしても、 404 Not Found エラーが返ってくるようになり... - https://man.mtool.work/fastapi/0.115/how-to/conditional-openapi/
- チュートリアル - ユーザーガイド 8733
- チュートリアル - ユーザーガイド このチュートリアルは FastAPI のほぼすべての機能の使い方を段階的に紹介します。 各セクションは前のセクションを踏まえた内容になっています。しかし、トピックごとに分割されているので、特定のAPIの要求を満たすようなト
...icorn 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</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Starte... - https://man.mtool.work/fastapi/0.115/tutorial/
- WebSocket 8404
- WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム
...icorn 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:8000 を開きます。 次のようなシンプルなページが表示されます。 入力ボックスにメッセージを入力し...icorn 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:8000 を開きます。 クライアントが設定できる項目は以下の通りです。 パスで使用される「Item ID」... - https://man.mtool.work/fastapi/0.115/advanced/websockets/
- Development - Contributing 8057
- 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
...tapi 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 port 8000 , the documentation on port 8008 won't clash. Translations Help with transla... - https://man.mtool.work/fastapi/0.115/contributing/
- Server Workers - Gunicorn と Uvicorn 7728
- Server Workers - Gunicorn と Uvicorn 前回のデプロイメントのコンセプトを振り返ってみましょう: セキュリティ - HTTPS 起動時の実行 再起動 レプリケーション(実行中のプロセス数) メモリ 開始前の事前ステップ ここまでのドキュメントのチュートリアルで
...--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</font>: Started parent process [<font color="#A1EFE4"><b>27365</b></font>] <font color="#A6E22... - https://man.mtool.work/fastapi/0.115/deployment/server-workers/