- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 41 for Timmons (0.17 sec)
-
docs_src/dependencies/tutorial001_an.py
): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: Annotated[dict, Depends(common_parameters)]): return commons @app.get("/users/") async def read_users(commons: Annotated[dict, Depends(common_parameters)]):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 502 bytes - Viewed (0) -
docs_src/dependency_testing/tutorial001_an_py39.py
@app.get("/items/") async def read_items(commons: Annotated[dict, Depends(common_parameters)]): return {"message": "Hello Items!", "params": commons} @app.get("/users/") async def read_users(commons: Annotated[dict, Depends(common_parameters)]): return {"message": "Hello Users!", "params": commons} client = TestClient(app)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 1.5K bytes - Viewed (0) -
docs_src/dependencies/tutorial003_py310.py
self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons=Depends(CommonQueryParams)): response = {} if commons.q: response.update({"q": commons.q}) items = fake_items_db[commons.skip : commons.skip + commons.limit] response.update({"items": items})
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 603 bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/classes-as-dependencies.md
{!> ../../../docs_src/dependencies/tutorial002_py310.py!} ``` **FastAPI** 🤙 `CommonQueryParams` 🎓. 👉 ✍ "👐" 👈 🎓 & 👐 🔜 🚶♀️ 🔢 `commons` 👆 🔢. ## 🆎 ✍ 🆚 `Depends` 👀 ❔ 👥 ✍ `CommonQueryParams` 🕐 🔛 📟: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 🏁 `CommonQueryParams`,: ```Python ... = Depends(CommonQueryParams) ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Apr 01 09:26:04 UTC 2023 - 6K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md
```Python hl_lines="19" {!> ../../../docs_src/dependencies/tutorial002.py!} ``` **FastAPI** 调用 `CommonQueryParams` 类。这将创建该类的一个 "实例",该实例将作为参数 `commons` 被传递给你的函数。 ## 类型注解 vs `Depends` 注意,我们在上面的代码中编写了两次`CommonQueryParams`: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 最后的 `CommonQueryParams`: ```Python ... = Depends(CommonQueryParams) ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 6.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
{!> ../../../docs_src/dependencies/tutorial002_py310.py!} ``` **FastAPI**는 `CommonQueryParams` 클래스를 호출합니다. 이것은 해당 클래스의 "인스턴스"를 생성하고 그 인스턴스는 함수의 매개변수 `commons`로 전달됩니다. ## 타입 힌팅 vs `Depends` 위 코드에서 `CommonQueryParams`를 두 번 작성한 방식에 주목하십시오: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 마지막 `CommonQueryParams` 변수를 보면: ```Python ... = Depends(CommonQueryParams) ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Feb 11 13:48:31 UTC 2024 - 8K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md
```Python hl_lines="19" {!../../../docs_src/dependencies/tutorial002.py!} ``` **FastAPI** は`CommonQueryParams`クラスを呼び出します。これにより、そのクラスの「インスタンス」が作成され、インスタンスはパラメータ`commons`として関数に渡されます。 ## 型注釈と`Depends` 上のコードでは`CommonQueryParams`を2回書いていることに注目してください: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 以下にある最後の`CommonQueryParams`: ```Python ... = Depends(CommonQueryParams) ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Jan 15 16:08:16 UTC 2024 - 7.2K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/index.md
When you need to use the `common_parameters()` dependency, you have to write the whole parameter with the type annotation and `Depends()`: ```Python commons: Annotated[dict, Depends(common_parameters)] ``` But because we are using `Annotated`, we can store that `Annotated` value in a variable and use it in multiple places: === "Python 3.10+"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/index.md
Wenn Sie die Abhängigkeit `common_parameters()` verwenden, müssen Sie den gesamten Parameter mit der Typannotation und `Depends()` schreiben: ```Python commons: Annotated[dict, Depends(common_parameters)] ``` Da wir jedoch `Annotated` verwenden, können wir diesen `Annotated`-Wert in einer Variablen speichern und an mehreren Stellen verwenden: === "Python 3.10+"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:01:10 UTC 2024 - 13.1K bytes - Viewed (0) -
fastapi/param_functions.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 62.5K bytes - Viewed (0)