Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 873 for Python (0.11 sec)

  1. docs/en/docs/advanced/response-change-status-code.md

    You can declare a parameter of type `Response` in your *path operation function* (as you can do for cookies and headers).
    
    And then you can set the `status_code` in that *temporal* response object.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/additional-responses.md

    For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`:
    
    ```Python
    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Here, `new_dict` will contain all the key-value pairs from `old_dict` plus the new key-value pair:
    
    ```Python
    {
        "old key": "old value",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:07:07 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. configure.cmd

    :: License for the specific language governing permissions and limitations under
    :: the License.
    
    @echo off
    
    set configure_dir=%~dp0
    set configure_dir=%configure_dir:~0,-1%
    python "%configure_dir%\configure.py" %* || ( exit /b )
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 11 09:27:42 UTC 2020
    - 782 bytes
    - Viewed (0)
  4. docs/en/data/sponsors.yml

        title: Coherence
        img: https://fastapi.tiangolo.com/img/sponsors/coherence.png
      - url: https://www.mongodb.com/developer/languages/python/python-quickstart-fastapi/?utm_campaign=fastapi_framework&utm_source=fastapi_sponsorship&utm_medium=web_referral
        title: Simplify Full Stack Development with FastAPI & MongoDB
        img: https://fastapi.tiangolo.com/img/sponsors/mongodb.png
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 09:13:26 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. fastapi/exceptions.py

        errors in your code.
    
        Read more about it in the
        [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI, HTTPException
    
        app = FastAPI()
    
        items = {"foo": "The Foo Wrestlers"}
    
    
        @app.get("/items/{item_id}")
        async def read_item(item_id: str):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. docs/de/docs/deployment/cloud.md

    Vielleicht möchten Sie deren Dienste ausprobieren und deren Anleitungen folgen:
    
    * <a href="https://docs.platform.sh/languages/python.html?utm_source=fastapi-signup&utm_medium=banner&utm_campaign=FastAPI-signup-June-2023" class="external-link" target="_blank">Platform.sh</a>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 30 20:30:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/response-change-status-code.md

    📚 💼, 👆 💪 ⚙️ `Response` 🔢.
    
    ## ⚙️ `Response` 🔢
    
    👆 💪 📣 🔢 🆎 `Response` 👆 *➡ 🛠️ 🔢* (👆 💪 🍪 &amp; 🎚).
    
    &amp; ⤴️ 👆 💪 ⚒ `status_code` 👈 *🔀* 📨 🎚.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    &amp; ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( `dict`, 💽 🏷, ♒️).
    
    &amp; 🚥 👆 📣 `response_model`, ⚫️ 🔜 ⚙️ ⛽ &amp; 🗜 🎚 👆 📨.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/response-change-status-code.md

    Você pode declarar um parâmetro do tipo `Response` em sua *função de operação de rota* (assim como você pode fazer para cookies e headers).
    
    E então você pode definir o `status_code` neste objeto de retorno temporal.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    E então você pode retornar qualquer objeto que você precise, como você faria normalmente (um `dict`, um modelo de banco de dados, etc.).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/jax.requirements.txt

    numpy==1.23.4;python_version=="3.11"
    numpy==1.22.4;python_version<"3.11"
    scipy==1.11.2;python_version=="3.12"
    scipy==1.9.2;python_version=="3.11"
    scipy==1.7.3;python_version<"3.11"
    ml_dtypes>=0.2.0
    
    # For using Python 3.11 with Bazel 6 (b/286090018)
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Jan 30 20:02:17 UTC 2024
    - 570 bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/static-files.md

    `StaticFiles`'ı kullanarak statik dosyaları bir yol altında sunabilirsiniz.
    
    ## `StaticFiles` Kullanımı
    
    * `StaticFiles` sınıfını projenize dahil edin.
    * Bir `StaticFiles()` örneğini belirli bir yola bağlayın.
    
    ```Python hl_lines="2  6"
    {!../../docs_src/static_files/tutorial001.py!}
    ```
    
    /// note | "Teknik Detaylar"
    
    Projenize dahil etmek için `from starlette.staticfiles import StaticFiles` kullanabilirsiniz.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top