Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1051 - 1060 of 1,929 for FastAPI (0.07 sec)

  1. tests/test_security_http_bearer.py

    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBearer()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. tests/test_security_http_digest_description.py

    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPDigest(description="HTTPDigest scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/index.md

    /// info | "Informação"
    
    FastAPI passou a suportar a notação `Annotated` (e começou a recomendá-la) na versão 0.95.0.
    
    Se você utiliza uma versão anterior, ocorrerão erros ao tentar utilizar `Annotated`.
    
    Certifique-se de [Atualizar a versão do FastAPI](../../deployment/versions.md#atualizando-as-versoes-do-fastapi){.internal-link target=_blank} para pelo menos 0.95.1 antes de usar `Annotated`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. docs/fr/docs/alternatives.md

    quelque chose qu'un framework comme Starlette (ou **FastAPI**) fournirait par-dessus.
    
    C'est le serveur recommandé pour Starlette et **FastAPI**.
    
    /// check | "**FastAPI** le recommande comme"
    
    Le serveur web principal pour exécuter les applications **FastAPI**.
    
    Vous pouvez le combiner avec Gunicorn, pour avoir un serveur multi-processus asynchrone.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/first-steps.md

    ```
    
    `FastAPI` ist eine Python-Klasse, die die gesamte Funktionalität für Ihre API bereitstellt.
    
    /// note | "Technische Details"
    
    `FastAPI`  ist eine Klasse, die direkt von `Starlette` erbt.
    
    Sie können alle <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>-Funktionalitäten auch mit `FastAPI` nutzen.
    
    ///
    
    ### Schritt 2: Erzeugen einer `FastAPI`-„Instanz“
    
    ```Python hl_lines="3"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/index.md

    로컬 편집기에서 사용한다면, 모든 타입 검사와 자동완성 등 작성해야 하는 코드가 얼마나 적은지 보면서 FastAPI의 이점을 비로소 경험할 수 있습니다.
    
    
    ---
    
    ## FastAPI 설치
    
    첫 번째 단계는 FastAPI를 설치하는 것입니다.
    
    자습시에는 모든 선택적인 의존성 및 기능을 함께 설치하는 것을 추천합니다:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    ...이는 코드를 실행하는 서버로 사용할 수 있는 `uvicorn` 또한 포함하고 있습니다.
    
    /// note | "참고"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Oct 04 10:57:17 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. docs_src/handling_errors/tutorial004.py

    from fastapi import FastAPI, HTTPException
    from fastapi.exceptions import RequestValidationError
    from fastapi.responses import PlainTextResponse
    from starlette.exceptions import HTTPException as StarletteHTTPException
    
    app = FastAPI()
    
    
    @app.exception_handler(StarletteHTTPException)
    async def http_exception_handler(request, exc):
        return PlainTextResponse(str(exc.detail), status_code=exc.status_code)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 762 bytes
    - Viewed (0)
  8. tests/test_security_http_bearer_description.py

    from fastapi import FastAPI, Security
    from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBearer(description="HTTP Bearer token scheme")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. docs/uk/docs/tutorial/body.md

    * Якщо параметр оголошується як тип **Pydantic моделі**, він інтерпретується як **тіло** запиту.
    
    /// note
    
    FastAPI буде знати, що значення "q" не є обов'язковим через значення за замовчуванням "= None".
    
    `Optional` у `Optional[str]` не використовується FastAPI, але дозволить вашому редактору надати вам кращу підтримку та виявляти помилки.
    
    ///
    
    ## Без Pydantic
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/debugging.md

    ---
    
    For example, in Visual Studio Code, you can:
    
    * Go to the "Debug" panel.
    * "Add configuration...".
    * Select "Python"
    * Run the debugger with the option "`Python: Current File (Integrated Terminal)`".
    
    It will then start the server with your **FastAPI** code, stop at your breakpoints, etc.
    
    Here's how it might look:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top