Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for blocks (0.21 sec)

  1. docs/en/docs/contributing.md

    All the documentation is in Markdown format in the directory `./docs/en/`.
    
    Many of the tutorials have blocks of code.
    
    In most of the cases, these blocks of code are actual complete applications that can be run as is.
    
    In fact, those blocks of code are not written inside the Markdown, they are Python files in the `./docs_src/` directory.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/events.md

    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Wenn Sie wie oben einen Kontextmanager oder einen asynchronen Kontextmanager erstellen, führt dieser vor dem Betreten des `with`-Blocks den Code vor dem `yield` aus, und nach dem Verlassen des `with`-Blocks wird er den Code nach dem `yield` ausführen.
    
    In unserem obigen Codebeispiel verwenden wir ihn nicht direkt, sondern übergeben ihn an FastAPI, damit es ihn verwenden kann.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:59 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs/de/docs/how-to/custom-request-and-route.md

    Wir können denselben Ansatz auch verwenden, um in einem Exceptionhandler auf den Requestbody zuzugreifen.
    
    Alles, was wir tun müssen, ist, den Request innerhalb eines `try`/`except`-Blocks zu handhaben:
    
    ```Python hl_lines="13  15"
    {!../../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:18:23 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  4. 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 May 05 07:19:11 GMT 2024
    - Last Modified: Mon Mar 25 23:10:11 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/custom-response.md

    {!../../../docs_src/custom_response/tutorial008.py!}
    ```
    
    1. Das ist die Generatorfunktion. Es handelt sich um eine „Generatorfunktion“, da sie `yield`-Anweisungen enthält.
    2. Durch die Verwendung eines `with`-Blocks stellen wir sicher, dass das dateiähnliche Objekt geschlossen wird, nachdem die Generatorfunktion fertig ist. Also, nachdem sie mit dem Senden der Response fertig ist.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 13:05:12 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  6. 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 `fastapi dev` with:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/index.md

    Ele também foi feito como referência futura.
    
    Então você poderá voltar e ver exatamente o que precisar.
    
    ## Rode o código
    
    Todos os blocos de código podem ser copiados e utilizados diretamente (eles são, na verdade, arquivos Python testados).
    
    Para rodar qualquer um dos exemplos, copie o codigo para um arquivo `main.py`, e inicie o `uvivorn` com:
    
    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)
  8. 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 May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  9. docs/en/docs/css/custom.css

    .termynal-comment {
      color: #4a968f;
      font-style: italic;
      display: block;
    }
    
    .termy {
      /* For right to left languages */
      direction: ltr;
    }
    
    .termy [data-termynal] {
      white-space: pre-wrap;
    }
    
    a.external-link {
      /* For right to left languages */
      direction: ltr;
      display: inline-block;
    }
    
    a.external-link::after {
      /* \00A0 is a non-breaking space
    CSS
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jan 28 09:53:45 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. docs/pt/docs/contributing.md

    Toda a documentação está no formato Markdown no diretório `./docs/pt/`.
    
    Muitos dos tutoriais tem blocos de código.
    
    Na maioria dos casos, esse blocos de código são aplicações completas que podem ser rodadas do jeito que estão apresentados.
    
    De fato, esses blocos de código não estão escritos dentro do Markdown, eles são arquivos Python dentro do diretório `./docs_src/`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 14.9K bytes
    - Viewed (0)
Back to top