- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 220 for tiangolo (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
fastapi/encoders.py
You can also use it yourself, for example to convert objects before saving them in a database that supports only JSON. Read more about it in the [FastAPI docs for JSON Compatible Encoder](https://fastapi.tiangolo.com/tutorial/encoder/). """ custom_encoder = custom_encoder or {} if custom_encoder: if type(obj) in custom_encoder: return custom_encoder[type(obj)](obj) else:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 10.9K bytes - Click Count (0) -
docs/zh/docs/advanced/stream-data.md
{* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *} /// tip | 提示 如果你需要在异步函数里调用阻塞代码,或在阻塞函数里调用异步函数,可以使用 [Asyncer](https://asyncer.tiangolo.com),它是 FastAPI 的姐妹库。 /// ### `yield from` { #yield-from } 当你在迭代某个对象(例如类文件对象),并为每个条目执行 `yield` 时,你也可以使用 `yield from` 直接产出每个条目,从而省去 `for` 循环。 这并不是 FastAPI 特有的功能,只是 Python 的语法,但这是一个值得知道的小技巧。😎Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 5.2K bytes - Click Count (0) -
docs/ko/docs/advanced/stream-data.md
{* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *} /// tip | 팁 비동기 함수 안에서 블로킹 코드를 호출해야 하거나, 반대로 블로킹 함수 안에서 비동기 함수를 호출해야 한다면 FastAPI의 형제 라이브러리인 [Asyncer](https://asyncer.tiangolo.com)를 사용할 수 있습니다. /// ### `yield from` { #yield-from } 파일 유사 객체처럼 어떤 것을 순회하면서 각 항목마다 `yield`를 하는 대신, `yield from`을 사용해 각 항목을 직접 전달하고 `for` 루프를 생략할 수 있습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:56:39 GMT 2026 - 6.2K bytes - Click Count (0) -
docs/en/docs/contributing.md
``` /// #### Typer CLI (optional) The instructions here show you how to use the script at `./scripts/docs.py` with the `python` program directly. But you can also use [Typer CLI](https://typer.tiangolo.com/typer-cli/), and you will get autocompletion in your terminal for the commands after installing completion. If you install Typer CLI, you can install completion with: <div class="termy"> ```console
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:59:26 GMT 2026 - 10.6K bytes - Click Count (0) -
docs/ja/docs/advanced/stream-data.md
{* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *} /// tip | 豆知識 async 関数内からブロッキングなコードを呼び出す必要がある場合、あるいはブロッキングな関数内から async 関数を呼び出す必要がある場合は、FastAPI の兄弟ライブラリである [Asyncer](https://asyncer.tiangolo.com) を利用できます。 /// ### `yield from` { #yield-from } ファイルライクオブジェクトのようなものをイテレートして各要素に対して `yield` している場合、`for` ループを省略して、`yield from` で各要素をそのまま送ることもできます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 6.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/cors.md
## オリジン { #origin } オリジンはプロトコル (`http`、`https`) とドメイン (`myapp.com`、`localhost`、`localhost.tiangolo.com`) とポート (`80`、`443`、`8080`) の組み合わせです。 したがって、以下はすべて異なるオリジンです: * `http://localhost` * `https://localhost` * `http://localhost:8080` すべて `localhost` であっても、異なるプロトコルやポートを使用するので、異なる「オリジン」です。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/uk/docs/tutorial/query-params-str-validations.md
Оскільки `Annotated` може містити кілька анотацій метаданих, тепер ви навіть можете використовувати ту саму функцію з іншими інструментами, такими як [Typer](https://typer.tiangolo.com/). 🚀 ## Додавання додаткових валідацій { #add-more-validations } Ви також можете додати параметр `min_length`: {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 25.9K bytes - Click Count (0) -
scripts/doc_parsing_utils.py
CODE_INCLUDE_PLACEHOLDER = "<CODE_INCLUDE>" HEADER_WITH_PERMALINK_RE = re.compile(r"^(#{1,6}) (.+?)(\s*\{\s*#.*\s*\})?\s*$") HEADER_LINE_RE = re.compile(r"^(#{1,6}) (.+?)(?:\s*\{\s*(#.*)\s*\})?\s*$") TIANGOLO_COM = "https://fastapi.tiangolo.com" ASSETS_URL_PREFIXES = ("/img/", "/css/", "/js/") MARKDOWN_LINK_RE = re.compile( r"(?<!\\)(?<!\!)" # not an image ![...] and not escaped \[...] r"\[(?P<text>.*?)\]" # link text (non-greedy) r"\("
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:37:41 GMT 2026 - 23.5K bytes - Click Count (0) -
docs/ru/docs/tutorial/query-params-str-validations.md
Так как `Annotated` может содержать больше одной аннотации метаданных, теперь вы можете использовать ту же функцию и с другими инструментами, например с [Typer](https://typer.tiangolo.com/). 🚀 ## Больше валидаций { #add-more-validations } Можно также добавить параметр `min_length`: {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 25.1K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/query-params-str-validations.md
若不使用 `Annotated`、改用「(舊式)預設值」寫法,你在沒有 FastAPI 的「其他地方」呼叫該函式時,就得「記得」傳入正確參數,否則值會和預期不同(例如會得到 `QueryInfo` 或類似的東西,而不是 `str`)。你的編輯器不會提示,Python 執行該函式時也不會抱怨,只有在內部操作失敗時才會出錯。 因為 `Annotated` 可以有多個中繼資料註解,你甚至可以用同一個函式配合其他工具,例如 [Typer](https://typer.tiangolo.com/)。🚀 ## 加入更多驗證 { #add-more-validations } 你也可以加入 `min_length` 參數: {* ../../docs_src/query_params_str_validations/tutorial003_an_py310.py hl[10] *} ## 加入正規表示式 { #add-regular-expressions }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.8K bytes - Click Count (0)