- Sort Score
- Result 10 results
- Languages All
Results 581 - 590 of 611 for defa (0.03 sec)
-
docs/ru/docs/tutorial/request-files.md
Например, внутри `async` *функции операции пути* можно получить содержимое с помощью: ```Python contents = await myfile.read() ``` Если вы находитесь внутри обычной `def` *функции операции пути*, можно получить прямой доступ к файлу `UploadFile.file`, например: ```Python contents = myfile.file.read() ``` /// note | "Технические детали `async`"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.3K bytes - Viewed (0) -
docs/ja/docs/advanced/custom-response.md
これにはクラウドストレージとの連携や映像処理など、多くのライブラリが含まれています。 ```Python hl_lines="2 10-12 14" {!../../docs_src/custom_response/tutorial008.py!} ``` /// tip | "豆知識" ここでは `async` や `await` をサポートしていない標準の `open()` を使っているので、通常の `def` でpath operationを宣言していることに注意してください。 /// ### `FileResponse` レスポンスとしてファイルを非同期的にストリームします。 他のレスポンスタイプとは異なる引数のセットを受け取りインスタンス化します。 * `path` - ストリームするファイルのファイルパス。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.6K bytes - Viewed (0) -
docs/em/docs/tutorial/bigger-applications.md
```Python hl_lines="5-10 16 21" title="app/routers/items.py" {!../../docs_src/bigger_applications/app/routers/items.py!} ``` ➡ 🔠 *➡ 🛠️* ✔️ ▶️ ⏮️ `/`, 💖: ```Python hl_lines="1" @router.get("/{item_id}") async def read_item(item_id: str): ... ``` ...🔡 🔜 🚫 🔌 🏁 `/`. , 🔡 👉 💼 `/items`. 👥 💪 🚮 📇 `tags` & ➕ `responses` 👈 🔜 ✔ 🌐 *➡ 🛠️* 🔌 👉 📻.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.5K bytes - Viewed (0) -
docs/de/docs/features.md
```Python from typing import List, Dict from datetime import date from pydantic import BaseModel # Deklarieren Sie eine Variable als ein `str` # und bekommen Sie Editor-Unterstütung innerhalb der Funktion def main(user_id: str): return user_id # Ein Pydantic-Modell class User(BaseModel): id: int name: str joined: date ``` Das kann nun wie folgt verwendet werden: ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Aug 15 23:30:12 UTC 2024 - 10.7K bytes - Viewed (0) -
docs/en/docs/features.md
You write standard Python with types: ```Python from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` That can then be used like: ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Aug 15 23:30:12 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/pl/docs/features.md
Wystarczy, że napiszesz standardowe deklaracje typów Pythona: ```Python from datetime import date from pydantic import BaseModel # Zadeklaruj parametr jako str # i uzyskaj wsparcie edytora wewnątrz funkcji def main(user_id: str): return user_id # Model Pydantic class User(BaseModel): id: int name: str joined: date ``` A one będą mogły zostać później użyte w następujący sposób:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 10.9K bytes - Viewed (0) -
docs/tr/docs/features.md
```Python from typing import List, Dict from datetime import date from pydantic import BaseModel # Değişkeni str olarak belirt # ve o fonksiyon için harika bir editör desteği al def main(user_id: str): return user_id # Pydantic modeli class User(BaseModel): id: int name: str joined: date ``` Sonrasında bu şekilde kullanabilirsin ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 11.1K 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**는 스레드풀에서 파일 메소드들을 실행하고 그들을 기다립니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/pt/docs/features.md
Você escreve Python padrão com tipos: ```Python from datetime import date from pydantic import BaseModel # Declare uma variável como str # e obtenha suporte do editor dentro da função def main(user_id: str): return user_id # Um modelo do Pydantic class User(BaseModel): id: int name: str joined: date ``` Que então pode ser usado como: ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
{!../../docs_src/bigger_applications/app/routers/items.py!} ``` As the path of each *path operation* has to start with `/`, like in: ```Python hl_lines="1" @router.get("/{item_id}") async def read_item(item_id: str): ... ``` ...the prefix must not include a final `/`. So, the prefix in this case is `/items`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0)