Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 145 for dependente (0.13 sec)

  1. fastapi/params.py

            )
    
    
    class Depends:
        def __init__(
            self, dependency: Optional[Callable[..., Any]] = None, *, use_cache: bool = True
        ):
            self.dependency = dependency
            self.use_cache = use_cache
    
        def __repr__(self) -> str:
            attr = getattr(self.dependency, "__name__", type(self.dependency).__name__)
            cache = "" if self.use_cache else ", use_cache=False"
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 18:06:20 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

    But `OAuth2PasswordRequestForm` is just a class dependency that you could have written yourself, or you could have declared `Form` parameters directly.
    
    But as it's a common use case, it is provided by **FastAPI** directly, just to make it easier.
    
    ///
    
    ### Use the form data
    
    /// tip
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. docs/pt/docs/how-to/conditional-openapi.md

    # OpenAPI condicional
    
    Se necessário, você pode usar configurações e variáveis ​​de ambiente para configurar o OpenAPI condicionalmente, dependendo do ambiente, e até mesmo desativá-lo completamente.
    
    ## Sobre segurança, APIs e documentos
    
    Ocultar suas interfaces de usuário de documentação na produção *não deveria* ser a maneira de proteger sua API.
    
    Isso não adiciona nenhuma segurança extra à sua API; as *operações de rotas* ainda estarão disponíveis onde estão.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. VULNERABILITY_REPORT.md

    This document formally describes the process of addressing and managing a
    reported vulnerability that has been found in the MinIO server code base,
    any directly connected ecosystem component or a direct / indirect dependency
    of the code base.
    
    ## Scope
    
    The vulnerability management policy described in this document covers the
    process of investigating, assessing and resolving a vulnerability report
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sat Feb 12 00:51:25 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. fastapi/security/open_id_connect_url.py

    from starlette.status import HTTP_403_FORBIDDEN
    from typing_extensions import Annotated, Doc
    
    
    class OpenIdConnect(SecurityBase):
        """
        OpenID Connect authentication class. An instance of it would be used as a
        dependency.
        """
    
        def __init__(
            self,
            *,
            openIdConnectUrl: Annotated[
                str,
                Doc(
                    """
                The OpenID Connect URL.
                """
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. tests/test_ws_router.py

        await websocket.accept()
        await websocket.send_text(pathparam)
        await websocket.send_text(queryparam)
        await websocket.close()
    
    
    async def ws_dependency():
        return "Socket Dependency"
    
    
    @router.websocket("/router-ws-depends/")
    async def router_ws_decorator_depends(
        websocket: WebSocket, data=Depends(ws_dependency)
    ):
        await websocket.accept()
        await websocket.send_text(data)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. docs/en/docs/reference/background.md

    # Background Tasks - `BackgroundTasks`
    
    You can declare a parameter in a *path operation function* or dependency function with the type `BackgroundTasks`, and then you can use it to schedule the execution of background tasks after the response is sent.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import BackgroundTasks
    ```
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 377 bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/sql-databases.md

    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[21:22] hl[21:22] *}
    
    ### Create a Session Dependency
    
    A **`Session`** is what stores the **objects in memory** and keeps track of any changes needed in the data, then it **uses the `engine`** to communicate with the database.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. docs/pt/docs/deployment/index.md

    # Implantação
    
    A implantação de uma aplicação **FastAPI** é relativamente simples.
    
    Existem várias maneiras para fazer isso, dependendo do seu caso específico e das ferramentas que você utiliza.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Jun 24 14:47:15 UTC 2023
    - 322 bytes
    - Viewed (0)
  10. tests/test_dependency_duplicates.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    client = TestClient(app)
    
    
    class Item(BaseModel):
        data: str
    
    
    def duplicate_dependency(item: Item):
        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    ):
        return [item, sub_item]
    
    
    @app.post("/with-duplicates")
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top