コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 4 of about 4 for manager (0.005 sec.)
Lifespan Events 11705
Lifespan Events Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can define logic (code) that should be executed before the application starts up . This means t ... d. Lifespan You can define this startup and shutdown logic using the lifespan parameter of the FastAPI app, and a "context manager" (I'll show you what that is in a second). Let's start with an example and then see it in detail. We create an async funct ... ion lifespan() with yield like this: Python 3.8+ from contextlib import asynccontextmanager from fastapi import FastAPI def fake_answer_to_everything_ml_model ( x : float ): return x * 42 ml_models = {} @asyncconte ... xtmanager async def lifespan ( app : FastAPI ): # Load the ML model ml_models [ "answer_to_everything" ] = fake_answer_to_everything ...
https://man.mtool.work/fastapi/0.115/advanced/events/
WebSocket 10318
WebSocket FastAPI で WebSocket が使用できます。 WebSockets のインストール まず WebSockets のインストールが必要です。 $ pip install websockets ---> 100% WebSocket クライアント 本番環境 本番環境では、React、Vue.js、Angularなどの最新のフレーム ... messageText") ws.send(input.value) input.value = '' event.preventDefault() } </script> </body> </html> """ class ConnectionManager : def __init__ ( self ): self . active_connections : List [ WebSocket ] = [] async def connect ( self , websocket : WebSoc ... broadcast ( self , message : str ): for connection in self . active_connections : await connection . send_text ( message ) manager = ConnectionManager () @app . get ( "/" ) async def get (): return HTMLResponse ( html ) @app . websocket ( "/ws/ {client_ ... id} " ) async def websocket_endpoint ( websocket : WebSocket , client_id : int ): await manager . connect ( websocket ) try : while True : data = await websocket . receive_text () await manager . send_personal_message ...
https://man.mtool.work/fastapi/0.115/advanced/websockets/
Release Notes 7637
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 ... uguese translation for docs/pt/docs/advanced/response-cookies.md . PR #12417 by @Paulofalcao2002 . Internal ? Update issue manager workflow . PR #12457 by @alejsdev . ? Update team, include YuriiMotov ?. PR #12453 by @tiangolo . ? Refactor label-approve ... Add Korean translation for docs/ko/docs/project-generation.md . PR #12157 by @BORA040126 . Internal ⬆ Bump tiangolo/issue-manager from 0.5.0 to 0.5.1. PR #12173 by @dependabot[bot] . ⬆ [pre-commit.ci] pre-commit autoupdate. PR #12176 by @pre-commit-ci[ ... bot] . ? Update issue-manager.yml . PR #12159 by @tiangolo . ✏️ Fix typo in fastapi/params.py . PR #12143 by @surreal30 . 0.114.0 You can restrict form ...
https://man.mtool.work/fastapi/0.115/release-notes/
デプロイメントのコンセプト 7286
デプロイメントのコンセプト FastAPI を用いたアプリケーションをデプロイするとき、もしくはどのようなタイプのWeb APIであっても、おそらく気になるコンセプトがいくつかあります。 それらを活用することでアプリケーションを デプロイするための最適な方法 ... 更新のためにCertbotのような外部コンポーネントを使用 Nginx のような Ingress Controller を持つ Kubernetes 証明書の更新に cert-manager のような外部コンポーネントを使用 クラウド・プロバイダーがサービスの一部として内部的に処理(下記を参照?) もう1つの選択肢は ...
https://man.mtool.work/fastapi/0.115/deployment/concepts/
PREV 1 NEXT