コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 9 of about 9 for reload (0.007 sec.)
最初のステップ 12672
最初のステップ 最もシンプルな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="colo ... r: green;">INFO</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO ... main : main.py ファイル (Python "module")。 app : main.py 内部で作られるobject( app = FastAPI() のように記述される)。 --reload : コードの変更時にサーバーを再起動させる。開発用。 出力には次のような行があります: INFO: Uvicorn running on http://127.0.0 ...
https://man.mtool.work/fastapi/0.115/tutorial/first-steps/
FastAPI 10587
FastAPI FastAPI framework, high performance, easy to learn, fast to code, ready for production ドキュメント : https://fastapi.tiangolo.com ソースコード : https://github.com/fastapi/fastapi FastAPI は、Pythonの標準である型ヒントに基づいてPyt ... ait にある "In a hurry?"セクションをチェックしてください。 実行 以下のコマンドでサーバーを起動します: $ uvicorn main:app --reload INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [28720] INFO: Started ... server process [28722] INFO: Waiting for application startup. INFO: Application startup complete. uvicorn main:app --reload コマンドについて uvicorn main:app コマンドは以下の項目を参照します: main : main.py ファイル (Python "モジュール") app : ma ... in.py の app = FastAPI() の行で生成されたオブジェクト --reload : コードを変更したらサーバーを再起動します。このオプションは開発環境でのみ使用します 動作確認 ブラウザから http://127.0.0. ...
https://man.mtool.work/fastapi/0.115/
FastAPI CLI 10299
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 ... </b>Press CTRL+C to quit<b>)</b> <span style="background-color:#007166"><font color="#D3D7CF"> INFO </font></span> Started reloader process <b>[</b><font color="#34E2E2"><b>383138</b></font><b>]</b> using WatchFiles <span style="background-color:#00716 ... performance, production-ready, ASGI server. ? fastapi dev Running fastapi dev initiates development mode. By default, auto-reload is enabled, automatically reloading the server when you make changes to your code. This is resource-intensive and could be ... self alone ( localhost ). fastapi run Executing fastapi run starts FastAPI in production mode by default. By default, auto-reload is disabled. It also listens on the IP address 0.0.0.0 , which means all the available IP addresses, this way it will be p ...
https://man.mtool.work/fastapi/0.115/fastapi-cli/
手動デプロイ 8807
手動デプロイ FastAPI を手動でデプロイすることもできます。 以下の様なASGI対応のサーバをインストールする必要があります: Uvicorn Uvicorn , uvloopとhttptoolsを基にした高速なASGIサーバ。 $ pip install "uvicorn[standard]" ---> 100% 豆知識 standar ... または、これら以外のASGIサーバ。 そして、チュートリアルと同様な方法でアプリケーションを起動して下さい。ただし、以下の様に --reload オプションは使用しないで下さい: Uvicorn Hypercorn $ uvicorn main:app --host 0 .0.0.0 --port 80 <span style="color: green;" ...
https://man.mtool.work/fastapi/0.115/deployment/manually/
Custom Docs UI Static Assets (Self-Hosting) 8520
Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav ... essage" : f "Hello { username } " } Test it Now, you should be able to go to your docs at http://127.0.0.1:8000/docs , and reload the page, it will load those assets from the new CDN. Self-hosting JavaScript and CSS for docs Self-hosting the JavaScript ... Test Static Files UI Now, you should be able to disconnect your WiFi, go to your docs at http://127.0.0.1:8000/docs , and reload the page. And even without Internet, you would be able to see the docs for your API and interact with it. ...
https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
チュートリアル - ユーザーガイド 8214
チュートリアル - ユーザーガイド このチュートリアルは 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="colo ... r: green;">INFO</span>: Started reloader process [28720] <span style="color: green;">INFO</span>: Started server process [28722] <span style="color: green;">INFO ...
https://man.mtool.work/fastapi/0.115/tutorial/
WebSocket 7927
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:/ ... いてWebSocketsを試してみる ファイル名が 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:/ ...
https://man.mtool.work/fastapi/0.115/advanced/websockets/
セキュリティ - 最初の一歩 7333
セキュリティ - 最初の一歩 あるドメインに、 バックエンド APIを持っているとしましょう。 そして、別のドメインか同じドメインの違うパス(またはモバイルアプリケーションの中)に フロントエンド を持っています。 さらに、フロントエンドが ユーザー名 と ... uth2 が ユーザー名 や パスワード を送信するために、「フォームデータ」を使うからです。 例を実行します: $ uvicorn main:app --reload <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) 確認 次のインタラ ...
https://man.mtool.work/fastapi/0.115/tutorial/security/first-steps/
Release Notes 6435
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 ... 1999 by @tiangolo . ? Update admonitions in docs missing. PR #11998 by @tiangolo . ? Update docs.py script to enable dirty reload conditionally. PR #11986 by @tiangolo . ? Update MkDocs instant previews. PR #11982 by @tiangolo . ? Fix deploy docs previ ... tories: ['/home/user/code/awesomeapp'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [2248755] using WatchFiles INFO: Started server process [2248757] INFO: Waiting for application startup. INFO: A ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT