- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 217 for __init__ (0.09 sec)
-
docs/uk/docs/tutorial/first-steps.md
<font color="#3465A4">INFO </font> Searching for package file structure from directories with <font color="#3465A4">__init__.py</font> files <font color="#3465A4">INFO </font> Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font> ╭─ <font color="#8AE234"><b>Python module file</b></font> ─╮
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.6K bytes - Viewed (0) -
docs/em/docs/advanced/settings.md
```Python {!../../docs_src/settings/app01/config.py!} ``` & ⤴️ ⚙️ ⚫️ 📁 `main.py`: ```Python hl_lines="3 11-13" {!../../docs_src/settings/app01/main.py!} ``` /// tip 👆 🔜 💪 📁 `__init__.py` 👆 👀 🔛 [🦏 🈸 - 💗 📁](../tutorial/bigger-applications.md){.internal-link target=_blank}. /// ## ⚒ 🔗 🍾 ⚫️ 5️⃣📆 ⚠ 🚚 ⚒ ⚪️➡️ 🔗, ↩️ ✔️ 🌐 🎚 ⏮️ `settings` 👈 ⚙️ 🌐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
<font color="#3465A4">INFO </font> Searching for package file structure from directories with <font color="#3465A4">__init__.py</font> files <font color="#3465A4">INFO </font> Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font> ╭─ <font color="#8AE234"><b>Python module file</b></font> ─╮
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:48:16 UTC 2024 - 11.8K bytes - Viewed (0) -
fastapi/openapi/utils.py
# TODO: probably make status_code a default class attribute for all # responses in Starlette response_signature = inspect.signature(current_response_class.__init__) status_code_param = response_signature.parameters.get("status_code") if status_code_param is not None: if isinstance(status_code_param.default, int):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 22.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
在文档中也有一篇使用 Peewee 的等效的文章。 /// ## 文件结构 对于这些示例,假设您有一个名为的目录`my_super_project`,其中包含一个名为的子目录`sql_app`,其结构如下: ``` . └── sql_app ├── __init__.py ├── crud.py ├── database.py ├── main.py ├── models.py └── schemas.py ``` 该文件`__init__.py`只是一个空文件,但它告诉 Python `sql_app` 是一个包。 现在让我们看看每个文件/模块的作用。 ## 安装 SQLAlchemy 首先你需要安装`SQLAlchemy`: <div class="termy">
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 27.1K bytes - Viewed (0) -
docs/en/docs/deployment/docker.md
/// info There are other formats and tools to define and install package dependencies. /// ### Create the **FastAPI** Code * Create an `app` directory and enter it. * Create an empty file `__init__.py`. * Create a `main.py` file with: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 18 16:09:57 UTC 2024 - 28.5K bytes - Viewed (0) -
docs/pt/docs/deployment/docker.md
Eu vou mostrar um exemplo depois usando Poetry em uma seção abaixo. 👇 /// ### Criando o Código do **FastAPI** * Crie um diretório `app` e entre nele. * Crie um arquivo vazio `__init__.py`. * Crie um arquivo `main.py` com: ```Python from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 37.4K bytes - Viewed (0) -
docs/ru/docs/deployment/docker.md
В этом же разделе, но позже, я покажу вам пример использования Poetry. 👇 /// ### Создать приложение **FastAPI** * Создайте директорию `app` и перейдите в неё. * Создайте пустой файл `__init__.py`. * Создайте файл `main.py` и заполните его: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 57.6K bytes - Viewed (0) -
docs/zh/docs/advanced/settings.md
```Python {!../../docs_src/settings/app01/config.py!} ``` 然后在一个名为 `main.py` 的文件中使用它: ```Python hl_lines="3 11-13" {!../../docs_src/settings/app01/main.py!} ``` /// tip 您还需要一个名为 `__init__.py` 的文件,就像您在[Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}中看到的那样。 /// ## 在依赖项中使用设置 在某些情况下,从依赖项中提供设置可能比在所有地方都使用全局对象 `settings` 更有用。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.8K bytes - Viewed (0) -
fastapi/routing.py
await dependant.call(**solved_result.values) return app class APIWebSocketRoute(routing.WebSocketRoute): def __init__( self, path: str, endpoint: Callable[..., Any], *, name: Optional[str] = None, dependencies: Optional[Sequence[params.Depends]] = None,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0)