Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for argument (0.14 sec)

  1. docs/en/docs/advanced/middleware.md

    from unicorn import UnicornMiddleware
    
    app = FastAPI()
    
    app.add_middleware(UnicornMiddleware, some_config="rainbow")
    ```
    
    `app.add_middleware()` receives a middleware class as the first argument and any additional arguments to be passed to the middleware.
    
    ## Integrated middlewares
    
    **FastAPI** includes several middlewares for common use cases, we'll see next how to use them.
    
    !!! note "Technical Details"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/query-params-str-validations.md

    Mais si vous décidez d'apprendre à les utiliser, sachez qu'ensuite vous pouvez les utiliser directement dans **FastAPI**.
    
    ## Valeurs par défaut
    
    De la même façon que vous pouvez passer `None` comme premier argument pour l'utiliser comme valeur par défaut, vous pouvez passer d'autres valeurs.
    
    Disons que vous déclarez le paramètre `q` comme ayant une longueur minimale de `3`, et une valeur par défaut étant `"fixedquery"` :
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    Так, если у вас есть объект `something` (который может _не_ быть функцией) и вы можете "вызвать" его (выполнить) как:
    
    ```Python
    something()
    ```
    
    или
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    в таком случае он является "вызываемым".
    
    ## Классы как зависимости
    
    Вы можете заметить, что для создания экземпляра класса в Python используется тот же синтаксис.
    
    Например:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 12 11:12:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/path-params-numeric-validations.md

    Übergeben Sie der Funktion `*` als ersten Parameter.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:59:29 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. docs/en/docs/contributing.md

    Now run the live server for the docs in Spanish:
    
    <div class="termy">
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    $ python ./scripts/docs.py live es
    
    <span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008
    <span style="color: green;">[INFO]</span> Start watching changes
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. docs/em/docs/contributing.md

    !!! tip
        👑 ("🛂") 🇪🇸 🇪🇸, 🔎 `docs/en/`.
    
    🔜 🏃 🖖 💽 🩺 🇪🇸:
    
    <div class="termy">
    
    ```console
    // Use the command "live" and pass the language code as a CLI argument
    $ python ./scripts/docs.py live es
    
    <span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008
    <span style="color: green;">[INFO]</span> Start watching changes
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/nosql-databases.md

    🙆 🔢 👈 🚮 🔘 `{}` Ⓜ-🎻 🔜 ↔ / 💉 🎻.
    
    ### `dict` 🏗
    
    🚥 👆 🚫 😰 ⏮️ `UserInDB(**result.value)`, <a href="https://docs.python.org/3/glossary.html#term-argument" class="external-link" target="_blank">⚫️ ⚙️ `dict` "🏗"</a>.
    
    ⚫️ 🔜 ✊ `dict` `result.value`, &amp; ✊ 🔠 🚮 🔑 &amp; 💲 &amp; 🚶‍♀️ 👫 🔑-💲 `UserInDB` 🇨🇻 ❌.
    
    , 🚥 `dict` 🔌:
    
    ```Python
    {
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/openapi-callbacks.md

    Das einzig Neue ist `callbacks=invoices_callback_router.routes` als Argument für den *Pfadoperation-Dekorator*. Wir werden als Nächstes sehen, was das ist.
    
    ## Dokumentation des Callbacks
    
    Der tatsächliche Callback-Code hängt stark von Ihrer eigenen API-Anwendung ab.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params.md

    ```Python hl_lines="6-7"
    {!../../../docs_src/path_params/tutorial001.py!}
    ```
    
    The value of the path parameter `item_id` will be passed to your function as the argument `item_id`.
    
    So, if you run this example and go to <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, you will see a response of:
    
    ```JSON
    {"item_id":"foo"}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    파이썬에서의 "**호출 가능**"은 파이썬이 함수처럼 "호출"할 수 있는 모든 것입니다.
    
    따라서, 만약 당신이 `something`(함수가 아닐 수도 있음) 객체를 가지고 있고,
    
    ```Python
    something()
    ```
    
    또는
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    상기와 같은 방식으로 "호출(실행)" 할 수 있다면 "호출 가능"이 됩니다.
    
    ## 의존성으로서의 클래스
    
    파이썬 클래스의 인스턴스를 생성하기 위해 사용하는 것과 동일한 문법을 사용한다는 걸 알 수 있습니다.
    
    예를 들어:
    
    ```Python
    class Cat:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top