- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for main (4.58 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/em/docs/deployment/server-workers.md
``` </div> ➡️ 👀 ⚫️❔ 🔠 👈 🎛 ⛓: * `main:app`: 👉 🎏 ❕ ⚙️ Uvicorn, `main` ⛓ 🐍 🕹 📛 "`main`",, 📁 `main.py`. & `app` 📛 🔢 👈 **FastAPI** 🈸. * 👆 💪 🌈 👈 `main:app` 🌓 🐍 `import` 📄 💖: ```Python from main import app ``` * , ❤ `main:app` 🔜 🌓 🐍 `import` 🍕 `from main import app`. * `--workers`: 🔢 👨🏭 🛠️ ⚙️, 🔠 🔜 🏃 Uvicorn 👨🏭, 👉 💼, 4️⃣ 👨🏭.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.2K bytes - Viewed (0) -
docs/zh/docs/deployment/server-workers.md
[19515] [INFO] Application startup complete. ``` </div> 让我们看看每个选项的含义: * `main:app`:这与 Uvicorn 使用的语法相同,`main` 表示名为"`main`"的 Python 模块,因此是文件 `main.py`。 `app` 是 **FastAPI** 应用程序的变量名称。 * 你可以想象 `main:app` 相当于一个 Python `import` 语句,例如: ```Python from main import app ``` * 因此,`main:app` 中的冒号相当于 `from main import app` 中的 Python `import` 部分。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/deployment/server-workers.md
``` </div> Let's see what each of those options mean: * `main:app`: This is the same syntax used by Uvicorn, `main` means the Python module named "`main`", so, a file `main.py`. And `app` is the name of the variable that is the **FastAPI** application. * You can imagine that `main:app` is equivalent to a Python `import` statement like: ```Python from main import app ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.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)