- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Wain (0.19 sec)
-
docs/ko/docs/deployment/server-workers.md
``` </div> 각 옵션이 무엇을 의미하는지 살펴봅시다: * 이것은 유비콘과 똑같은 문법입니다. `main`은 파이썬 모듈 네임 "`main`"을 의미하므로 `main.py`파일을 뜻합니다. 그리고 `app`은 **FastAPI** 어플리케이션이 들어 있는 변수의 이름입니다. * `main:app`이 파이썬의 `import` 문법과 흡사한 면이 있다는 걸 알 수 있습니다: ```Python from main import app ``` * 곧, `main:app`안에 있는 콜론의 의미는 파이썬에서 `from main import app`에서의 `import`와 같습니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/de/docs/deployment/server-workers.md
* `main:app`: Das ist die gleiche Syntax, die auch von Uvicorn verwendet wird. `main` bedeutet das Python-Modul mit dem Namen `main`, also eine Datei `main.py`. Und `app` ist der Name der Variable, welche die **FastAPI**-Anwendung ist. * Stellen Sie sich einfach vor, dass `main:app` einer Python-`import`-Anweisung wie der folgenden entspricht: ```Python from main import app ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:19:25 GMT 2024 - 10.1K bytes - Viewed (0) -
docs/ja/docs/deployment/server-workers.md
[19515] [INFO] Application startup complete. ``` </div> それぞれのオプションの意味を見てみましょう: * `main:app`: `main`は"`main`"という名前のPythonモジュール、つまりファイル`main.py`を意味します。そして `app` は **FastAPI** アプリケーションの変数名です。 * main:app`はPythonの`import`文と同じようなものだと想像できます: ```Python from main import app ``` * つまり、`main:app`のコロンは、`from main import app`のPythonの`import`の部分と同じになります。 * `--workers`: 使用するワーカー・プロセスの数で、それぞれがUvicornのワーカーを実行します。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.2K bytes - Viewed (0)