Search Options

Results per page
Sort
Preferred Languages
Advance

Results 691 - 700 of 873 for Pythona (0.1 sec)

  1. docs/de/docs/advanced/wsgi.md

    ## `WSGIMiddleware` verwenden
    
    Sie müssen `WSGIMiddleware` importieren.
    
    Wrappen Sie dann die WSGI-Anwendung (z. B. Flask) mit der Middleware.
    
    Und dann mounten Sie das auf einem Pfad.
    
    ```Python hl_lines="2-3  23"
    {!../../docs_src/wsgi/tutorial001.py!}
    ```
    
    ## Es ansehen
    
    Jetzt wird jede Anfrage unter dem Pfad `/v1/` von der Flask-Anwendung verarbeitet.
    
    Und der Rest wird von **FastAPI** gehandhabt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/wsgi.md

    ## Usando o `WSGIMiddleware`
    
    Você precisa importar o `WSGIMiddleware`.
    
    Em seguinda, encapsular a aplicação WSGI (e.g. Flask) com o middleware.
    
    E então **"montar"** em um caminho de rota.
    
    ```Python hl_lines="2-3  23"
    {!../../docs_src/wsgi/tutorial001.py!}
    ```
    
    ## Conferindo
    
    Agora todas as requisições sob o caminho `/v1/` serão manipuladas pela aplicação utilizando Flask.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/wsgi.md

    ## Using `WSGIMiddleware`
    
    You need to import `WSGIMiddleware`.
    
    Then wrap the WSGI (e.g. Flask) app with the middleware.
    
    And then mount that under a path.
    
    ```Python hl_lines="2-3  23"
    {!../../docs_src/wsgi/tutorial001.py!}
    ```
    
    ## Check it
    
    Now, every request under the path `/v1/` will be handled by the Flask application.
    
    And the rest will be handled by **FastAPI**.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/behind-a-proxy.md

    ASGI 规范定义的 `root_path` 就是为了这种用例。
    
    并且 `--root-path` 命令行选项支持 `root_path`。
    
    ///
    
    ### 查看当前的 `root_path`
    
    获取应用为每个请求使用的当前 `root_path`,这是 `scope` 字典的内容(也是 ASGI 规范的内容)。
    
    我们在这里的信息里包含 `roo_path` 只是为了演示。
    
    ```Python hl_lines="8"
    {!../../docs_src/behind_a_proxy/tutorial001.py!}
    ```
    
    然后,用以下命令启动 Uvicorn:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top