- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 100 for init (0.12 sec)
-
docs/fr/docs/deployment/docker.md
```Python from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Optional[str] = None): return {"item_id": item_id, "q": q} ``` * Vous devriez maintenant avoir une structure de répertoire telle que : ``` . ├── app │ └── main.py └── Dockerfile ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 7.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/body.md
=== "Python 3.8+" ```Python hl_lines="18" {!> ../../../docs_src/body/tutorial004.py!} ``` 함수 매개변수는 다음을 따라서 인지하게 됩니다: * 만약 매개변수가 **경로**에도 선언되어 있다면, 이는 경로 매개변수로 사용될 것입니다. * 만약 매개변수가 (`int`, `float`, `str`, `bool` 등과 같은) **유일한 타입**으로 되어있으면, **쿼리** 매개변수로 해석될 것입니다. * 만약 매개변수가 **Pydantic 모델** 타입으로 선언되어 있으면, 요청 **본문**으로 해석될 것입니다. !!! note "참고" FastAPI는 `q`의 값이 필요없음을 알게 될 것입니다. 기본 값이 `= None`이기 때문입니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/em/docs/tutorial/first-steps.md
### 🔁 5️⃣: 📨 🎚 ```Python hl_lines="8" {!../../../docs_src/first_steps/tutorial001.py!} ``` 👆 💪 📨 `dict`, `list`, ⭐ 💲 `str`, `int`, ♒️. 👆 💪 📨 Pydantic 🏷 (👆 🔜 👀 🌅 🔃 👈 ⏪). 📤 📚 🎏 🎚 & 🏷 👈 🔜 🔁 🗜 🎻 (🔌 🐜, ♒️). 🔄 ⚙️ 👆 💕 🕐, ⚫️ 🏆 🎲 👈 👫 ⏪ 🐕🦺. ## 🌃 * 🗄 `FastAPI`. * ✍ `app` 👐.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md
{!> ../../../docs_src/dependencies/tutorial001.py!} ``` 这些参数就是 **FastAPI** 用来 "处理" 依赖项的。 在两个例子下,都有: * 一个可选的 `q` 查询参数,是 `str` 类型。 * 一个 `skip` 查询参数,是 `int` 类型,默认值为 `0`。 * 一个 `limit` 查询参数,是 `int` 类型,默认值为 `100`。 在两个例子下,数据都将被转换、验证、在 OpenAPI schema 上文档化,等等。 ## 使用它 现在,您可以使用这个类来声明你的依赖项了。 === "Python 3.10+" ```Python hl_lines="17"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 6.5K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/classes-as-dependencies.md
{!> ../../../docs_src/dependencies/tutorial001_py310.py!} ``` 📚 🔢 ⚫️❔ **FastAPI** 🔜 ⚙️ "❎" 🔗. 👯♂️ 💼, ⚫️ 🔜 ✔️: * 📦 `q` 🔢 🔢 👈 `str`. * `skip` 🔢 🔢 👈 `int`, ⏮️ 🔢 `0`. * `limit` 🔢 🔢 👈 `int`, ⏮️ 🔢 `100`. 👯♂️ 💼 💽 🔜 🗜, ✔, 📄 🔛 🗄 🔗, ♒️. ## ⚙️ ⚫️ 🔜 👆 💪 📣 👆 🔗 ⚙️ 👉 🎓. === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="19"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 6K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-files.md
`UploadFile` 支持以下 `async` 方法,(使用内部 `SpooledTemporaryFile`)可调用相应的文件方法。 * `write(data)`:把 `data` (`str` 或 `bytes`)写入文件; * `read(size)`:按指定数量的字节或字符(`size` (`int`))读取文件内容; * `seek(offset)`:移动至文件 `offset` (`int`)字节处的位置; * 例如,`await myfile.seek(0) ` 移动到文件开头; * 执行 `await myfile.read()` 后,需再次读取已读取内容时,这种方法特别好用; * `close()`:关闭文件。 因为上述方法都是 `async` 方法,要搭配「await」使用。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.9K bytes - Viewed (0) -
docs/en/docs/how-to/nosql-databases-couchbase.md
```Python hl_lines="36-42" {!../../../docs_src/nosql_databases/tutorial001.py!} ``` ### f-strings
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 6K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-data-types.md
# 追加データ型 今までは、以下のような一般的なデータ型を使用してきました: * `int` * `float` * `str` * `bool` しかし、より複雑なデータ型を使用することもできます。 そして、今まで見てきたのと同じ機能を持つことになります: * 素晴らしいエディタのサポート * 受信したリクエストからのデータ変換 * レスポンスデータのデータ変換 * データの検証 * 自動注釈と文書化 ## 他のデータ型 ここでは、使用できる追加のデータ型のいくつかを紹介します: * `UUID`: * 多くのデータベースやシステムで共通のIDとして使用される、標準的な「ユニバーサルにユニークな識別子」です。 * リクエストとレスポンスでは`str`として表現されます。 * `datetime.datetime`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 3.2K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/index.md
「デコレータ」を含まない(`@app.get("/some-path")`を含まない)*path operation関数*と考えることもできます。 そして何でも返すことができます。 この場合、この依存関係は以下を期待しています: * オプショナルのクエリパラメータ`q`は`str`です。 * オプショナルのクエリパラメータ`skip`は`int`で、デフォルトは`0`です。 * オプショナルのクエリパラメータ`limit`は`int`で、デフォルトは`100`です。 そして、これらの値を含む`dict`を返します。 ### `Depends`のインポート ```Python hl_lines="3" {!../../../docs_src/dependencies/tutorial001.py!} ``` ### "dependant"での依存関係の宣言
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 15 16:08:16 GMT 2024 - 9.7K bytes - Viewed (0)