- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for url_lines (0.2 sec)
-
docs/en/docs/tutorial/bigger-applications.md
```Python hl_lines="1 3" title="app/routers/users.py" {!../../docs_src/bigger_applications/app/routers/users.py!} ``` ### *Path operations* with `APIRouter` { #path-operations-with-apirouter } And then you use it to declare your *path operations*. Use it the same way you would use the `FastAPI` class: ```Python hl_lines="6 11 16" title="app/routers/users.py"
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 19.1K bytes - Viewed (0) -
docs/en/docs/python-types.md
//// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009.py!} ``` //// //// tab | Python 3.8+ alternative ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009b.py!} ``` ////
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 17.1K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
//// tab | Python 3.8+ ```Python hl_lines="1" async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]): return {"fresh_value": fresh_value} ``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="1"
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.7K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
You can also use `url_for()` inside of the template, and use it, for example, with the `StaticFiles` you mounted with the `name="static"`. ```jinja hl_lines="4" {!../../docs_src/templates/templates/item.html!} ``` In this example, it would link to a CSS file at `static/styles.css` with: ```CSS hl_lines="4" {!../../docs_src/templates/static/styles.css!} ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.5K bytes - Viewed (0) -
docs/ru/docs/async.md
которая поддерживает асинхронность. Для этого вам просто нужно объявить её как `async def`: ```Python hl_lines="1" async def get_burgers(number: int): # Готовим бургеры по специальному асинхронному рецепту return burgers ``` ...вместо `def`: ```Python hl_lines="2" # Это не асинхронный код def get_sequential_burgers(number: int): # Готовим бургеры последовательно по шагам
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 39.8K bytes - Viewed (0) -
docs/pt/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Faz alguma coisa assíncrona para criar os hambúrgueres return burgers ``` ...ao invés de `def`: ```Python hl_lines="2" # Isso não é assíncrono def get_sequential_burgers(number: int):
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 23.6K bytes - Viewed (0) -
docs/tr/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # burgerleri oluşturmak için asenkron birkaç iş return burgers ``` ...`def` yerine: ```Python hl_lines="2" # bu kod asenkron değil def get_sequential_burgers(number: int): # burgerleri oluşturmak için senkron bırkaç iş
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 21.8K bytes - Viewed (0) -
docs/fr/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Opérations asynchrones pour créer les burgers return burgers ``` ...et non `def` : ```Python hl_lines="2" # Ceci n'est pas asynchrone def get_sequential_burgers(number: int): # Opérations asynchrones pour créer les burgers
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:56:21 UTC 2025 - 25.4K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
/// #### Data with values for fields with defaults { #data-with-values-for-fields-with-defaults } But if your data has values for the model's fields with default values, like the item with ID `bar`: ```Python hl_lines="3 5" { "name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2 } ``` they will be included in the response.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 16K bytes - Viewed (0) -
docs/uk/docs/index.md
``` <details markdown="1"> <summary>Або використайте <code>async def</code>...</summary> Якщо ваш код використовує `async` / `await`, скористайтеся `async def`: ```Python hl_lines="9 14" from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 24.2K bytes - Viewed (0)