- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 1,062 for python (0.04 seconds)
-
docs/zh/docs/tutorial/body-multiple-params.md
"importance": 5 } ``` 同样的,它将转换数据类型,校验,生成文档等。 ## 多个请求体参数和查询参数 { #multiple-body-params-and-query } 当然,除了请求体参数外,你还可以在任何需要的时候声明额外的查询参数。 由于默认情况下单一值会被解释为查询参数,因此你不必显式地添加 `Query`,你可以这样写: ```Python q: str | None = None ``` 比如: {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *} /// info | 信息 `Body` 同样具有与 `Query`、`Path` 以及其他后面将看到的类完全相同的额外校验和元数据参数。 ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJobTest.java
assertEquals("groovy", job.getScriptType()); } @Test public void test_getScriptType_custom() { final ScheduledJob job = new ScheduledJob(); job.setScriptType("python"); assertEquals("python", job.getScriptType()); } @Test public void test_idGetterSetter() { final ScheduledJob job = new ScheduledJob(); job.setId("test-id-123");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 11:55:54 GMT 2026 - 15.8K bytes - Click Count (0) -
docs/en/docs/advanced/openapi-callbacks.md
The actual callback code will depend heavily on your own API app. And it will probably vary a lot from one app to the next. It could be just one or two lines of code, like: ```Python callback_url = "https://example.com/api/v1/invoices/events/" httpx.post(callback_url, json={"description": "Invoice paid", "paid": True}) ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/body-nested-models.md
### 타입 매개변수로 `list` 선언 { #declare-a-list-with-a-type-parameter } `list`, `dict`, `tuple`처럼 타입 매개변수(내부 타입)를 갖는 타입을 선언하려면, 대괄호 `[` 및 `]`를 사용해 내부 타입(들)을 "타입 매개변수"로 전달하세요. ```Python my_list: list[str] ``` 이 모든 것은 타입 선언을 위한 표준 파이썬 문법입니다. 내부 타입을 갖는 모델 어트리뷰트에 대해 동일한 표준 문법을 사용하세요. 마찬가지로 예제에서 `tags`를 구체적으로 "문자열의 리스트"로 만들 수 있습니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 7.7K bytes - Click Count (0) -
docs/ko/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:06:26 GMT 2026 - 3.2K bytes - Click Count (0) -
docs/zh/docs/fastapi-cli.md
[tool.fastapi] entrypoint = "main:app" ``` 这个 `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 ``` ### 带路径的 `fastapi dev` { #fastapi-dev-with-path }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 5.8K bytes - Click Count (0) -
ci/official/wheel.sh
tfrun nvidia-smi fi # Update the version numbers for Nightly only if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then python_bin=python3 # TODO(belitskiy): Add a `python3` alias/symlink to Windows Docker image. if [[ $(uname -s) = MSYS_NT* ]]; then python_bin="python" fi tfrun "$python_bin" tensorflow/tools/ci_build/update_version.py --nightly # replace tensorflow to tf_nightly in the wheel name
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Mar 03 17:29:53 GMT 2025 - 3.8K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/openapi-callbacks.md
/// 唯一新的地方是在「路徑操作裝飾器」中加入參數 `callbacks=invoices_callback_router.routes`。我們接下來會看到那是什麼。 ## 文件化回呼 { #documenting-the-callback } 實際的回呼程式碼會高度依賴你的 API 應用本身。 而且很可能每個應用都差很多。 它可能就只有一兩行,例如: ```Python callback_url = "https://example.com/api/v1/invoices/events/" httpx.post(callback_url, json={"description": "Invoice paid", "paid": True}) ``` 但回呼中最重要的部分,可能是在確保你的 API 使用者(外部開發者)能正確實作「外部 API」,符合「你的 API」在回呼請求 body 中要送出的資料格式,等等。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 7.5K bytes - Click Count (0) -
docs/en/docs/how-to/general.md
To optimize performance when returning JSON data, use a return type or response model, that way Pydantic will handle the serialization to JSON on the Rust side, without going through Python. Read more in the docs for [Tutorial - Response Model - Return Type](../tutorial/response-model.md). ## Documentation Tags - OpenAPI { #documentation-tags-openapi }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.8K bytes - Click Count (0) -
docs/en/docs/advanced/async-tests.md
The `TestClient` is based on [HTTPX](https://www.python-httpx.org), and luckily, we can use it directly to test the API. ## Example { #example }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.8K bytes - Click Count (0)