Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for initialize (0.16 sec)

  1. pdm_build.py

    import os
    from typing import Any, Dict, List
    
    from pdm.backend.hooks import Context
    
    TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi")
    
    
    def pdm_build_initialize(context: Context) -> None:
        metadata = context.config.metadata
        # Get custom config for the current package, from the env var
        config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
            "_internal-slim-build"
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    * Initialize French translations. PR [#1975](https://github.com/tiangolo/fastapi/pull/1975) by [@JulianMaurin-BM](https://github.com/JulianMaurin-BM).
    * Initialize Turkish translations. PR [#1905](https://github.com/tiangolo/fastapi/pull/1905) by [@ycd](https://github.com/ycd).
    
    ### Internal
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  3. docs/en/docs/advanced/events.md

    ```Python hl_lines="8"
    {!../../../docs_src/events/tutorial001.py!}
    ```
    
    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/sql-databases.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/sql_databases/sql_app/main.py!}
        ```
    
    #### Alembic Note
    
    Normally you would probably initialize your database (create tables, etc) with <a href="https://alembic.sqlalchemy.org/en/latest/" class="external-link" target="_blank">Alembic</a>.
    
    And you would also use Alembic for "migrations" (that's its main job).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  5. docs/de/docs/contributing.md

    <div class="termy">
    
    ```console
    // Verwenden Sie das Kommando new-lang und fügen Sie den Sprach-Code als Argument hinten an
    $ python ./scripts/docs.py new-lang ht
    
    Successfully initialized: docs/ht
    ```
    
    </div>
    
    Jetzt können Sie in Ihrem Code-Editor das neu erstellte Verzeichnis `docs/ht/` sehen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 23:55:23 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  6. docs/zh/docs/contributing.md

    下一步是运行脚本以生成新的翻译目录:
    
    <div class="termy">
    
    ```console
    // Use the command new-lang, pass the language code as a CLI argument
    $ python ./scripts/docs.py new-lang ht
    
    Successfully initialized: docs/ht
    ```
    
    </div>
    
    现在,你可以在编辑器中查看新创建的目录 `docs/ht/`。
    
    这条命令会生成一个从 `en` 版本继承了所有属性的配置文件 `docs/ht/mkdocs.yml`:
    
    ```yaml
    INHERIT: ../en/mkdocs.yml
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 11:57:21 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top