Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 93 for defining (0.51 seconds)

  1. docs/en/docs/reference/websockets.md

    # WebSockets
    
    When defining WebSockets, you normally declare a parameter of type `WebSocket` and with it you can read data from the client and send data to it.
    
    Read more about it in the [FastAPI docs for WebSockets](https://fastapi.tiangolo.com/advanced/websockets/)
    
    It is provided directly by Starlette, but you can import it from `fastapi`:
    
    ```python
    from fastapi import WebSocket
    ```
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:41:54 GMT 2026
    - 2K bytes
    - Click Count (0)
  2. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    ## Status
    
    - ACCEPTED on 2024-06-21
    
    ## Context
    
    Modern best practices when developing a Gradle plugin are to use lazy types (ConfigurableFileCollection, Provider API, domain object containers) when defining configurable parts of a plugin (tasks, extensions, domain objects).  The Provider API provides a consistent way to set conventions, wire related configuration together (extension <- domain object <- task) and avoid evaluation ordering problems.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. docs/en/docs/features.md

    ### Validation { #validation }
    
    * Validation for most (or all?) Python **data types**, including:
        * JSON objects (`dict`).
        * JSON array (`list`) defining item types.
        * String (`str`) fields, defining min and max lengths.
        * Numbers (`int`, `float`) with min and max values, etc.
    
    * Validation for more exotic types, like:
        * URL.
        * Email.
        * UUID.
        * ...and others.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/extra-models.md

    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union):
    
    /// note
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. ci/official/containers/ml_build/builder.devtoolset/build_devtoolset.sh

      ;;
    esac
    
    mkdir -p "${TARGET}"
    
    # Download glibc's shared and development libraries based on the value of the
    # `VERSION` parameter.
    # Note: 'Templatizing' this and the other conditional branches would require
    # defining several variables (version, os, path) making it difficult to maintain
    # and extend for future modifications.
    case "${VERSION}" in
    devtoolset-7)
      # Download binary glibc 2.12 shared library release.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Jan 16 21:51:13 GMT 2026
    - 8K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/events.md

    Maybe you need to start a new version, or you just got tired of running it. 🤷
    
    ///
    
    ### Lifespan function { #lifespan-function }
    
    The first thing to notice, is that we are defining an async function with `yield`. This is very similar to Dependencies with `yield`.
    
    {* ../../docs_src/events/tutorial003_py310.py hl[14:19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/dependencies/index.md

    ## To `async` or not to `async` { #to-async-or-not-to-async }
    
    As dependencies will also be called by **FastAPI** (the same as your *path operation functions*), the same rules apply while defining your functions.
    
    You can use `async def` or normal `def`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/query-params-str-validations.md

    As in this case (without using `Annotated`) we have to replace the default value `None` in the function with `Query()`, we now need to set the default value with the parameter `Query(default=None)`, it serves the same purpose of defining that default value (at least for FastAPI).
    
    So:
    
    ```Python
    q: str | None = Query(default=None)
    ```
    
    ...makes the parameter optional, with a default value of `None`, the same as:
    
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

                } catch (IOException tolerated) {
                  // it's expected that some of these will fail
                }
    
                Thread.yield();
              }
            });
      }
    
      /** Enum defining the two MoreFiles methods that delete directory contents. */
      private enum DirectoryDeleteMethod {
        DELETE_DIRECTORY_CONTENTS {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/first-steps.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ### OpenAPI { #openapi }
    
    **FastAPI** generates a "schema" with all your API using the **OpenAPI** standard for defining APIs.
    
    #### "Schema" { #schema }
    
    A "schema" is a definition or description of something. Not the code that implements it, but just an abstract description.
    
    #### API "schema" { #api-schema }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 13.4K bytes
    - Click Count (0)
Back to Top