- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for iterator (0.17 sec)
-
docs/en/docs/reference/responses.md
- init_headers - headers - set_cookie - delete_cookie ::: fastapi.responses.StreamingResponse options: members: - body_iterator - charset - status_code - media_type - body - background - raw_headers - render - init_headers
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.7K bytes - Viewed (0) -
docs/de/docs/reference/responses.md
- init_headers - headers - set_cookie - delete_cookie ::: fastapi.responses.StreamingResponse options: members: - body_iterator - charset - status_code - media_type - body - background - raw_headers - render - init_headers
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Feb 19 15:53:39 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
### `StreamingResponse` Takes an async generator or a normal generator/iterator and streams the response body. ```Python hl_lines="2 14" {!../../../docs_src/custom_response/tutorial007.py!} ``` #### Using `StreamingResponse` with file-like objects If you have a file-like object (e.g. the object returned by `open()`), you can create a generator function to iterate over that file-like object.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
```Python hl_lines="2 7 9" {!../../../docs_src/custom_response/tutorial006c.py!} ``` ### `StreamingResponse` Nimmt einen asynchronen Generator oder einen normalen Generator/Iterator und streamt den Responsebody. ```Python hl_lines="2 14" {!../../../docs_src/custom_response/tutorial007.py!} ``` #### Verwendung von `StreamingResponse` mit dateiรคhnlichen Objekten
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 13:05:12 GMT 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* It's now possible to use [Starlette's `StreamingResponse`](https://www.starlette.io/responses/#streamingresponse) with iterators, like [file-like](https://docs.python.org/3/glossary.html#term-file-like-object) objects (as those returned by `open()`). * It's now possible to use the low level utility `iterate_in_threadpool` from `starlette.concurrency` (for advanced scenarios). * PR [#243](https://github.com/tiangolo/fastapi/pull/243).
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) -
docs/em/docs/python-types.md
๐ 3๏ธโฃ.6๏ธโฃ & ๐ (โ ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ) ๐ ๐ช โ๏ธ `Union` ๐ โช๏ธโก๏ธ `typing` & ๐ฎ ๐ โฌ ๐ ๐ช ๐ ๐ซ. ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ ๐ค **๐ โ** ๐โ ๐ ๐ช ๐ฎ ๐ช ๐ ๐ฝ <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>โธ โธ (`|`)</abbr>. === "๐ 3๏ธโฃ.6๏ธโฃ & ๐" ```Python hl_lines="1 4" {!> ../../../docs_src/python_types/tutorial008b.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13.6K bytes - Viewed (0) -
fastapi/concurrency.py
from contextlib import asynccontextmanager as asynccontextmanager from typing import AsyncGenerator, ContextManager, TypeVar import anyio from anyio import CapacityLimiter from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool # noqa from starlette.concurrency import run_in_threadpool as run_in_threadpool # noqa from starlette.concurrency import ( # noqa run_until_first_complete as run_until_first_complete, )
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Dec 25 17:57:35 GMT 2023 - 1.4K bytes - Viewed (0) -
fastapi/encoders.py
Our Id type is a prime example of this. >>> decimal_encoder(Decimal("1.0")) 1.0 >>> decimal_encoder(Decimal("1")) 1 """ if dec_value.as_tuple().exponent >= 0: # type: ignore[operator] return int(dec_value) else: return float(dec_value) ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
{!../../../docs_src/path_operation_advanced_configuration/tutorial001.py!} ``` ### Using the *path operation function* name as the operationId If you want to use your APIs' function names as `operationId`s, you can iterate over all of them and override each *path operation's* `operation_id` using their `APIRoute.name`. You should do it after adding all your *path operations*. ```Python hl_lines="2 12-21 24"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/vi/docs/python-types.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 21.9K bytes - Viewed (0)