- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 1,062 for python (0.06 seconds)
-
docs/ja/docs/how-to/configure-swagger-ui.md
FastAPI には、次の JavaScript 専用の `presets` 設定も含まれています: ```JavaScript presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ] ``` これらは文字列ではなく **JavaScript** のオブジェクトであるため、Python のコードから直接渡すことはできません。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 3.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/first-steps.md
``` 해당 `entrypoint`는 `fastapi` 명령어에 다음과 같이 앱을 임포트하라고 알려줍니다: ```python from main import app ``` 코드 구조가 다음과 같다면: ``` . ├── backend │ ├── main.py │ ├── __init__.py ``` 그럼 `entrypoint`를 다음과 같이 설정합니다: ```toml [tool.fastapi] entrypoint = "backend.main:app" ``` 이는 다음과 동일합니다: ```python from backend.main import app ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 15K bytes - Click Count (0) -
fastapi/_compat/v2.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
docs/en/docs/tutorial/index.md
It is also built to work as a future reference so you can come back and see exactly what you need. ## Run the code { #run-the-code } All the code blocks can be copied and used directly (they are actually tested Python files). To run any of the examples, copy the code to a file `main.py`, and start `fastapi dev`: <div class="termy"> ```console $ <font color="#4E9A06">fastapi</font> devCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 5.3K bytes - Click Count (0) -
docs/ja/docs/tutorial/response-status-code.md
`status_code`は「デコレータ」メソッド(`get`、`post`など)のパラメータであることに注意してください。すべてのパラメータやボディのように、*path operation function*のものではありません。 /// `status_code`パラメータはHTTPステータスコードを含む数値を受け取ります。 /// info | 情報 `status_code`は代わりに、Pythonの[`http.HTTPStatus`](https://docs.python.org/3/library/http.html#http.HTTPStatus)のように、`IntEnum`を受け取ることもできます。 /// これは: * レスポンスでステータスコードを返します。 * OpenAPIスキーマ(およびユーザーインターフェース)に以下のように文書化します:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/en/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial001_an_py310.py hl[19:27] *} /// note | Technical Details A `Request` has a `request.scope` attribute, that's just a Python `dict` containing the metadata related to the request. A `Request` also has a `request.receive`, that's a function to "receive" the body of the request.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/ja/docs/advanced/async-tests.md
`TestClient` は、標準の pytest を使って通常の `def` のテスト関数から非同期の FastAPI アプリを呼び出すための「おまじない」を内部で行います。しかし、その「おまじない」はテスト関数自体が非同期の場合には機能しません。テストを非同期で実行すると、テスト関数内で `TestClient` は使えなくなります。 `TestClient` は [HTTPX](https://www.python-httpx.org) を基に作られており、幸いなことに API のテストには HTTPX を直接利用できます。 ## 例 { #example } 簡単な例として、[大きなアプリケーション](../tutorial/bigger-applications.md) と [テスト](../tutorial/testing.md) で説明したものに似たファイル構成を考えます: ``` . ├── appCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/en/docs/_llm-test.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial001_py310.py hl[28:33] *} `PUT` 用于接收替换现有数据的数据。 ### 关于替换的警告 { #warning-about-replacing } 用 `PUT` 把数据项 `bar` 更新为以下请求体时: ```Python { "name": "Barz", "price": 3, "description": None, } ``` 因为其中未包含已存储的属性 `"tax": 20.2`,输入模型会取 `"tax": 10.5` 的默认值。 因此,保存的数据会带有这个“新的” `tax` 值 `10.5`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
## 컨텍스트 관리자 { #context-managers } ### "컨텍스트 관리자"란 { #what-are-context-managers } "컨텍스트 관리자"는 Python에서 `with` 문에서 사용할 수 있는 모든 객체를 의미합니다. 예를 들어, [with를 사용해 파일을 읽을 수 있습니다](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files): ```Python with open("./somefile.txt") as f: contents = f.read() print(contents) ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 14.3K bytes - Click Count (0)