Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for global (0.18 sec)

  1. docs/en/docs/tutorial/dependencies/global-dependencies.md

    # Global Dependencies
    
    For some types of applications you might want to add dependencies to the whole application.
    
    Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application.
    
    In that case, they will be applied to all the *path operations* in the application:
    
    === "Python 3.9+"
    
        ```Python hl_lines="16"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    Sebastián Ramírez <******@****.***> 1697522351 +0400
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/dependencies/global-dependencies.md

    Sebastián Ramírez <******@****.***> 1652313976 -0500
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 958 bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/dependencies/global-dependencies.md

    LeeeeT <******@****.***> 1680341164 +0300
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 828 bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/dependencies/global-dependencies.md

    # Globale Abhängigkeiten
    
    Bei einigen Anwendungstypen möchten Sie möglicherweise Abhängigkeiten zur gesamten Anwendung hinzufügen.
    
    Ähnlich wie Sie [`dependencies` zu den *Pfadoperation-Dekoratoren* hinzufügen](dependencies-in-path-operation-decorators.md){.internal-link target=_blank} können, können Sie sie auch zur `FastAPI`-Anwendung hinzufügen.
    
    In diesem Fall werden sie auf alle *Pfadoperationen* in der Anwendung angewendet:
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:10:13 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/dependencies/global-dependencies.md

    김명기 <******@****.***> 1707923147 +0900
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Feb 14 15:05:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/bigger-applications.md

    ### Import `FastAPI`
    
    You import and create a `FastAPI` class as normally.
    
    And we can even declare [global dependencies](dependencies/global-dependencies.md){.internal-link target=_blank} that will be combined with the dependencies for each `APIRouter`:
    
    ```Python hl_lines="1  3  7" title="app/main.py"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  9. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  10. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top