Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 697 for Python3 (5.84 sec)

  1. docs/em/docs/advanced/nosql-databases.md

    ⚫️ 🔜 ✊ `dict` `result.value`, & ✊ 🔠 🚮 🔑 & 💲 & 🚶‍♀️ 👫 🔑-💲 `UserInDB` 🇨🇻 ❌.
    
    , 🚥 `dict` 🔌:
    
    ```Python
    {
        "username": "johndoe",
        "hashed_password": "some_hash",
    }
    ```
    
    ⚫️ 🔜 🚶‍♀️ `UserInDB` :
    
    ```Python
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. docs/vi/docs/features.md

    ### Chỉ cần phiên bản Python hiện đại
    
    Tất cả được dựa trên khai báo kiểu dữ liệu chuẩn của **Python 3.8** (cảm ơn Pydantic). Bạn không cần học cú pháp mới, chỉ cần biết chuẩn Python hiện đại.
    
    Nếu bạn cần 2 phút để làm mới lại cách sử dụng các kiểu dữ liệu mới của Python (thậm chí nếu bạn không sử dụng FastAPI), xem hướng dẫn ngắn: [Kiểu dữ liệu Python](python-types.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. docs/it/docs/index.md

    Questo con le annotazioni per i tipi standard di Python.
    
    Non c'è bisogno di imparare una nuova sintassi, metodi o classi specifici a una libreria, ecc.
    
    È normalissimo **Python 3.6+**.
    
    Per esempio, per un `int`:
    
    ```Python
    item_id: int
    ```
    
    o per un modello `Item` più complesso:
    
    ```Python
    item: Item
    ```
    
    ...e con quella singola dichiarazione hai in cambio:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/advanced-dependencies.md

    但此处要把待检验的固定内容定义为参数。
    
    ## **可调用**实例
    
    Python 可以把类实例变为**可调用项**。
    
    这里说的不是类本身(类本就是可调用项),而是类实例。
    
    为此,需要声明 `__call__` 方法:
    
    ```Python hl_lines="10"
    {!../../../docs_src/dependencies/tutorial011.py!}
    ```
    
    本例中,**FastAPI**  使用 `__call__` 检查附加参数及子依赖项,稍后,还要调用它向*路径操作函数*传递值。
    
    ## 参数化实例
    
    接下来,使用 `__init__` 声明用于**参数化**依赖项的实例参数:
    
    ```Python hl_lines="7"
    {!../../../docs_src/dependencies/tutorial011.py!}
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jan 28 18:26:57 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/security/get-current-user.md

        ```Python hl_lines="17-20  24-25"
        {!> ../../../docs_src/security/tutorial002_py310.py!}
        ```
    
    ## 💉 ⏮️ 👩‍💻
    
    🔜 👥 💪 ⚙️ 🎏 `Depends` ⏮️ 👆 `get_current_user` *➡ 🛠️*:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="31"
        {!> ../../../docs_src/security/tutorial002.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="29"
        {!> ../../../docs_src/security/tutorial002_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. docs/ru/docs/index.md

    Вы делаете это используя стандартную современную типизацию Python.
    
    Вам не нужно изучать новый синтаксис, методы или классы конкретной библиотеки и т. д.
    
    Только стандартный **Python**.
    
    Например, для `int`:
    
    ```Python
    item_id: int
    ```
    
    или для более сложной модели `Item`:
    
    ```Python
    item: Item
    ```
    
    ... и с этим единственным объявлением вы получаете:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  7. docs/zh/docs/index.md

    ### 总结
    
    总的来说,你就像声明函数的参数类型一样只声明了**一次**请求参数、请求体等的类型。
    
    你使用了标准的现代 Python 类型来完成声明。
    
    你不需要去学习新的语法、了解特定库的方法或类,等等。
    
    只需要使用标准的 **Python 及更高版本**。
    
    举个例子,比如声明 `int` 类型:
    
    ```Python
    item_id: int
    ```
    
    或者一个更复杂的 `Item` 模型:
    
    ```Python
    item: Item
    ```
    
    ......在进行一次声明之后,你将获得:
    
    * 编辑器支持,包括:
        * 自动补全
        * 类型检查
    * 数据校验:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/request-files.md

    !!! info "정보"
        업로드된 파일을 전달받기 위해 먼저 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>를 설치해야합니다.
    
        예시) `pip install python-multipart`.
    
        업로드된 파일들은 "폼 데이터"의 형태로 전송되기 때문에 이 작업이 필요합니다.
    
    ## `File` 임포트
    
    `fastapi` 에서 `File` 과 `UploadFile` 을 임포트 합니다:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## `File` 매개변수 정의
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/generate-clients.md

    ## Generate a TypeScript Frontend Client
    
    Let's start with a simple FastAPI application:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7-9  12-13  16-17  21"
        {!> ../../../docs_src/generate_clients/tutorial001_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9-11  14-15  18  19  23"
        {!> ../../../docs_src/generate_clients/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Это обычная Python функция.
    
    **FastAPI** будет вызывать её каждый раз при получении `GET` запроса к URL "`/`".
    
    В данном случае это асинхронная функция.
    
    ---
    
    Вы также можете определить ее как обычную функцию вместо `async def`:
    
    ```Python hl_lines="7"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top