Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 132 for could (1.26 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    !!! tip
        As FastAPI is an async framework, one request could start being processed, and before finishing, another request could be received and start processing as well, and it all could be processed in the same thread.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/path-operation-advanced-configuration.md

    So, you could add additional data to the automatically generated schema.
    
    For example, you could decide to read and validate the request with your own code, without using the automatic features of FastAPI with Pydantic, but you could still want to define the request in the OpenAPI schema.
    
    You could do that with `openapi_extra`:
    
    ```Python hl_lines="20-37  39-40"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/settings.md

    πŸ‘† πŸ’ͺ ✍ & βš™οΈ 🌐 πŸ”’ 🐚, 🍡 πŸ’†β€β™‚ 🐍:
    
    === "πŸ’Ύ, πŸ‡ΈπŸ‡», πŸšͺ πŸŽ‰"
    
        <div class="termy">
    
        ```console
        // You could create an env var MY_NAME with
        $ export MY_NAME="Wade Wilson"
    
        // Then you could use it with other programs, like
        $ echo "Hello $MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    === "πŸšͺ πŸ“‹"
    
        <div class="termy">
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/body-multiple-params.md

        {!> ../../../docs_src/body_multiple_params/tutorial001.py!}
        ```
    
    !!! note
        Notice that, in this case, the `item` that would be taken from the body is optional. As it has a `None` default value.
    
    ## Multiple body parameters
    
    In the previous example, the *path operations* would expect a JSON body with the attributes of an `Item`, like:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  5. fastapi/applications.py

                Any,
                Doc(
                    """
                    The type to use for the response.
    
                    It could be any valid Pydantic *field* type. So, it doesn't have to
                    be a Pydantic model, it could be other things, like a `list`, `dict`,
                    etc.
    
                    It will be used for:
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/handling-errors.md

    This client could be a browser with a frontend, a code from someone else, an IoT device, etc.
    
    You could need to tell the client that:
    
    * The client doesn't have enough privileges for that operation.
    * The client doesn't have access to that resource.
    * The item the client was trying to access doesn't exist.
    * etc.
    
    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)
  7. docs/en/docs/tutorial/extra-models.md

    If it was in a type annotation we could have used the vertical bar, as:
    
    ```Python
    some_variable: PlaneItem | CarItem
    ```
    
    But if we put that in `response_model=PlaneItem | CarItem` we would get an error, because Python would try to perform an **invalid operation** between `PlaneItem` and `CarItem` instead of interpreting that as a type annotation.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  8. docs/en/docs/advanced/async-tests.md

    ```
    .
    β”œβ”€β”€ app
    β”‚Β Β  β”œβ”€β”€ __init__.py
    β”‚Β Β  β”œβ”€β”€ main.py
    β”‚Β Β  └── test_main.py
    ```
    
    The file `main.py` would have:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Run it
    
    You can run your tests as usual via:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/configure-swagger-ui.md

    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Change the Theme
    
    The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle):
    
    ```Python hl_lines="3"
    {!../../../docs_src/configure_swagger_ui/tutorial002.py!}
    ```
    
    That configuration would change the syntax highlighting color theme:
    
    <img src="/img/tutorial/extending-openapi/image04.png">
    
    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)
  10. .github/actions/notify-translations/app/main.py

        # Normally only one language, but still
        for lang in langs:
            if lang not in lang_to_discussion_map:
                log_message = f"Could not find discussion for language: {lang}"
                logging.error(log_message)
                raise RuntimeError(log_message)
            discussion = lang_to_discussion_map[lang]
            logging.info(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
Back to top