Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 806 for Ehat (0.19 sec)

  1. docs/en/docs/help-fastapi.md

    * Then check that the tests **pass** after the PR. ✅
    
    * Many PRs don't have tests, you can **remind** them to add tests, or you can even **suggest** some tests yourself. That's one of the things that consume most time and you can help a lot with that.
    
    * Then also comment what you tried, that way I'll know that you checked it. 🤓
    
    ## Create a Pull Request
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

        ```
    
    The last `CommonQueryParams`, in:
    
    ```Python
    ... Depends(CommonQueryParams)
    ```
    
    ...is what **FastAPI** will actually use to know what is the dependency.
    
    From it is that FastAPI will extract the declared parameters and that is what FastAPI will actually call.
    
    ---
    
    In this case, the first `CommonQueryParams`, in:
    
    === "Python 3.8+"
    
        ```Python
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. docs/en/docs/alternatives.md

    This decoupling of parts, and being a "microframework" that could be extended to cover exactly what is needed was a key feature that I wanted to keep.
    
    Given the simplicity of Flask, it seemed like a good match for building APIs. The next thing to find was a "Django REST Framework" for Flask.
    
    !!! check "Inspired **FastAPI** to"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/events.md

    This can be very useful for setting up **resources** that you need to use for the whole app, and that are **shared** among requests, and/or that you need to **clean up** afterwards. For example, a database connection pool, or loading a shared machine learning model.
    
    ## Use Case
    
    Let's start with an example **use case** and then see how to solve it with this.
    
    Let's imagine that you have some **machine learning models** that you want to use to handle requests. 🤖
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/en/docs/deployment/docker.md

    ## Containers and Processes
    
    A **container image** normally includes in its metadata the default program or command that should be run when the **container** is started and the parameters to be passed to that program. Very similar to what would be if it was in the command line.
    
    When a **container** is started, it will run that command/program (although you can override it and make it run a different command/program).
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM)
      }
    
      /**
       * Confirm that the client times out if the server stalls after 3 bytes. After the timeout the
       * connection is still considered healthy while we await the degraded pong. When that doesn't
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/openapi-callbacks.md

    You could create an API with a *path operation* that could trigger a request to an *external API* created by someone else (probably the same developer that would be *using* your API).
    
    The process that happens when your API app calls the *external API* is named a "callback". Because the software that the external developer wrote sends a request to your API and then your API *calls back*, sending a request to an *external API* (that was probably created by the same developer).
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/response-model.md

    ### FastAPI Data Filtering
    
    Now, for FastAPI, it will see the return type and make sure that what you return includes **only** the fields that are declared in the type.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/server-workers.md

    [19515] [INFO] Application startup complete.
    ```
    
    </div>
    
    Let's see what each of those options mean:
    
    * `main:app`: This is the same syntax used by Uvicorn, `main` means the Python module named "`main`", so, a file `main.py`. And `app` is the name of the variable that is the **FastAPI** application.
        * You can imagine that `main:app` is equivalent to a Python `import` statement like:
    
            ```Python
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/sql-databases.md

    Now create Pydantic *models* (schemas) that will be used when reading data, when returning it from the API.
    
    For example, before creating an item, we don't know what will be the ID assigned to it, but when reading it (when returning it from the API) we will already know its ID.
    
    The same way, when reading a user, we can now declare that `items` will contain the items that belong to this user.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top