Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 895 for python (0.06 sec)

  1. docs/de/docs/how-to/extending-openapi.md

    Schreiben Sie zunächst wie gewohnt Ihre ganze **FastAPI**-Anwendung:
    
    ```Python hl_lines="1  4  7-9"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Das OpenAPI-Schema generieren
    
    Verwenden Sie dann dieselbe Hilfsfunktion, um das OpenAPI-Schema innerhalb einer `custom_openapi()`-Funktion zu generieren:
    
    ```Python hl_lines="2  15-21"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/openapi-callbacks.md

    ///
    
    ### 创建回调的 `APIRouter`
    
    首先,新建包含一些用于回调的 `APIRouter`。
    
    ```Python hl_lines="5  26"
    {!../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    ### 创建回调*路径操作*
    
    创建回调*路径操作*也使用之前创建的 `APIRouter`。
    
    它看起来和常规 FastAPI *路径操作*差不多:
    
    * 声明要接收的请求体,例如,`body: InvoiceEvent`
    * 还要声明要返回的响应,例如,`response_model=InvoiceEventReceived`
    
    ```Python hl_lines="17-19  22-23  29-33"
    {!../../docs_src/openapi_callbacks/tutorial001.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/first-steps.md

    * **オペレーション**: は`get`です。
    * **関数**: 「デコレータ」の直下にある関数 (`@app.get("/")`の直下) です。
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    これは、Pythonの関数です。
    
    この関数は、`GET`オペレーションを使ったURL「`/`」へのリクエストを受け取るたびに**FastAPI**によって呼び出されます。
    
    この場合、この関数は`async`関数です。
    
    ---
    
    `async def`の代わりに通常の関数として定義することもできます:
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. docs/bn/docs/index.md

    আপনি সেটি আধুনিক পাইথনের সাথে করেন।
    
    আপনাকে নতুন করে নির্দিষ্ট কোন লাইব্রেরির বাক্য গঠন, ফাংশন বা ক্লাস কিছুই শিখতে হচ্ছে না।
    
    শুধুই আধুনিক **Python 3.6+**
    
    উদাহরণস্বরূপ, `int` এর জন্য:
    
    ```Python
    item_id: int
    ```
    
    অথবা আরও জটিল `Item` মডেলের জন্য:
    
    ```Python
    item: Item
    ```
    
    ...এবং সেই একই ঘোষণার সাথে আপনি পাবেন:
    
    - এডিটর সাহায্য, যেমন
      - সমাপ্তি।
      - ধরণ যাচাই
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/metadata.md

    Sie können diese wie folgt setzen:
    
    ```Python hl_lines="3-16  19-32"
    {!../../docs_src/metadata/tutorial001.py!}
    ```
    
    /// tip | "Tipp"
    
    Sie können Markdown in das Feld `description` schreiben und es wird in der Ausgabe gerendert.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/query-params.md

    그리고 특정 순서로 선언할 필요가 없습니다.
    
    매개변수들은 이름으로 감지됩니다:
    
    ```Python hl_lines="8  10"
    {!../../docs_src/query_params/tutorial004.py!}
    ```
    
    ## 필수 쿼리 매개변수
    
    경로가 아닌 매개변수에 대한 기본값을 선언할 때(지금은 쿼리 매개변수만 보았습니다), 해당 매개변수는 필수적(Required)이지 않았습니다.
    
    특정값을 추가하지 않고 선택적으로 만들기 위해선 기본값을 `None`으로 설정하면 됩니다.
    
    그러나 쿼리 매개변수를 필수로 만들려면 단순히 기본값을 선언하지 않으면 됩니다:
    
    ```Python hl_lines="6-7"
    {!../../docs_src/query_params/tutorial005.py!}
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/tensorflow_issue_template.yaml

      - type: dropdown
        id: source
        attributes:
          label: Source
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Jun 28 18:25:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/sub-applications.md

    首先,创建主(顶层)**FastAPI** 应用及其*路径操作*:
    
    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### 子应用
    
    接下来,创建子应用及其*路径操作*。
    
    子应用只是另一个标准 FastAPI 应用,但这个应用是被**挂载**的应用:
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### 挂载子应用
    
    在顶层应用 `app` 中,挂载子应用 `subapi`。
    
    本例的子应用挂载在 `/subapi` 路径下:
    
    ```Python hl_lines="11  19"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs/en/docs/contributing.md

    ### Using your local FastAPI
    
    If you create a Python file that imports and uses FastAPI, and run it with the Python from your local environment, it will use your cloned local FastAPI source code.
    
    And if you update that local FastAPI source code when you run that Python file again, it will use the fresh version of FastAPI you just edited.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 25 02:44:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm`
    
    먼저 `OAuth2PasswordRequestForm`을 가져와 `/token`에 대한 *경로 작동*에서 `Depends`의 의존성으로 사용합니다.
    
    //// tab | 파이썬 3.7 이상
    
    ```Python hl_lines="4  76"
    {!> ../../docs_src/security/tutorial003.py!}
    ```
    
    ////
    
    //// tab | 파이썬 3.10 이상
    
    ```Python hl_lines="2  74"
    {!> ../../docs_src/security/tutorial003_py310.py!}
    ```
    
    ////
    
    `OAuth2PasswordRequestForm`은 다음을 사용하여 폼 본문을 선언하는 클래스 의존성입니다:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top