Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for Pasche (0.14 sec)

  1. docs/pt/docs/deployment/docker.md

    ```Dockerfile
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    ```
    
    O arquivo com os requisitos de pacote **não muda com frequência**. Então, ao copiar apenas esse arquivo, o Docker será capaz de **usar o cache** para esse passo.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  2. docs/de/docs/deployment/docker.md

    ```Dockerfile
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    ```
    
    Die Datei mit den Paketanforderungen wird sich **nicht häufig ändern**. Wenn Docker also nur diese Datei kopiert, kann es für diesen Schritt **den Cache verwenden**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  3. docs_src/settings/app02_an/main.py

    from functools import lru_cache
    
    from fastapi import Depends, FastAPI
    from typing_extensions import Annotated
    
    from .config import Settings
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return Settings()
    
    
    @app.get("/info")
    async def info(settings: Annotated[Settings, Depends(get_settings)]):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 456 bytes
    - Viewed (0)
  4. scripts/mkdocs_hooks.py

    from functools import lru_cache
    from pathlib import Path
    from typing import Any, List, Union
    
    import material
    from mkdocs.config.defaults import MkDocsConfig
    from mkdocs.structure.files import File, Files
    from mkdocs.structure.nav import Link, Navigation, Section
    from mkdocs.structure.pages import Page
    
    non_traslated_sections = [
        "reference/",
        "release-notes.md",
    ]
    
    
    @lru_cache
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/dependencies/sub-dependencies.md

    在高级使用场景中,如果不想使用「缓存」值,而是为需要在同一请求的每一步操作(多次)中都实际调用依赖项,可以把 `Depends` 的参数 `use_cache` 的值设置为 `False` :
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## 小结
    
    千万别被本章里这些花里胡哨的词藻吓倒了,其实**依赖注入**系统非常简单。
    
    依赖注入无非是与*路径操作函数*一样的函数罢了。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  6. docs/de/docs/python-types.md

    {!../../../docs_src/python_types/tutorial002.py!}
    ```
    
    Das ist nicht das gleiche wie das Deklarieren von Defaultwerten, wie es hier der Fall ist:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    Das ist eine andere Sache.
    
    Wir verwenden Doppelpunkte (`:`), nicht Gleichheitszeichen (`=`).
    
    Und das Hinzufügen von Typhinweisen ändert normalerweise nichts an dem, was ohne sie passieren würde.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_extending_openapi/test_tutorial001.py

                        "operationId": "read_items_items__get",
                    }
                }
            },
        }
        openapi_schema = response.json()
        # Request again to test the custom cache
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/cors.md

    * `expose_headers` - Indicate any response headers that should be made accessible to the browser. Defaults to `[]`.
    * `max_age` - Sets a maximum time in seconds for browsers to cache CORS responses. Defaults to `600`.
    
    The middleware responds to two particular types of HTTP request...
    
    ### CORS preflight requests
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Nov 13 20:28:37 GMT 2022
    - 5.1K bytes
    - Viewed (0)
Back to top