Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 873 for Python (0.08 sec)

  1. docs/zh/docs/advanced/security/oauth2-scopes.md

    ```Python hl_lines="2  4  8  12  46  64  105  107-115  121-124  128-134  139  153"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    下面,我们逐步说明修改的代码内容。
    
    ## OAuth2 安全方案
    
    第一个修改的地方是,使用两个作用域 `me` 和 `items ` 声明 OAuth2 安全方案。
    
    `scopes` 参数接收**字典**,键是作用域、值是作用域的描述:
    
    ```Python hl_lines="62-65"
    {!../../docs_src/security/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/body.md

    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Créez votre modèle de données
    
    Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`.
    
    Utilisez les types Python standard pour tous les attributs :
    
    {* ../../docs_src/body/tutorial001.py hl[7:11] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:34:41 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. ci/official/containers/linux_arm64/build.sh

    # Builds the following Docker images for Linux ARM64. See the accompanying
    # Dockerfile for more details:
    # - us-central1-docker.pkg.dev/tensorflow-sigs/build-arm64:jax-latest-multi-python
    # - us-central1-docker.pkg.dev/tensorflow-sigs/build-arm64:tf-latest-multi-python
    
    set -exo pipefail
    
    function is_continuous_or_release() {
      [[ "$KOKORO_JOB_TYPE" == "CONTINUOUS_INTEGRATION" ]] || [[ "$KOKORO_JOB_TYPE" == "RELEASE" ]]
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 01 15:44:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. docs/he/docs/index.md

    ---
    
    רק גרדנו את קצה הקרחון, אבל כבר יש לכם רעיון של איך הכל עובד.
    
    נסו לשנות את השורה:
    
    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...מ:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...ל:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ...וראו איך העורך שלכם משלים את המאפיינים ויודע את הטיפוסים שלהם:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. ci/official/utilities/code_check_changed_files.bats

    @test "Check pylint for Python files" {
        echo "Python formatting is recommended. Here are the pylint errors:"
        echo "============================="
        grep -e "\.py$" $BATS_FILE_TMPDIR/changed_files > $BATS_TEST_TMPDIR/files || true
        if [[ ! -s $BATS_TEST_TMPDIR/files ]]; then return 0; fi
        xargs -a $BATS_TEST_TMPDIR/files -n1 -P $(nproc --all) \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Jan 10 19:39:41 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/openapi-callbacks.md

    🥇 ✍ 🆕 `APIRouter` 👈 🔜 🔌 1️⃣ ⚖️ 🌅 ⏲.
    
    ```Python hl_lines="3  25"
    {!../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    ### ✍ ⏲ *➡ 🛠️*
    
    ✍ ⏲ *➡ 🛠️* ⚙️ 🎏 `APIRouter` 👆 ✍ 🔛.
    
    ⚫️ 🔜 👀 💖 😐 FastAPI *➡ 🛠️*:
    
    * ⚫️ 🔜 🎲 ✔️ 📄 💪 ⚫️ 🔜 📨, ✅ `body: InvoiceEvent`.
    *  & ⚫️ 💪 ✔️ 📄 📨 ⚫️ 🔜 📨, ✅ `response_model=InvoiceEventReceived`.
    
    ```Python hl_lines="16-18  21-22  28-32"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/middleware.md

    总之,ASGI 中间件是类,并把 ASGI 应用作为第一个参数。
    
    因此,有些第三方 ASGI 中间件的文档推荐以如下方式使用中间件:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    但 FastAPI(实际上是 Starlette)提供了一种更简单的方式,能让内部中间件在处理服务器错误的同时,还能让自定义异常处理器正常运作。
    
    为此,要使用 `app.add_middleware()` (与 CORS 中的示例一样)。
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. docs/fa/docs/features.md

    اگر به یک یادآوری ۲ دقیقه ای در مورد نحوه استفاده از تایپ های پایتون دارید (حتی اگر از FastAPI استفاده نمیکنید) این آموزش کوتاه را بررسی کنید: [Python Types](python-types.md){.internal-link target=\_blank}.
    
    شما پایتون استاندارد را با استفاده از تایپ ها مینویسید:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. docs/en/docs/reference/dependencies.md

    ## `Depends()`
    
    Dependencies are handled mainly with the special function `Depends()` that takes a callable.
    
    Here is the reference for it and its parameters.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Depends
    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    For many scenarios, you can handle security (authorization, authentication, etc.) with dependencies, using `Depends()`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 671 bytes
    - Viewed (0)
  10. .github/actions/people/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 14:12:28 UTC 2023
    - 156 bytes
    - Viewed (0)
Back to top