- Sort Score
- Num 10 results
- Language All
Results 541 - 550 of 1,216 for strs (0.02 seconds)
-
docs/uk/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool | None = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str | None = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 29.1K bytes - Click Count (0) -
docs_src/python_types/tutorial006_py310.py
def process_items(items: list[str]): for item in items:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 80 bytes - Click Count (0) -
fastapi/background.py
app = FastAPI() def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file: content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 1.8K bytes - Click Count (0) -
cmd/iam-object-store.go
svcAccListKey = "service-accounts/" groupsListKey = "groups/" policiesListKey = "policies/" stsListKey = "sts/" policyDBPrefix = "policydb/" policyDBUsersListKey = "policydb/users/" policyDBSTSUsersListKey = "policydb/sts-users/" policyDBGroupsListKey = "policydb/groups/" ) func findSecondIndex(s string, substr string) int { first := strings.Index(s, substr)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 26.6K bytes - Click Count (0) -
fastapi/security/base.py
from fastapi.openapi.models import SecurityBase as SecurityBaseModel class SecurityBase: model: SecurityBaseModelCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Dec 07 15:12:16 GMT 2018 - 141 bytes - Click Count (0) -
docs/fr/docs/features.md
```Python from datetime import date from pydantic import BaseModel # Déclarez une variable comme étant une str # et profitez de l'aide de l'éditeur dans cette fonction def main(user_id: str): return user_id # Un modèle Pydantic class User(BaseModel): id: int name: str joined: date ``` Qui peuvent ensuite être utilisés comme ceci : ```Python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 10.7K bytes - Click Count (0) -
docs_src/python_types/tutorial005_py310.py
def get_items(item_a: str, item_b: int, item_c: float, item_d: bool, item_e: bytes):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 135 bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java
@Override public List<Character> create(Character[] elements) { char[] chars = Chars.toArray(asList(elements)); StringBuilder str = new StringBuilder(); str.append(chars); return charactersOf(str); } } public static class UnhashableElementsImmutableListGenerator extends TestUnhashableCollectionGenerator<List<UnhashableObject>>Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 4.9K bytes - Click Count (0) -
docs_src/header_params/tutorial001_py310.py
from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items(user_agent: str | None = Header(default=None)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 182 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial011_py310.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: list[str] | None = Query(default=None)): query_items = {"q": q}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 189 bytes - Click Count (0)