- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,528 for fileb (0.16 sec)
-
docs_src/request_forms_and_files/tutorial001_an_py39.py
from typing import Annotated from fastapi import FastAPI, File, Form, UploadFile app = FastAPI() @app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 386 bytes - Viewed (0) -
docs_src/request_forms_and_files/tutorial001_an.py
from fastapi import FastAPI, File, Form, UploadFile from typing_extensions import Annotated app = FastAPI() @app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 396 bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
File dir2 = newFile("dir-1/dir-2"); assertThat(Files.fileTraverser().breadthFirst(rootDir)) .containsExactly(rootDir, fileA, fileB, dir1, dir2); } @CanIgnoreReturnValue private File newDir(String name) { File file = new File(rootDir, name); file.mkdir(); return file; } @CanIgnoreReturnValue private File newFile(String name) throws IOException {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Apr 21 20:17:27 GMT 2023 - 3.4K bytes - Viewed (0) -
docs_src/request_forms_and_files/tutorial001.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 317 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
File dir2 = newFile("dir-1/dir-2"); assertThat(Files.fileTraverser().breadthFirst(rootDir)) .containsExactly(rootDir, fileA, fileB, dir1, dir2); } @CanIgnoreReturnValue private File newDir(String name) { File file = new File(rootDir, name); file.mkdir(); return file; } @CanIgnoreReturnValue private File newFile(String name) throws IOException {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 21 20:17:27 GMT 2023 - 3.4K bytes - Viewed (0) -
.generated_files
# paths-from-repo - read a file from the repo and load file paths # file-prefix zz_generated. file-name types.generated.go file-name generated.pb.go file-name generated.proto file-name types_swagger_doc_generated.go path-prefix vendor/
Plain Text - Registered: Fri May 03 09:05:14 GMT 2024 - Last Modified: Tue Oct 04 23:47:25 GMT 2022 - 750 bytes - Viewed (0) -
docs/de/docs/tutorial/static-files.md
## `StaticFiles` verwenden * Importieren Sie `StaticFiles`. * „Mounten“ Sie eine `StaticFiles()`-Instanz in einem bestimmten Pfad. ```Python hl_lines="2 6" {!../../../docs_src/static_files/tutorial001.py!} ``` !!! note "Technische Details" Sie könnten auch `from starlette.staticfiles import StaticFiles` verwenden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:27:14 GMT 2024 - 1.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/static-files.md
# 静的ファイル `StaticFiles` を使用して、ディレクトリから静的ファイルを自動的に提供できます。 ## `StaticFiles` の使用 * `StaticFiles` をインポート。 * `StaticFiles()` インスタンスを生成し、特定のパスに「マウント」。 ```Python hl_lines="2 6" {!../../../docs_src/static_files/tutorial001.py!} ``` !!! note "技術詳細" `from starlette.staticfiles import StaticFiles` も使用できます。 **FastAPI**は、開発者の利便性のために、`starlette.staticfiles` と同じ `fastapi.staticfiles` を提供します。しかし、実際にはStarletteから直接渡されています。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue May 10 01:07:37 GMT 2022 - 2.1K bytes - Viewed (0) -
docs/em/docs/tutorial/static-files.md
# 🎻 📁 👆 💪 🍦 🎻 📁 🔁 ⚪️➡️ 📁 ⚙️ `StaticFiles`. ## ⚙️ `StaticFiles` * 🗄 `StaticFiles`. * "🗻" `StaticFiles()` 👐 🎯 ➡. ```Python hl_lines="2 6" {!../../../docs_src/static_files/tutorial001.py!} ``` !!! note "📡 ℹ" 👆 💪 ⚙️ `from starlette.staticfiles import StaticFiles`. **FastAPI** 🚚 🎏 `starlette.staticfiles` `fastapi.staticfiles` 🏪 👆, 👩💻. ✋️ ⚫️ 🤙 👟 🔗 ⚪️➡️ 💃. ### ⚫️❔ "🗜"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 1.3K bytes - Viewed (0) -
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)