Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for provides (0.17 sec)

  1. docs/en/docs/benchmarks.md

    * **Starlette**:
        * Will have the next best performance, after Uvicorn. In fact, Starlette uses Uvicorn to run. So, it probably can only get "slower" than Uvicorn by having to execute more code.
        * But it provides you the tools to build simple web applications, with routing based on paths, etc.
        * If you are comparing Starlette, compare it against Sanic, Flask, Django, etc. Web frameworks (or microframeworks).
    * **FastAPI**:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/middleware.md

    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares to handle server errors and custom exception handlers work properly.
    
    For that, you use `app.add_middleware()` (as in the example for CORS).
    
    ```Python
    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)
  3. docs/en/docs/tutorial/static-files.md

    ```Python hl_lines="2  6"
    {!../../../docs_src/static_files/tutorial001.py!}
    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.staticfiles import StaticFiles`.
    
        **FastAPI** provides the same `starlette.staticfiles` as `fastapi.staticfiles` just as a convenience for you, the developer. But it actually comes directly from Starlette.
    
    ### What is "Mounting"
    
    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)
  4. fastapi/param_functions.py

            Doc(
                """
                OpenAPI-specific examples.
    
                It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    
                Swagger UI (that provides the `/docs` interface) has better support for the
                OpenAPI-specific examples than the JSON Schema `examples`, that's the main
                use case for this.
    
                Read more about it in the
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/middleware.md

    !!! note "Technical Details"
        You could also use `from starlette.requests import Request`.
    
        **FastAPI** provides it as a convenience for you, the developer. But it comes directly from Starlette.
    
    ### Before and after the `response`
    
    You can add code to be run with the `request`,  before any *path operation* receives it.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. docs/en/docs/alternatives.md

    These features are what Marshmallow was built to provide. It is a great library, and I have used it a lot before.
    
    But it was created before there existed Python type hints. So, to define every <abbr title="the definition of how data should be formed">schema</abbr> you need to use specific utils and classes provided by Marshmallow.
    
    !!! check "Inspired **FastAPI** to"
        Use code to define "schemas" that provide data types and validation, automatically.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/behind-a-proxy.md

    Then create a file `traefik.toml` with:
    
    ```TOML hl_lines="3"
    [entryPoints]
      [entryPoints.http]
        address = ":9999"
    
    [providers]
      [providers.file]
        filename = "routes.toml"
    ```
    
    This tells Traefik to listen on port 9999 and to use another file `routes.toml`.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  8. docs/en/docs/tutorial/testing.md

        This allows you to use `pytest` directly without complications.
    
    !!! note "Technical Details"
        You could also use `from starlette.testclient import TestClient`.
    
        **FastAPI** provides the same `starlette.testclient` as `fastapi.testclient` just as a convenience for you, the developer. But it comes directly from Starlette.
    
    !!! tip
    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)
  9. docs/en/docs/tutorial/path-params.md

    Because of this, **FastAPI** itself provides an alternative API documentation (using ReDoc), which you can access at <a href="http://127.0.0.1:8000/redoc" class="external-link" target="_blank">http://127.0.0.1:8000/redoc</a>:
    
    <img src="/img/tutorial/path-params/image02.png">
    
    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/en/docs/deployment/manually.md

        </div>
    
        !!! tip
            By adding the `standard`, Uvicorn will install and use some recommended extra dependencies.
    
            That including `uvloop`, the high-performance drop-in replacement for `asyncio`, that provides the big concurrency performance boost.
    
            When you install FastAPI with something like `pip install fastapi` you already get `uvicorn[standard]` as well.
    
    === "Hypercorn"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
Back to top