Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for __init__ (0.82 sec)

  1. 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():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  2. docs/de/docs/deployment/docker.md

    ### Den **FastAPI**-Code erstellen
    
    * Erstellen Sie ein `app`-Verzeichnis und betreten Sie es.
    * Erstellen Sie eine leere Datei `__init__.py`.
    * Erstellen Sie eine `main.py`-Datei mit:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/docker.md

    </div>
    
    !!! 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():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  4. 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():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. 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> ─╮
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/settings.md

    ```
    
    Und dann verwenden Sie diese in einer Datei `main.py`:
    
    ```Python hl_lines="3  11-13"
    {!../../../docs_src/settings/app01/main.py!}
    ```
    
    !!! tip "Tipp"
        Sie benötigen außerdem eine Datei `__init__.py`, wie in [Größere Anwendungen – mehrere Dateien](../tutorial/bigger-applications.md){.internal-link target=_blank} gesehen.
    
    ## Einstellungen in einer Abhängigkeit
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  7. docs/zh/docs/deployment/docker.md

    Successfully installed fastapi pydantic uvicorn
    ```
    
    </div>
    
    !!! info
         还有其他文件格式和工具来定义和安装依赖项。
    
         我将在下面的部分中向你展示一个使用 Poetry 的示例。 👇
    
    ### 创建 **FastAPI** 代码
    
    * 创建`app`目录并进入。
    * 创建一个空文件`__init__.py`。
    * 创建一个 `main.py` 文件:
    
    
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 31.2K bytes
    - Viewed (0)
  8. docs/em/docs/advanced/settings.md

    ```Python
    {!../../../docs_src/settings/app01/config.py!}
    ```
    
    &amp; ⤴️ ⚙️ ⚫️ 📁 `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` 👈 ⚙️ 🌐.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/settings.md

    {!../../../docs_src/settings/app01/config.py!}
    ```
    
    And then use it in a file `main.py`:
    
    ```Python hl_lines="3  11-13"
    {!../../../docs_src/settings/app01/main.py!}
    ```
    
    !!! tip
        You would also need a file `__init__.py` as you saw in [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}.
    
    ## Settings in a dependency
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  10. 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` 更有用。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 13.9K bytes
    - Viewed (0)
Back to top