- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 107 for __ (0.19 sec)
-
docs/security/security.md
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sun Feb 27 10:19:17 GMT 2022 - 1.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/debugging.md
В вашем FastAPI приложении, импортируйте и вызовите `uvicorn` напрямую: ```Python hl_lines="1 15" {!../../../docs_src/debugging/tutorial001.py!} ``` ### Описание `__name__ == "__main__"` Главная цель использования `__name__ == "__main__"` в том, чтобы код выполнялся при запуске файла с помощью: <div class="termy"> ```console $ python myapp.py ``` </div>
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/debugging.md
## `uvicorn` 호출 FastAPI 애플리케이션에서 `uvicorn`을 직접 임포트하여 실행합니다 ```Python hl_lines="1 15" {!../../../docs_src/debugging/tutorial001.py!} ``` ### `__name__ == "__main__"` 에 대하여 `__name__ == "__main__"`의 주요 목적은 다음과 같이 파일이 호출될 때 실행되는 일부 코드를 갖는 것입니다. <div class="termy"> ```console $ python myapp.py ``` </div> 그러나 다음과 같이 다른 파일을 가져올 때는 호출되지 않습니다. ```Python
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 04:18:08 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/fr/docs/tutorial/debugging.md
Dans votre application FastAPI, importez et exécutez directement `uvicorn` : ```Python hl_lines="1 15" {!../../../docs_src/debugging/tutorial001.py!} ``` ### À propos de `__name__ == "__main__"` Le but principal de `__name__ == "__main__"` est d'avoir du code qui est exécuté lorsque votre fichier est appelé avec : <div class="termy"> ```console $ python myapp.py ``` </div>
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Mar 06 16:26:49 GMT 2023 - 2.9K bytes - Viewed (0) -
docs/em/docs/tutorial/debugging.md
## 🤙 `uvicorn` 👆 FastAPI 🈸, 🗄 & 🏃 `uvicorn` 🔗: ```Python hl_lines="1 15" {!../../../docs_src/debugging/tutorial001.py!} ``` ### 🔃 `__name__ == "__main__"` 👑 🎯 `__name__ == "__main__"` ✔️ 📟 👈 🛠️ 🕐❔ 👆 📁 🤙 ⏮️: <div class="termy"> ```console $ python myapp.py ``` </div> ✋️ 🚫 🤙 🕐❔ ➕1️⃣ 📁 🗄 ⚫️, 💖: ```Python from myapp import app
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.1K bytes - Viewed (0) -
docs/zh/docs/advanced/advanced-dependencies.md
这里说的不是类本身(类本就是可调用项),而是类实例。 为此,需要声明 `__call__` 方法: ```Python hl_lines="10" {!../../../docs_src/dependencies/tutorial011.py!} ``` 本例中,**FastAPI** 使用 `__call__` 检查附加参数及子依赖项,稍后,还要调用它向*路径操作函数*传递值。 ## 参数化实例 接下来,使用 `__init__` 声明用于**参数化**依赖项的实例参数: ```Python hl_lines="7" {!../../../docs_src/dependencies/tutorial011.py!} ``` 本例中,**FastAPI** 不使用 `__init__`,我们要直接在代码中使用。 ## 创建实例 使用以下代码创建类实例:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Jan 28 18:26:57 GMT 2024 - 2K bytes - Viewed (0) -
docs/em/docs/advanced/advanced-dependencies.md
🐍 📤 🌌 ⚒ 👐 🎓 "🇧🇲". 🚫 🎓 ⚫️ (❔ ⏪ 🇧🇲), ✋️ 👐 👈 🎓. 👈, 👥 📣 👩🔬 `__call__`: ```Python hl_lines="10" {!../../../docs_src/dependencies/tutorial011.py!} ``` 👉 💼, 👉 `__call__` ⚫️❔ **FastAPI** 🔜 ⚙️ ✅ 🌖 🔢 & 🎧-🔗, & 👉 ⚫️❔ 🔜 🤙 🚶♀️ 💲 🔢 👆 *➡ 🛠️ 🔢* ⏪. ## 🔗 👐 & 🔜, 👥 💪 ⚙️ `__init__` 📣 🔢 👐 👈 👥 💪 ⚙️ "🔗" 🔗: ```Python hl_lines="7"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
Let's say you have a file structure like this: ``` . ├── app │ ├── __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py ``` !!! tip There are several `__init__.py` files: one in each directory or subdirectory.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.6K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
``` . ├── app │ ├── __init__.py │ └── main.py ``` In the file `main.py` you have your **FastAPI** app: ```Python {!../../../docs_src/app_testing/main.py!} ``` ### Testing file Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file): ``` hl_lines="5" . ├── app
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
## 一个文件结构示例 假设你的文件结构如下: ``` . ├── app │ ├── __init__.py │ ├── main.py │ ├── dependencies.py │ └── routers │ │ ├── __init__.py │ │ ├── items.py │ │ └── users.py │ └── internal │ ├── __init__.py │ └── admin.py ``` !!! tip 上面有几个 `__init__.py` 文件:每个目录或子目录中都有一个。 这就是能将代码从一个文件导入到另一个文件的原因。 例如,在 `app/main.py` 中,你可以有如下一行:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.5K bytes - Viewed (0)