Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 329 for __exit__ (0.04 sec)

  1. docs/en/docs/deployment/server-workers.md

      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting production server 🚀
    
                 Searching for package file structure from directories with
                 <font color="#3465A4">__init__.py</font> files
                 Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/first-steps.md

      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
                 Searching for package file structure from directories
                 with <font color="#3465A4">__init__.py</font> files
                 Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/first-steps.md

      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
                 Searching for package file structure from directories
                 with <font color="#3465A4">__init__.py</font> files
                 Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/docker.md

    There are other formats and tools to define and install package dependencies.
    
    ///
    
    ### Create the **FastAPI** Code { #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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 12:58:04 UTC 2025
    - 29.5K bytes
    - Viewed (1)
  5. docs/pt/docs/deployment/docker.md

    ///
    
    ### Crie o código do **FastAPI** { #create-the-fastapi-code }
    
    * Crie um diretório `app` e entre nele.
    * Crie um arquivo vazio `__init__.py`.
    * Crie um arquivo `main.py` com:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 32.1K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/settings.md

    E então usá-lo em um arquivo `main.py`:
    
    {* ../../docs_src/settings/app01_py39/main.py hl[3,11:13] *}
    
    /// tip | Dica
    
    Você também precisaria de um arquivo `__init__.py` como visto em [Aplicações Maiores - Múltiplos Arquivos](../tutorial/bigger-applications.md){.internal-link target=_blank}.
    
    ///
    
    ## Configurações em uma dependência { #settings-in-a-dependency }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. 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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/settings.md

    例如,您可以创建一个名为 `config.py` 的文件,其中包含以下内容:
    
    {* ../../docs_src/settings/app01/config.py *}
    
    然后在一个名为 `main.py` 的文件中使用它:
    
    {* ../../docs_src/settings/app01/main.py hl[3,11:13] *}
    
    /// tip
    
    您还需要一个名为 `__init__.py` 的文件,就像您在[Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}中看到的那样。
    
    ///
    
    ## 在依赖项中使用设置
    
    在某些情况下,从依赖项中提供设置可能比在所有地方都使用全局对象 `settings` 更有用。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. fastapi/routing.py

            assert dependant.call is not None, "dependant.call must be a function"
            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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/first-steps.md

      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
                 Searching for package file structure from directories
                 with <font color="#3465A4">__init__.py</font> files
                 Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
       <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span>  🐍 main.py
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top