Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for more (0.17 sec)

  1. docs/en/docs/benchmarks.md

    * **Uvicorn**:
        * Will have the best performance, as it doesn't have much extra code apart from the server itself.
        * You wouldn't write an application in Uvicorn directly. That would mean that your code would have to include more or less, at least, all the code provided by Starlette (or **FastAPI**). And if you did that, your final application would have the same overhead as having used a framework and minimizing your app code and bugs.
    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/dataclasses.md

    Check the in-code annotation tips above to see more specific details.
    
    ## Learn More
    
    You can also combine `dataclasses` with other Pydantic models, inherit from them, include them in your own models, etc.
    
    To learn more, check the <a href="https://docs.pydantic.dev/latest/concepts/dataclasses/" class="external-link" target="_blank">Pydantic docs about dataclasses</a>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

                When `embed` is `True`, the parameter will be expected in a JSON body as a
                key instead of being the JSON body itself.
    
                This happens automatically when more than one `Body` parameter is declared.
    
                Read more about it in the
                [FastAPI docs for Body - Multiple Parameters](https://fastapi.tiangolo.com/tutorial/body-multiple-params/#embed-a-single-body-parameter).
                """
    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)
  4. docs/en/docs/alternatives.md

    It requires a little bit more verbose configurations. And as it is based on WSGI (instead of ASGI), it is not designed to take advantage of the high performance provided by tools like Uvicorn, Starlette and Sanic.
    
    The dependency injection system requires pre-registration of the dependencies and the dependencies are solved based on the declared types. So, it's not possible to declare more than one "component" that provides a certain type.
    
    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)
  5. docs/en/docs/advanced/behind-a-proxy.md

    ```JSON hl_lines="4-8"
    {
        "openapi": "3.1.0",
        // More stuff here
        "servers": [
            {
                "url": "/api/v1"
            }
        ],
        "paths": {
                // More stuff here
        }
    }
    ```
    
    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)
  6. fastapi/security/oauth2.py

        collected using form data (instead of JSON) and that it should have the specific
        fields `username` and `password`.
    
        All the initialization parameters are extracted from the request.
    
        Read more about it in the
        [FastAPI docs for Simple OAuth2 with Password and Bearer](https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/).
    
        ## Example
    
        ```python
        from typing import Annotated
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  7. docs/en/docs/deployment/manually.md

        ```Python
        from main import app
        ```
    
    !!! warning
        Uvicorn and others support a `--reload` option that is useful during development.
    
        The `--reload` option consumes much more resources, is more unstable, etc.
    
        It helps a lot during **development**, but you **shouldn't** use it in **production**.
    
    ## Hypercorn with Trio
    
    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)
  8. docs/en/docs/tutorial/first-steps.md

    "Operation" here refers to one of the HTTP "methods".
    
    One of:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...and the more exotic ones:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    In the HTTP protocol, you can communicate to each path using one (or more) of these "methods".
    
    ---
    
    When building APIs, you normally use these specific HTTP methods to perform a specific action.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/testing.md

    ```Python hl_lines="3"
    {!../../../docs_src/app_testing/test_main.py!}
    ```
    
    ...and have the code for the tests just like before.
    
    ## Testing: extended example
    
    Now let's extend this example and add more details to see how to test different parts.
    
    ### Extended **FastAPI** app file
    
    Let's continue with the same file structure as before:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    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)
  10. docs/en/docs/tutorial/response-model.md

    But most importantly:
    
    * It will **limit and filter** the output data to what is defined in the return type.
        * This is particularly important for **security**, we'll see more of that below.
    
    ## `response_model` Parameter
    
    There are some cases where you need or want to return some data that is not exactly what the type declares.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
Back to top