Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 158 for initAll (0.14 sec)

  1. docs/zh/docs/tutorial/request-files.md

    `File` 用于定义客户端的上传文件。
    
    !!! 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
    - 6.9K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/extending-openapi.md

    └── static
        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### 安装 `aiofiles`
    
    现在,安装 `aiofiles`:
    
    
    <div class="termy">
    
    ```console
    $ pip install aiofiles
    
    ---> 100%
    ```
    
    </div>
    
    ### 静态文件服务
    
    * 导入 `StaticFiles`
    * 在指定路径下**挂载** `StaticFiles()` 实例
    
    ```Python hl_lines="7  11"
    {!../../../docs_src/extending_openapi/tutorial002.py!}
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/response-model.md

        ```
    
    !!! info
        ⚙️ `EmailStr`, 🥇 ❎ <a href="https://github.com/JoshData/python-email-validator" class="external-link" target="_blank">`email_validator`</a>.
    
        🤶 Ⓜ. `pip install email-validator`
        ⚖️ `pip install pydantic[email]`.
    
    &amp; 👥 ⚙️ 👉 🏷 📣 👆 🔢 &amp; 🎏 🏷 📣 👆 🔢:
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/response_model/tutorial002.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
  4. docs/ru/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`
    
    Импортируйте `File` и `UploadFile` из модуля `fastapi`:
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/security/first-steps.md

    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    ## 実行
    
    !!! info "情報"
        まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。
    
        例えば、`pip install python-multipart`。
    
        これは、**OAuth2**が `ユーザー名` や `パスワード` を送信するために、「フォームデータ」を使うからです。
    
    例を実行します:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    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)
  6. docs/em/docs/advanced/settings.md

    !!! tip
        👉 👷, 👆 💪 `pip install python-dotenv`.
    
    ###  `.env` 📁
    
    👆 💪 ✔️ `.env` 📁 ⏮️:
    
    ```bash
    ADMIN_EMAIL="******@****.***"
    APP_NAME="ChimichangApp"
    ```
    
    ### ✍ ⚒ ⚪️➡️ `.env`
    
    &amp; ⤴️ ℹ 👆 `config.py` ⏮️:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    ```
    
    📁 `__init__.py` 🛁 📁, ✋️ ⚫️ 💬 🐍 👈 `sql_app` ⏮️ 🌐 🚮 🕹 (🐍 📁) 📦.
    
    🔜 ➡️ 👀 ⚫️❔ 🔠 📁/🕹 🔨.
    
    ## ❎ `SQLAlchemy`
    
    🥇 👆 💪 ❎ `SQLAlchemy`:
    
    <div class="termy">
    
    ```console
    $ pip install sqlalchemy
    
    ---> 100%
    ```
    
    </div>
    
    ## ✍ 🇸🇲 🍕
    
    ➡️ 🔗 📁 `sql_app/database.py`.
    
    ### 🗄 🇸🇲 🍕
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  8. docs/pl/docs/tutorial/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...wliczając w to `uvicorn`, który będzie służył jako serwer wykonujacy Twój kod.
    
    !!! note
        Możesz również wykonać instalację "krok po kroku".
    
        Prawdopodobnie zechcesz to zrobić, kiedy będziesz wdrażać swoją aplikację w środowisku produkcyjnym:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. docs/vi/docs/tutorial/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...dó cũng bao gồm `uvicorn`, bạn có thể sử dụng như một server để chạy code của bạn.
    
    !!! note
        Bạn cũng có thể cài đặt nó từng phần.
    
        Đây là những gì bạn có thể sẽ làm một lần duy nhất bạn muốn triển khai ứng dụng của bạn lên production:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:44:17 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  10. docs/de/docs/deployment/manually.md

        * <a href="https://www.uvicorn.org/" class="external-link" target="_blank">Uvicorn</a>, ein blitzschneller ASGI-Server, basierend auf uvloop und httptools.
    
        <div class="termy">
    
        ```console
        $ pip install "uvicorn[standard]"
    
        ---> 100%
        ```
    
        </div>
    
        !!! tip "Tipp"
            Durch das Hinzufügen von `standard` installiert und verwendet Uvicorn einige empfohlene zusätzliche Abhängigkeiten.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:16:35 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top