- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 1,080 for Str (0.01 sec)
-
docs_src/query_params_str_validations/tutorial006c_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 274 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial011_an.py
from typing import List, Union from fastapi import FastAPI, Query from typing_extensions import Annotated app = FastAPI() @app.get("/items/") async def read_items(q: Annotated[Union[List[str], None], Query()] = None): query_items = {"q": q}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 272 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006b_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 300 bytes - Viewed (0) -
src/bytes/example_test.go
fmt.Printf("%s\n", bytes.ToTitle([]byte("брат"))) // Output: // LOUD NOISES // БРАТ } func ExampleToTitleSpecial() { str := []byte("ahoj vývojári golang") totitle := bytes.ToTitleSpecial(unicode.AzeriCase, str) fmt.Println("Original : " + string(str)) fmt.Println("ToTitle : " + string(totitle)) // Output: // Original : ahoj vývojári golang // ToTitle : AHOJ VÝVOJÁRİ GOLANG }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 07 17:22:36 UTC 2024 - 14.9K bytes - Viewed (0) -
tests/test_security_api_key_header.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyHeader(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.8K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial005_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 309 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial007_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 304 bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
В Python версии 3.9 это будет выглядеть так: ```Python my_list: list[str] ``` В версиях Python до 3.9 это будет выглядеть так: ```Python from typing import List my_list: List[str] ``` Это всё стандартный синтаксис Python для объявления типов. Используйте этот же стандартный синтаксис для атрибутов модели с внутренними типами.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.8K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
* 데이터 변환 * 데이터 검증 * 자동 문서화 ## 특별한 타입과 검증 `str`, `int`, `float` 등과 같은 단일 타입과는 별개로, `str`을 상속하는 더 복잡한 단일 타입을 사용할 수 있습니다. 모든 옵션을 보려면, <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic's exotic types</a> 문서를 확인하세요. 다음 장에서 몇가지 예제를 볼 수 있습니다. 예를 들어 `Image` 모델 안에 `url` 필드를 `str` 대신 Pydantic의 `HttpUrl`로 선언할 수 있습니다: ```Python hl_lines="4 10"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
* Pass the internal type(s) as "type parameters" using square brackets: `[` and `]` In Python 3.9 it would be: ```Python my_list: list[str] ``` In versions of Python before 3.9, it would be: ```Python from typing import List my_list: List[str] ``` That's all standard Python syntax for type declarations. Use that same standard syntax for model attributes with internal types.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.4K bytes - Viewed (0)