Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 217 for __init__ (0.13 sec)

  1. 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():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 39K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/settings.md

    ```
    
    E utilizar essa configuração em `main.py`:
    
    ```Python hl_lines="3  11-13"
    {!../../docs_src/settings/app01/main.py!}
    ```
    
    /// dica
    
    Você também precisa incluir um arquivo `__init__.py` como visto em [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=\_blank}.
    
    ///
    
    ## Configurações em uma dependência
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. docs/zh/docs/deployment/docker.md

    ```
    
    </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():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. docs/en/data/external_links.yml

    author_link: https://pythonbytes.fm/ link: https://www.pythonpodcast.com/fastapi-web-application-framework-episode-259/ title: 'Do you dare to press "."? - Episode 247 - Dan #6: SQLModel - use the same models for SQL and FastAPI' - author: Podcast.`__init__` author_link: https://www.pythonpodcast.com/ link: https://www.pythonpodcast.com/fastapi-web-application-framework-episode-259/ title: Build The Next Generation Of Python Web Applications With FastAPI - Episode 259 - interview to Sebastían Ramírez...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 24 18:39:34 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. docs/ko/docs/deployment/docker.md

    ```
    
    </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():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  6. docs/ja/docs/deployment/docker.md

    ```
    
    </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():
        return {"Hello": "World"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  7. fastapi/applications.py

        [FastAPI docs for First Steps](https://fastapi.tiangolo.com/tutorial/first-steps/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI
    
        app = FastAPI()
        ```
        """
    
        def __init__(
            self: AppType,
            *,
            debug: Annotated[
                bool,
                Doc(
                    """
                    Boolean indicating if debug tracebacks should be returned on server
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  8. fastapi/concurrency.py

    async def contextmanager_in_threadpool(
        cm: ContextManager[_T],
    ) -> AsyncGenerator[_T, None]:
        # blocking __exit__ from running waiting on a free thread
        # can create race conditions/deadlocks if the context manager itself
        # has its own internal pool (e.g. a database connection pool)
        # to avoid this we let __exit__ run without a capacity limit
        # since we're creating a new limiter for each call, any non-zero limit
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Dec 25 17:57:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. RELEASE.md

            not be loaded due to selective registration.
        *   Add a new experimental argument `experimental_is_anonymous` to
            `tf.lookup.StaticHashTable.__init__` to create the table in anonymous
            mode. In this mode, the table resource can only be accessed via resource
            handles (not resource names) and will be deleted automatically when all
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    🚥 👆 ▶️ ⏮️ **FastAPI** 👆 💪 💚 🚶 ⚫️ 🔜.
    
    ///
    
    🐍, 👆 💪 ✍ 🔑 👨‍💼 <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">🏗 🎓 ⏮️ 2️⃣ 👩‍🔬: `__enter__()` &amp; `__exit__()`</a>.
    
    👆 💪 ⚙️ 👫 🔘 **FastAPI** 🔗 ⏮️ `yield` ⚙️
    `with` ⚖️ `async with` 📄 🔘 🔗 🔢:
    
    ```Python hl_lines="1-9  13"
    {!../../docs_src/dependencies/tutorial010.py!}
    ```
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top