Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Klocko (0.41 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

        **FastAPI** uses them internally to achieve this.
    
    ## Dependencies with `yield` and `HTTPException`
    
    You saw that you can use dependencies with `yield` and have `try` blocks that catch exceptions.
    
    The same way, you could raise an `HTTPException` or similar in the exit code, after the `yield`.
    
    !!! tip
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/index.md

    It is also built to work as a future reference.
    
    So you can come back and see exactly what you need.
    
    ## Run the code
    
    All the code blocks can be copied and used directly (they are actually tested Python files).
    
    To run any of the examples, copy the code to a file `main.py`, and start `uvicorn` with:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  3. docs/en/data/sponsors.yml

        img: https://fastapi.tiangolo.com/img/sponsors/talkpython-v2.jpg
      - url: https://github.com/deepset-ai/haystack/
        title: Build powerful search from composable, open source building blocks
        img: https://fastapi.tiangolo.com/img/sponsors/haystack-fastapi.svg
      - url: https://databento.com/
        title: Pay as you go for market data
        img: https://fastapi.tiangolo.com/img/sponsors/databento.svg
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Mar 25 23:10:11 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/events.md

    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    When you create a context manager or an async context manager like above, what it does is that, before entering the `with` block, it will execute the code before the `yield`, and after exiting the `with` block, it will execute the code after the `yield`.
    
    In our code example above, we don't use it directly, but we pass it to FastAPI for it to use it.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

        {!> ../../../docs_src/sql_databases/sql_app/main.py!}
        ```
    
    !!! info
        We put the creation of the `SessionLocal()` and handling of the requests in a `try` block.
    
        And then we close it in the `finally` block.
    
        This way we make sure the database session is always closed after the request. Even if there was an exception while processing the request.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. docs/en/overrides/main.html

            <span class="sponsor-badge">sponsor</span>
            <img class="sponsor-image" src="/img/sponsors/cryptapi-banner.svg" />
          </a>
        </div>
        <div class="item">
    HTML
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Mar 25 23:10:11 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

        Sie können `async`hrone oder reguläre Funktionen verwenden.
    
        **FastAPI** wird bei jeder das Richtige tun, so wie auch bei normalen Abhängigkeiten.
    
    ## Eine Abhängigkeit mit `yield` und `try`.
    
    Wenn Sie einen `try`-Block in einer Abhängigkeit mit `yield` verwenden, empfangen Sie alle Exceptions, die bei Verwendung der Abhängigkeit geworfen wurden.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:10:29 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/custom-response.md

    {!../../../docs_src/custom_response/tutorial008.py!}
    ```
    
    1. This is the generator function. It's a "generator function" because it contains `yield` statements inside.
    2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. docs/en/docs/async.md

    ### Path operation functions
    
    When you declare a *path operation function* with normal `def` instead of `async def`, it is run in an external threadpool that is then awaited, instead of being called directly (as it would block the server).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  10. README.md

    <a href="https://github.com/deepset-ai/haystack/" target="_blank" title="Build powerful search from composable, open source building blocks"><img src="https://fastapi.tiangolo.com/img/sponsors/haystack-fastapi.svg"></a>
    <a href="https://databento.com/" target="_blank" title="Pay as you go for market data"><img src="https://fastapi.tiangolo.com/img/sponsors/databento.svg"></a>
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top