Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 874 for Pythons (0.1 sec)

  1. docs/zh/docs/deployment/server-workers.md

    ```
    
    </div>
    
    
    让我们看看每个选项的含义:
    
    * `main:app`:这与 Uvicorn 使用的语法相同,`main` 表示名为"`main`"的 Python 模块,因此是文件 `main.py`。 `app` 是 **FastAPI** 应用程序的变量名称。
         * 你可以想象 `main:app` 相当于一个 Python `import` 语句,例如:
    
            ```Python
            from main import app
            ```
    
         * 因此,`main:app` 中的冒号相当于 `from main import app` 中的 Python `import` 部分。
    
    * `--workers`:要使用的worker进程数量,每个进程将运行一个 Uvicorn worker进程,在本例中为 4 个worker进程。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/fa/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
    - 25.9K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/dataclasses.md

    Mas o FastAPI também suporta o uso de <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> da mesma forma:
    
    ```Python hl_lines="1  7-12  19-20"
    {!../../docs_src/dataclasses/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:53 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/first-steps.md

    ## Rückblick, Schritt für Schritt
    
    ### Schritt 1: Importieren von `FastAPI`
    
    ```Python hl_lines="1"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `FastAPI` ist eine Python-Klasse, die die gesamte Funktionalität für Ihre API bereitstellt.
    
    /// note | "Technische Details"
    
    `FastAPI`  ist eine Klasse, die direkt von `Starlette` erbt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. docs/ja/docs/alternatives.md

    Requestsは非常にシンプルかつ直感的なデザインで使いやすく、適切なデフォルト値を設定しています。しかし同時に、非常に強力でカスタマイズも可能です。
    
    公式サイトで以下のように言われているのは、それが理由です。
    
    > Requestsは今までで最もダウンロードされたPythonパッケージである
    
    使い方はとても簡単です。例えば、`GET`リクエストを実行するには、このように書けば良いです:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    対応するFastAPIのパスオペレーションはこのようになります:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  6. docs/tr/docs/tutorial/first-steps.md

    ## Adım Adım Özetleyelim
    
    ### Adım 1: `FastAPI`yı Projemize Dahil Edelim
    
    ```Python hl_lines="1"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `FastAPI`, API'niz için tüm işlevselliği sağlayan bir Python sınıfıdır.
    
    /// note | "Teknik Detaylar"
    
    `FastAPI` doğrudan `Starlette`'i miras alan bir sınıftır.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/metadata.md

    ```Python hl_lines="3-16  18"
    {!../../docs_src/metadata/tutorial004.py!}
    ```
    
    설명 안에 마크다운을 사용할 수 있습니다. 예를 들어 "login"은 굵게(**login**) 표시되고, "fancy"는 기울임꼴(_fancy_)로 표시됩니다.
    
    /// tip
    
    사용 중인 모든 태그에 메타데이터를 추가할 필요는 없습니다.
    
    ///
    
    ### 태그 사용
    
    `tags` 매개변수를 *경로 작동* 및 `APIRouter`와 함께 사용하여 태그에 할당할 수 있습니다:
    
    ```Python hl_lines="21  26"
    {!../../docs_src/metadata/tutorial004.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. docs/fr/docs/project-generation.md

    * Intégration **Docker Compose** et optimisation pour développement local.
    * Serveur web Python **prêt au déploiement** utilisant Uvicorn et Gunicorn.
    * Backend Python <a href="https://github.com/fastapi/fastapi" class="external-link" target="_blank">**FastAPI**</a> :
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/BUILD

        licenses = ["notice"],
    )
    
    # Currently pybind extension shared objects must use only C API headers since
    # the C API has static initializers duplicated in the Python bindings. So we
    # need a second rule that omits .cc files, in
    # tensorflow/python:_pywrap_parallel_device.
    filegroup(
        name = "lib_headers",
        srcs = ["parallel_device_lib.h"],
    )
    
    filegroup(
        name = "lib_sources",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ### 依赖项的需求项
    
    路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:
    
    ```Python hl_lines="6  11"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 触发异常
    
    路径装饰器依赖项与正常的依赖项一样,可以 `raise` 异常:
    
    ```Python hl_lines="8  13"
    {!../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 返回值
    
    无论路径装饰器依赖项是否返回值,路径操作都不会使用这些值。
    
    因此,可以复用在其他位置使用过的、(能返回值的)普通依赖项,即使没有使用这个值,也会执行该依赖项:
    
    ```Python hl_lines="9  14"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top