- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 197 for contents (0.17 sec)
-
docs/em/docs/tutorial/request-files.md
* `close()`: 🔐 📁. 🌐 👫 👩🔬 `async` 👩🔬, 👆 💪 "⌛" 👫. 🖼, 🔘 `async` *➡ 🛠️ 🔢* 👆 💪 🤚 🎚 ⏮️: ```Python contents = await myfile.read() ``` 🚥 👆 🔘 😐 `def` *➡ 🛠️ 🔢*, 👆 💪 🔐 `UploadFile.file` 🔗, 🖼: ```Python contents = myfile.file.read() ``` !!! note "`async` 📡 ℹ" 🕐❔ 👆 ⚙️ `async` 👩🔬, **FastAPI** 🏃 📁 👩🔬 🧵 & ⌛ 👫. !!! note "💃 📡 ℹ"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-files.md
* `close()`: 파일을 닫습니다. 상기 모든 메소드들이 `async` 메소드이기 때문에 “await”을 사용하여야 합니다. 예를들어, `async` *경로 작동 함수*의 내부에서 다음과 같은 방식으로 내용을 가져올 수 있습니다: ```Python contents = await myfile.read() ``` 만약 일반적인 `def` *경로 작동 함수*의 내부라면, 다음과 같이 `UploadFile.file` 에 직접 접근할 수 있습니다: ```Python contents = myfile.file.read() ``` !!! note "`async` 기술적 세부사항" `async` 메소드들을 사용할 때 **FastAPI**는 스레드풀에서 파일 메소드들을 실행하고 그들을 기다립니다.
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) -
docs/zh/docs/tutorial/request-files.md
* `close()`:关闭文件。 因为上述方法都是 `async` 方法,要搭配「await」使用。 例如,在 `async` *路径操作函数* 内,要用以下方式读取文件内容: ```Python contents = await myfile.read() ``` 在普通 `def` *路径操作函数* 内,则可以直接访问 `UploadFile.file`,例如: ```Python contents = myfile.file.read() ``` !!! note "`async` 技术细节" 使用 `async` 方法时,**FastAPI** 在线程池中执行文件方法,并 `await` 操作完成。 !!! note "Starlette 技术细节"
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) -
docs/en/docs/tutorial/request-files.md
* This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file. As all these methods are `async` methods, you need to "await" them. For example, inside of an `async` *path operation function* you can get the contents with: ```Python contents = await myfile.read() ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/en/docs/contributing.md
```yaml INHERIT: ../en/mkdocs.yml ``` !!! tip You could also simply create that file with those contents manually. That command also created a dummy file `docs/ht/index.md` for the main page, you can start by translating that one. You can continue with the previous instructions for an "Existing Language" for that process.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 17:42:43 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
It won't do any data conversion with Pydantic models, it won't convert the contents to any type, etc. This gives you a lot of flexibility. You can return any data type, override any data declaration or validation, etc. ## Using the `jsonable_encoder` in a `Response` Because **FastAPI** doesn't do any change to a `Response` you return, you have to make sure it's contents are ready for it.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 29 14:02:58 GMT 2020 - 3K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-files.md
Например, внутри `async` *функции операции пути* можно получить содержимое с помощью: ```Python contents = await myfile.read() ``` Если вы находитесь внутри обычной `def` *функции операции пути*, можно получить прямой доступ к файлу `UploadFile.file`, например: ```Python contents = myfile.file.read() ``` !!! note "Технические детали `async`"
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) -
docs/en/docs/deployment/concepts.md
# Deployments Concepts When deploying a **FastAPI** application, or actually, any type of web API, there are several concepts that you probably care about, and using them you can find the **most appropriate** way to **deploy your application**. Some of the important concepts are: * Security - HTTPS * Running on startup * Restarts * Replication (the number of processes running) * Memory * Previous steps before starting
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 18K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
🖼, <a href="https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">👆 💪 ⚙️ `with` ✍ 📁</a>: ```Python with open("./somefile.txt") as f: contents = f.read() print(contents) ``` 🔘, `open("./somefile.txt")` ✍ 🎚 👈 🤙 "🔑 👨💼". 🕐❔ `with` 🍫 🏁, ⚫️ ⚒ 💭 🔐 📁, 🚥 📤 ⚠. 🕐❔ 👆 ✍ 🔗 ⏮️ `yield`, **FastAPI** 🔜 🔘 🗜 ⚫️ 🔑 👨💼, & 🌀 ⚫️ ⏮️ 🎏 🔗 🧰.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/how-to/nosql-databases-couchbase.md
## Get the user Now create a function that will: * Take a username. * Generate a document ID from it. * Get the document with that ID. * Put the contents of the document in a `UserInDB` model.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 6K bytes - Viewed (0)