Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 348 for toml (0.02 seconds)

  1. docs/en/docs/fastapi-cli.md

    But you can configure explicitly the app to use.
    
    ## Configure the app `entrypoint` in `pyproject.toml` { #configure-the-app-entrypoint-in-pyproject-toml }
    
    You can configure where your app is located in a `pyproject.toml` file like:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    That `entrypoint` will tell the `fastapi` command that it should import the app like:
    
    ```python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_mermaid_not_translated.md

    Some text
    
    ```python
    # This is a sample Python code block
    def hello_world():
        # Comment with indentation
        print("Hello, world!")  # Print greeting
    ```
    
    Some more text
    
    ```toml
    # This is a sample TOML code block
    title = "TOML Example"  # Title of the document
    ```
    
    And more text
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    $ python ./scripts/docs.py live es
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 883 bytes
    - Click Count (0)
  3. docs/zh-hant/docs/fastapi-cli.md

    `fastapi` CLI 會嘗試自動偵測要執行的 FastAPI 應用程式,預設假設它是檔案 `main.py` 中名為 `app` 的物件(或其他幾種變體)。
    
    不過你也可以明確設定要使用的 app。
    
    ## 在 `pyproject.toml` 中設定應用程式的 `entrypoint` { #configure-the-app-entrypoint-in-pyproject-toml }
    
    你可以在 `pyproject.toml` 檔案中指定你的 app 位置,例如:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    這個 `entrypoint` 會告訴 `fastapi` 指令應該像這樣匯入 app:
    
    ```python
    from main import app
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  4. docs/ja/docs/fastapi-cli.md

    `fastapi` CLI は、実行する FastAPI アプリを自動検出しようとします。既定では、`main.py` の中にある `app` という名前のオブジェクト(ほかにもいくつかの変種)であると仮定します。
    
    ただし、使用するアプリを明示的に設定することもできます。
    
    ## `pyproject.toml` でアプリの `entrypoint` を設定 { #configure-the-app-entrypoint-in-pyproject-toml }
    
    `pyproject.toml` に次のように、アプリの場所を設定できます:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    この `entrypoint` により、`fastapi` コマンドは次のようにアプリを import する必要があると認識します:
    
    ```python
    from main import app
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  5. scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_lines_number_lt.md

    # This is a sample Python code block
    def hello_world():
        # Comment with indentation
        print("Hello, world!")  # Print greeting
    ```
    
    Some more text
    
    The following block is missing first line:
    
    ```toml
    title = "TOML Example"  # Title of the document
    ```
    
    And more text
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    $ python ./scripts/docs.py live es
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 892 bytes
    - Click Count (0)
  6. docs/zh/docs/fastapi-cli.md

    `fastapi` CLI 会尝试自动检测要运行的 FastAPI 应用,默认假设它是文件 `main.py` 中名为 `app` 的对象(或少数其他变体)。
    
    但你也可以显式配置要使用的应用。
    
    ## 在 `pyproject.toml` 中配置应用的 `entrypoint` { #configure-the-app-entrypoint-in-pyproject-toml }
    
    你可以在 `pyproject.toml` 文件中配置应用的位置,例如:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    这个 `entrypoint` 会告诉 `fastapi` 命令按如下方式导入应用:
    
    ```python
    from main import app
    ```
    
    如果你的代码结构如下:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  7. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_wrong_lang_code.py

        assert "Error processing docs/lang/docs/doc.md" in result.output
        assert (
            "Code block (lines 16-19) has different language than the original block ('yaml' vs 'toml')"
        ) in result.output
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_wrong_lang_code_2.md")],
        indirect=True,
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  8. docs/ko/docs/fastapi-cli.md

    `fastapi` CLI는 기본적으로 실행할 FastAPI 앱을 자동으로 감지하려고 시도합니다. `main.py` 파일 안의 `app`이라는 객체(또는 몇 가지 변형)가 있다고 가정합니다.
    
    하지만 사용할 앱을 명시적으로 구성할 수도 있습니다.
    
    ## `pyproject.toml`에서 앱 `entrypoint` 구성하기 { #configure-the-app-entrypoint-in-pyproject-toml }
    
    `pyproject.toml` 파일에서 앱이 어디에 있는지 다음과 같이 구성할 수 있습니다:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    이 `entrypoint`는 `fastapi` 명령어에 다음과 같이 앱을 임포트하라고 알려줍니다:
    
    ```python
    from main import app
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/first-steps.md

    API와 통신하는 클라이언트(프론트엔드, 모바일, IoT 애플리케이션 등)를 위해 코드를 자동으로 생성하는 데도 사용할 수 있습니다.
    
    ### `pyproject.toml`에 앱 `entrypoint` 구성하기 { #configure-the-app-entrypoint-in-pyproject-toml }
    
    다음과 같이 `pyproject.toml` 파일에서 앱이 위치한 곳을 구성할 수 있습니다:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    해당 `entrypoint`는 `fastapi` 명령어에 다음과 같이 앱을 임포트하라고 알려줍니다:
    
    ```python
    from main import app
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/first-steps.md

    ### `pyproject.toml` içinde uygulama `entrypoint`'ını yapılandırın { #configure-the-app-entrypoint-in-pyproject-toml }
    
    Uygulamanızın nerede bulunduğunu `pyproject.toml` dosyasında şöyle yapılandırabilirsiniz:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 14.4K bytes
    - Click Count (0)
Back to Top