Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 787 for py (0.07 sec)

  1. docs/zh/docs/advanced/advanced-dependencies.md

    为此,需要声明 `__call__` 方法:
    
    {* ../../docs_src/dependencies/tutorial011.py hl[10] *}
    
    本例中,**FastAPI**  使用 `__call__` 检查附加参数及子依赖项,稍后,还要调用它向*路径操作函数*传递值。
    
    ## 参数化实例
    
    接下来,使用 `__init__` 声明用于**参数化**依赖项的实例参数:
    
    {* ../../docs_src/dependencies/tutorial011.py hl[7] *}
    
    本例中,**FastAPI** 不使用 `__init__`,我们要直接在代码中使用。
    
    ## 创建实例
    
    使用以下代码创建类实例:
    
    {* ../../docs_src/dependencies/tutorial011.py hl[16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-files.md

    Import `File` and `UploadFile` from `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Define `File` Parameters { #define-file-parameters }
    
    Create file parameters the same way you would for `Body` or `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info
    
    `File` is a class that inherits directly from `Form`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/request-files.md

    ///
    
    ## Importe `File`
    
    Importe `File` e `UploadFile` de `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Definir Parâmetros `File`
    
    Crie parâmetros de arquivo da mesma forma que você faria para `Body` ou `Form`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *}
    
    /// info | Informação
    
    `File` é uma classe que herda diretamente de `Form`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/fa/docs/environment-variables.md

    <div class="termy">
    
    ```console
    // اینجا هنوز متغیر محیطی رو تنظیم نکردیم
    $ python main.py
    
    // چون متغیر محیطی رو تنظیم نکردیم، مقدار پیش‌فرض رو می‌گیریم
    
    Hello World from Python
    
    // ولی اگه اول یه متغیر محیطی بسازیم
    $ export MY_NAME="Wade Wilson"
    
    // و بعد دوباره برنامه رو صدا کنیم
    $ python main.py
    
    // حالا می‌تونه متغیر محیطی رو بخونه
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Jul 25 09:27:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/path-params-numeric-validations.md

    ## 경로 임포트
    
    먼저 `fastapi`에서 `Path`를 임포트합니다:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[3] *}
    
    ## 메타데이터 선언
    
    `Query`에 동일한 매개변수를 선언할 수 있습니다.
    
    예를 들어, `title` 메타데이터 값을 경로 매개변수 `item_id`에 선언하려면 다음과 같이 입력할 수 있습니다:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[10] *}
    
    /// note | 참고
    
    경로 매개변수는 경로의 일부여야 하므로 언제나 필수적입니다.
    
    즉, `...`로 선언해서 필수임을 나타내는게 좋습니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. docs/es/docs/how-to/configure-swagger-ui.md

    Incluye estas configuraciones predeterminadas:
    
    {* ../../fastapi/openapi/docs.py ln[8:23] hl[17:23] *}
    
    Puedes sobrescribir cualquiera de ellos estableciendo un valor diferente en el argumento `swagger_ui_parameters`.
    
    Por ejemplo, para desactivar `deepLinking` podrías pasar estas configuraciones a `swagger_ui_parameters`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial003.py hl[3] *}
    
    ## Otros parámetros de Swagger UI
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Pueden declarar requisitos de request (como headers) u otras sub-dependencias:
    
    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[8,13] *}
    
    ### Lanzar excepciones
    
    Estas dependencias pueden `raise` excepciones, igual que las dependencias normales:
    
    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[10,15] *}
    
    ### Valores de retorno
    
    Y pueden devolver valores o no, los valores no serán usados.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/configure-swagger-ui.md

    It includes these default configurations:
    
    {* ../../fastapi/openapi/docs.py ln[8:23] hl[17:23] *}
    
    You can override any of them by setting a different value in the argument `swagger_ui_parameters`.
    
    For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial003.py hl[3] *}
    
    ## Other Swagger UI Parameters { #other-swagger-ui-parameters }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/header-params.md

    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Объявление параметров `Header`
    
    Затем объявите параметры заголовка, используя ту же структуру, что и с `Path`, `Query` и `Cookie`.
    
    Первое значение является значением по умолчанию, вы можете передать все дополнительные параметры валидации или аннотации:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | Технические детали
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/query-params.md

    # Query Parameters { #query-parameters }
    
    When you declare other function parameters that are not part of the path parameters, they are automatically interpreted as "query" parameters.
    
    {* ../../docs_src/query_params/tutorial001.py hl[9] *}
    
    The query is the set of key-value pairs that go after the `?` in a URL, separated by `&` characters.
    
    For example, in the URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top