Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 242 for NOTE (0.13 sec)

  1. docs/en/docs/tutorial/static-files.md

    ## Use `StaticFiles`
    
    * Import `StaticFiles`.
    * "Mount" a `StaticFiles()` instance in a specific path.
    
    ```Python hl_lines="2  6"
    {!../../../docs_src/static_files/tutorial001.py!}
    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.staticfiles import StaticFiles`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 19:56:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/path-params-numeric-validations.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
        ```
    
    !!! note
        ➡ 🔢 🕧 ✔ ⚫️ ✔️ 🍕 ➡.
    
        , 👆 🔜 📣 ⚫️ ⏮️ `...` ™ ⚫️ ✔.
    
        👐, 🚥 👆 📣 ⚫️ ⏮️ `None` ⚖️ ⚒ 🔢 💲, ⚫️ 🔜 🚫 📉 🕳, ⚫️ 🔜 🕧 🚚.
    
    ## ✔ 🔢 👆 💪
    
    ➡️ 💬 👈 👆 💚 📣 🔢 🔢 `q` ✔ `str`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/testing.md

        Notice that the testing functions are normal `def`, not `async def`.
    
        And the calls to the client are also normal calls, not using `await`.
    
        This allows you to use `pytest` directly without complications.
    
    !!! note "Technical Details"
        You could also use `from starlette.testclient import TestClient`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/async-sql-encode-databases.md

    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    ### About `{**note.dict(), "id": last_record_id}`
    
    `note` is a Pydantic `Note` object.
    
    `note.dict()` returns a `dict` with its data, something like:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...який також включає `uvicorn`, який ви можете використовувати як сервер, який запускає ваш код.
    
    !!! note
        Ви також можете встановити його частина за частиною.
    
        Це те, що ви, ймовірно, зробили б, коли захочете розгорнути свою програму у виробничому середовищі:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:29:36 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note
        📋 `uvicorn main:app` 🔗:
    
        * `main`: 📁 `main.py` (🐍 "🕹").
        * `app`: 🎚 ✍ 🔘 `main.py` ⏮️ ⏸ `app = FastAPI()`.
        * `--reload`: ⚒ 💽 ⏏ ⏮️ 📟 🔀. 🕴 ⚙️ 🛠️.
    
    🔢, 📤 ⏸ ⏮️ 🕳 💖:
    
    ```hl_lines="4"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  7. docs/fr/docs/advanced/additional-responses.md

    Par exemple, pour déclarer une autre réponse avec un code HTTP `404` et un modèle Pydantic `Message`, vous pouvez écrire :
    
    ```Python hl_lines="18 22"
    {!../../../docs_src/additional_responses/tutorial001.py!}
    ```
    
    !!! note "Remarque"
        Gardez à l'esprit que vous devez renvoyer directement `JSONResponse`.
    
    !!! info
        La clé `model` ne fait pas partie d'OpenAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...isso também inclui o `uvicorn`, que você pode usar como o servidor que rodará seu código.
    
    !!! note "Nota"
        Você também pode instalar parte por parte.
    
        Isso é provavelmente o que você faria quando você quisesse lançar sua aplicação em produção:
    
        ```
        pip install fastapi
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. docs/zh/docs/advanced/using-request-directly.md

        同样,您也可以正常声明其它参数,而且还可以提取 `Request`。
    
    ## `Request` 文档
    
    更多细节详见 <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">Starlette 官档 - `Request` 对象</a>。
    
    !!! note "技术细节"
    
        您也可以使用 `from starlette.requests import Request`。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:44:02 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/response-directly.md

    Para esos casos, puedes usar el `jsonable_encoder` para convertir tus datos antes de pasarlos a la respuesta:
    
    ```Python hl_lines="4 6 20 21"
    {!../../../docs_src/response_directly/tutorial001.py!}
    ```
    
    !!! note "Detalles Técnicos"
        También puedes usar `from starlette.responses import JSONResponse`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 11:57:27 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top