Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for aiofiles (0.16 sec)

  1. docs/zh/docs/advanced/extending-openapi.md

    │   ├── __init__.py
    │   ├── main.py
    └── 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"
    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)
  2. docs/zh/docs/advanced/templates.md

    ## 安装依赖项
    
    安装 `jinja2`:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    
    ---> 100%
    ```
    
    </div>
    
    如需使用静态文件,还要安装 `aiofiles`:
    
    <div class="termy">
    
    ```console
    $ pip install aiofiles
    
    ---> 100%
    ```
    
    </div>
    
    ## 使用 `Jinja2Templates`
    
    * 导入 `Jinja2Templates`
    * 创建可复用的 `templates` 对象
    * 在返回模板的*路径操作*中声明 `Request` 参数
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:45:16 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. docs/pl/docs/index.md

    Używane przez Starlette:
    
    * <a href="https://www.python-httpx.org" target="_blank"><code>httpx</code></a> - Wymagane jeżeli chcesz korzystać z `TestClient`.
    * <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Wymagane jeżeli chcesz korzystać z `FileResponse` albo `StaticFiles`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  4. docs/it/docs/index.md

    Usate da Starlette:
    
    * <a href="http://docs.python-requests.org" target="_blank"><code>requests</code></a> - Richiesto se vuoi usare il `TestClient`.
    * <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Richiesto se vuoi usare `FileResponse` o `StaticFiles`.
    * <a href="http://jinja.pocoo.org" target="_blank"><code>jinja2</code></a> - Richiesto se vuoi usare la configurazione template di default.
    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)
  5. docs/fa/docs/index.md

    استفاده شده توسط Starlette:
    
    * <a href="https://www.python-httpx.org" target="_blank"><code>HTTPX</code></a> - در صورتی که می‌خواهید از `TestClient` استفاده کنید.
    * <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - در صورتی که می‌خواهید از `FileResponse` و `StaticFiles` استفاده کنید.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    * 🌐 Remove translation docs references to aiofiles as it's no longer needed since AnyIO. PR [#3594](https://github.com/tiangolo/fastapi/pull/3594) by [@alonme](https://github.com/alonme).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
Back to top