Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 586 for Lyding (0.28 sec)

  1. docs/pt/docs/tutorial/body-nested-models.md

    ### Importe `List` do typing
    
    Primeiramente, importe `List` do módulo `typing` que já vem por padrão no Python:
    
    ```Python hl_lines="1"
    {!../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### Declare a `List` com um parâmetro de tipo
    
    Para declarar tipos que têm parâmetros de tipo(tipos internos), como `list`, `dict`, `tuple`:
    
    * Importe os do modulo `typing`
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. tests/test_ws_dependencies.py

    import json
    from typing import List
    
    from fastapi import APIRouter, Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    
    def dependency_list() -> List[str]:
        return []
    
    
    DepList = Annotated[List[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 20:35:39 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. docs_src/cookie_params/tutorial001_an.py

    from typing import Union
    
    from fastapi import Cookie, FastAPI
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None):
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 247 bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

            when:
            newBase.addInterface(stablePublicInterface)
    
            then:
            noViolation(rule)
        }
    
        def 'adding an #type interface can be reported'() {
            given:
            newBase.addInterface(interfaces[type])
    
            when:
            Violation violation = rule.maybeViolation(apiClass)
    
            then:
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 4K bytes
    - Viewed (0)
  5. docs_src/query_params_str_validations/tutorial006c_an.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[Union[str, None], Query(min_length=3)] = ...):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 349 bytes
    - Viewed (0)
  6. docs_src/websockets/tutorial002_an.py

    from typing import Union
    
    from fastapi import (
        Cookie,
        Depends,
        FastAPI,
        Query,
        WebSocket,
        WebSocketException,
        status,
    )
    from fastapi.responses import HTMLResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. docs_src/query_params_str_validations/tutorial007_an.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[Union[str, None], Query(title="Query string", min_length=3)] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 379 bytes
    - Viewed (0)
  8. docs_src/dependencies/tutorial005_an.py

    from typing import Union
    
    from fastapi import Cookie, Depends, FastAPI
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    def query_extractor(q: Union[str, None] = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: Annotated[str, Depends(query_extractor)],
        last_query: Annotated[Union[str, None], Cookie()] = None,
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 558 bytes
    - Viewed (0)
  9. docs/distributed/DESIGN.md

    - Erasure coding used by MinIO is [Reed-Solomon](https://github.com/klauspost/reedsolomon) erasure coding scheme, which has a total shard maximum of 256 i.e 128 data and 128 parity. MinIO design goes beyond this limitation by doing some practical architecture choices.
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 8K bytes
    - Viewed (0)
  10. .teamcity/mvnw.cmd

    if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
    
    @REM Execute a user defined script before this one
    if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
    @REM check for pre script, once with legacy .bat ending and once with .cmd ending
    if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
    if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
    :skipRcPre
    
    @setlocal
    
    set ERROR_CODE=0
    
    Batch File
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 6.5K bytes
    - Viewed (0)
Back to top