- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 183 for checkEq (0.15 sec)
-
docs_src/dependencies/tutorial011.py
def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/") async def read_query_check(fixed_content_included: bool = Depends(checker)):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 504 bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
```Python hl_lines="7" {!../../../docs_src/path_params/tutorial002.py!} ``` In this case, `item_id` is declared to be an `int`. !!! check This will give you editor support inside of your function, with error checks, completion, etc. ## Data <abbr title="also known as: serialization, parsing, marshalling">conversion</abbr>
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/alternatives.md
These features are what Marshmallow was built to provide. It is a great library, and I have used it a lot before. But it was created before there existed Python type hints. So, to define every <abbr title="the definition of how data should be formed">schema</abbr> you need to use specific utils and classes provided by Marshmallow. !!! check "Inspired **FastAPI** to"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K bytes - Viewed (0) -
docs/en/docs/contributing.md
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/zh/docs/advanced/advanced-dependencies.md
```Python hl_lines="16" {!../../../docs_src/dependencies/tutorial011.py!} ``` 这样就可以**参数化**依赖项,它包含 `checker.fixed_content` 的属性 - `"bar"`。 ## 把实例作为依赖项 然后,不要再在 `Depends(checker)` 中使用 `Depends(FixedContentQueryChecker)`, 而是要使用 `checker`,因为依赖项是类实例 - `checker`,不是类。 处理依赖项时,**FastAPI** 以如下方式调用 `checker`: ```Python checker(q="somequery") ``` ……并用*路径操作函数*的参数 `fixed_content_included` 返回依赖项的值: ```Python hl_lines="20"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jan 28 18:26:57 GMT 2024 - 2K bytes - Viewed (0) -
docs/em/docs/advanced/advanced-dependencies.md
{!../../../docs_src/dependencies/tutorial011.py!} ``` & 👈 🌌 👥 💪 "🔗" 👆 🔗, 👈 🔜 ✔️ `"bar"` 🔘 ⚫️, 🔢 `checker.fixed_content`. ## ⚙️ 👐 🔗 ⤴️, 👥 💪 ⚙️ 👉 `checker` `Depends(checker)`, ↩️ `Depends(FixedContentQueryChecker)`, ↩️ 🔗 👐, `checker`, 🚫 🎓 ⚫️. & 🕐❔ ❎ 🔗, **FastAPI** 🔜 🤙 👉 `checker` 💖: ```Python checker(q="somequery") ``` ...& 🚶♀️ ⚫️❔ 👈 📨 💲 🔗 👆 *➡ 🛠️ 🔢* 🔢 `fixed_content_included`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
This will help us inside of the function with all the completion and type checks. !!! tip You might remember that request bodies are also declared with Pydantic models. Here **FastAPI** won't get confused because you are using `Depends`. !!! check
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 7.6K bytes - Viewed (0) -
scripts/lint.sh
#!/usr/bin/env bash set -e set -x mypy fastapi ruff check fastapi tests docs_src scripts
Shell Script - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 00:03:14 GMT 2024 - 125 bytes - Viewed (0) -
docs/em/docs/alternatives.md
⚫️ ⚙️ 📚 🏢 ✅ 🦎, 🟥 👒 & 🎟. ⚫️ 🕐 🥇 🖼 **🏧 🛠️ 🧾**, & 👉 🎯 🕐 🥇 💭 👈 😮 "🔎" **FastAPI**. !!! note ✳ 🎂 🛠️ ✍ ✡ 🇺🇸🏛. 🎏 👼 💃 & Uvicorn, 🔛 ❔ **FastAPI** ⚓️. !!! check "😮 **FastAPI** " ✔️ 🏧 🛠️ 🧾 🕸 👩💻 🔢. ### <a href="https://flask.palletsprojects.com" class="external-link" target="_blank">🏺</a> 🏺 "🕸", ⚫️ 🚫 🔌 💽 🛠️ 🚫 📚 👜 👈 👟 🔢 ✳.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 18.7K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration. !!! tip If you have strict type checks in your editor, mypy, etc, you can declare the function return type as `Any`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0)