Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for global (0.26 sec)

  1. docs/de/docs/tutorial/handling-errors.md

    Nehmen wir an, Sie haben eine benutzerdefinierte Exception `UnicornException`, die Sie (oder eine Bibliothek, die Sie verwenden) `raise`n könnten.
    
    Und Sie möchten diese Exception global mit FastAPI handhaben.
    
    Sie könnten einen benutzerdefinierten Exceptionhandler mittels `@app.exception_handler()` hinzufügen:
    
    ```Python hl_lines="5-7  13-18  24"
    {!../../../docs_src/handling_errors/tutorial003.py!}
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

    ## Settings in a dependency
    
    In some occasions it might be useful to provide the settings from a dependency, instead of having a global object with `settings` that is used everywhere.
    
    This could be especially useful during testing, as it's very easy to override a dependency with your own custom settings.
    
    ### The config file
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/additional-responses.md

                * A key `schema`, that has as the value the JSON Schema from the model, here's the correct place.
                    * **FastAPI** adds a reference here to the global JSON Schemas in another place in your OpenAPI instead of including it directly. This way, other applications and clients can use those JSON Schemas directly, provide better code generation tools, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/events.md

    Bei getrennten Funktionen, die keine gemeinsame Logik oder Variablen haben, ist dies schwieriger, da Sie Werte in globalen Variablen speichern oder ähnliche Tricks verwenden müssen.
    
    Aus diesem Grund wird jetzt empfohlen, stattdessen `lifespan` wie oben erläutert zu verwenden.
    
    ## Technische Details
    
    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)
  5. docs/pt/docs/advanced/events.md

    Fazendo isso em funções separadas que não compartilham lógica ou variáveis entre elas é mais difícil já que você precisa armazenar os valores em variáveis globais ou truques parecidos.
    
    Por causa disso, agora é recomendado em vez disso usar o `lifespan` como explicado acima.
    
    ## Detalhes técnicos
    
    Só um detalhe técnico para nerds curiosos. 🤓
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/events.md

    Doing that in separated functions that don't share logic or variables together is more difficult as you would need to store values in global variables or similar tricks.
    
    Because of that, it's now recommended to instead use the `lifespan` as explained above.
    
    ## Technical Details
    
    Just a technical detail for the curious nerds. 🤓
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. docs/de/docs/contributing.md

        Dadurch wird sichergestellt, dass Sie, wenn Sie ein von diesem Package installiertes Terminalprogramm verwenden, das Programm aus Ihrer lokalen Umgebung verwenden und kein anderes, das global installiert sein könnte.
    
    ### Benötigtes mit pip installieren
    
    Nachdem Sie die Umgebung wie oben beschrieben aktiviert haben:
    
    <div class="termy">
    
    ```console
    $ pip install -r requirements.txt
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 23:55:23 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. docs/fr/docs/contributing.md

        </div>
    
    Il installera toutes les dépendances et votre FastAPI local dans votre environnement local.
    
    #### Utiliser votre FastAPI local
    
    Si vous créez un fichier Python qui importe et utilise FastAPI, et que vous l'exécutez avec le Python de votre environnement local, il utilisera votre code source FastAPI local.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:51:07 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/bigger-applications.md

    ### `FastAPI` importieren
    
    Sie importieren und erstellen wie gewohnt eine `FastAPI`-Klasse.
    
    Und wir können sogar [globale Abhängigkeiten](dependencies/global-dependencies.md){.internal-link target=_blank} deklarieren, die mit den Abhängigkeiten für jeden `APIRouter` kombiniert werden:
    
    ```Python hl_lines="1  3  7" title="app/main.py"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/sql-databases-peewee.md

    And `threading.local` is not compatible with the new async features of modern Python.
    
    !!! note "Technical Details"
    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 (1)
Back to top