Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 681 - 690 of 853 for sltr (0.16 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/es/docs/advanced/settings.md

    Por ejemplo, si tienes una función:
    
    ```Python
    @lru_cache
    def say_hi(name: str, salutation: str = "Ms."):
        return f"Hello {salutation} {name}"
    ```
    
    tu programa podría ejecutarse así:
    
    ```mermaid
    sequenceDiagram
    
    participant code as Código
    participant function as say_hi()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  2. docs/fr/docs/advanced/custom-response.md

    Vous pouvez la renvoyer directement.
    
    Elle accepte les paramètres suivants :
    
    - `content` - Une `str` ou des `bytes`.
    - `status_code` - Un code d'état HTTP de type `int`.
    - `headers` - Un `dict` de chaînes.
    - `media_type` - Une `str` donnant le media type. Par exemple « text/html ».
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  3. tests/test_dependency_duplicates.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    app = FastAPI()
    
    client = TestClient(app)
    
    
    class Item(BaseModel):
        data: str
    
    
    def duplicate_dependency(item: Item):
        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/body.md

    * If the parameter is of a **singular type** (like `int`, `float`, `str`, `bool`, etc) it will be interpreted as a **query** parameter.
    * If the parameter is declared to be of the type of a **Pydantic model**, it will be interpreted as a request **body**.
    
    /// note
    
    FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/dependencies/classes-as-dependencies.md

    Vous remarquerez que pour créer une instance d'une classe Python, vous utilisez la même syntaxe.
    
    Par exemple :
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    Dans ce cas, `fluffy` est une instance de la classe `Cat`.
    
    Et pour créer `fluffy`, vous « appelez » `Cat`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/path-params-numeric-validations.md

    /// tip | Подсказка
    
    Это не имеет большого значения, если вы используете `Annotated`.
    
    ///
    
    Допустим, вы хотите объявить query-параметр `q` как обязательный параметр типа `str`.
    
    И если вам больше ничего не нужно указывать для этого параметра, то нет необходимости использовать `Query`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/body.md

    * Si le paramètre est déclaré comme ayant pour type un **modèle Pydantic**, il sera interprété comme faisant partie du **corps** de la requête.
    
    /// note | Remarque
    
    **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  8. tests/test_sse.py

    from fastapi.responses import EventSourceResponse
    from fastapi.sse import ServerSentEvent
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    items = [
        Item(name="Plumbus", description="A multi-purpose household device."),
        Item(name="Portal Gun", description="A portal opening device."),
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/path-operation-configuration.md

    /// note | 技術詳細
    
    `from starlette import status`を使用することもできます。
    
    **FastAPI** は開発者の利便性を考慮して、`fastapi.status`と同じ`starlette.status`を提供しています。しかし、これはStarletteから直接提供されています。
    
    ///
    
    ## タグ { #tags }
    
    `tags`パラメータを`str`の`list`(通常は1つの`str`)と一緒に渡すと、*path operation*にタグを追加できます:
    
    {* ../../docs_src/path_operation_configuration/tutorial002_py310.py hl[15,20,25] *}
    
    これらはOpenAPIスキーマに追加され、自動ドキュメントのインターフェースで使用されます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  10. tests/test_regex_deprecated_body.py

    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
                q: Annotated[str | None, Form(regex="^fixedquery$")] = None,
            ):
                if q:
                    return f"Hello {q}"
                else:
                    return "Hello World"
    
        client = TestClient(app)
        return client
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top