- Sort Score
- Result 10 results
- Languages All
Results 891 - 900 of 1,094 for Fstr (0.02 sec)
-
docs/en/docs/tutorial/query-params.md
```Python hl_lines="6-7" {!../../docs_src/query_params/tutorial005.py!} ``` Here the query parameter `needy` is a required query parameter of type `str`. If you open in your browser a URL like: ``` http://127.0.0.1:8000/items/foo-item ``` ...without adding the required parameter `needy`, you will see an error like: ```JSON {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/nl/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 21.2K bytes - Viewed (0) -
docs_src/security/tutorial007_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params-numeric-validations.md
/// tip Ce n'est probablement pas aussi important ou nécessaire si vous utilisez `Annotated`. /// Disons que vous voulez déclarer le paramètre de requête `q` comme un `str` requis. Et vous n'avez pas besoin de déclarer autre chose pour ce paramètre, donc vous n'avez pas vraiment besoin d'utiliser `Query`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:32:37 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/em/docs/advanced/settings.md
, 🔢 🔛 ⚫️ 🔜 🛠️ 🕐 🔠 🌀 ❌. & ⤴️ 💲 📨 🔠 👈 🌀 ❌ 🔜 ⚙️ 🔄 & 🔄 🕐❔ 🔢 🤙 ⏮️ ⚫️❔ 🎏 🌀 ❌. 🖼, 🚥 👆 ✔️ 🔢: ```Python @lru_cache def say_hi(name: str, salutation: str = "Ms."): return f"Hello {salutation} {name}" ``` 👆 📋 💪 🛠️ 💖 👉: ```mermaid sequenceDiagram participant code as Code participant function as say_hi()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
The main `Response` class, all the other responses inherit from it. You can return it directly. It accepts the following parameters: * `content` - A `str` or `bytes`. * `status_code` - An `int` HTTP status code. * `headers` - A `dict` of strings. * `media_type` - A `str` giving the media type. E.g. `"text/html"`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/crud.py
from . import models, schemas def get_user(user_id: int): return models.User.filter(models.User.id == user_id).first() def get_user_by_email(email: str): return models.User.filter(models.User.email == email).first() def get_users(skip: int = 0, limit: int = 100): return list(models.User.select().offset(skip).limit(limit)) def create_user(user: schemas.UserCreate):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 843 bytes - Viewed (0) -
src/main/java/jcifs/smb/SIDCacheImpl.java
case jcifs.SID.SID_TYPE_DOMAIN: case jcifs.SID.SID_TYPE_ALIAS: case jcifs.SID.SID_TYPE_WKN_GRP: rpc.unicode_string ustr = rpc.domains.domains[ resp.sid_index ].name; out.domainName = ( new UnicodeString(ustr, false) ).toString(); break; } UnicodeString ucstr = new UnicodeString(resp.name, false);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 12.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
if len(f) > 0 && strings.Contains(printed, "(PC)") { index := len(f) - 1 suf := "(PC)" for !strings.HasSuffix(f[index], suf) { index-- suf = "(PC)," } str := f[index] n, err := strconv.Atoi(str[:len(str)-len(suf)]) if err == nil { f[index] = fmt.Sprintf("%d%s", seq+n, suf) } } if len(f) == 1 { printed = f[0] } else {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.1K bytes - Viewed (0)