- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,929 for FastAPI (0.07 sec)
-
tests/test_security_openid_connect_description.py
from fastapi import Depends, FastAPI, Security from fastapi.security.open_id_connect_url import OpenIdConnect from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() oid = OpenIdConnect( openIdConnectUrl="/openid", description="OpenIdConnect security scheme" ) class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.4K bytes - Viewed (0) -
docs/en/docs/deployment/cloud.md
# Deploy FastAPI on Cloud Providers You can use virtually **any cloud provider** to deploy your FastAPI application. In most of the cases, the main cloud providers have guides to deploy FastAPI with them. ## Cloud Providers - Sponsors Some cloud providers โจ [**sponsor FastAPI**](../help-fastapi.md#sponsor-the-author){.internal-link target=_blank} โจ, this ensures the continued and healthy **development** of FastAPI and its **ecosystem**.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 09:13:26 UTC 2024 - 1.3K bytes - Viewed (0) -
tests/test_http_connection_injection.py
from fastapi import Depends, FastAPI from fastapi.requests import HTTPConnection from fastapi.testclient import TestClient from starlette.websockets import WebSocket app = FastAPI() app.state.value = 42 async def extract_value_from_http_connection(conn: HTTPConnection): return conn.app.state.value @app.get("/http") async def get_value_by_http(value: int = Depends(extract_value_from_http_connection)): return value
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Aug 09 13:56:41 UTC 2020 - 972 bytes - Viewed (0) -
docs/em/docs/tutorial/body-multiple-params.md
/// **FastAPI** ๐ ๐ง ๐ ๏ธ โช๏ธโก๏ธ ๐จ, ๐ ๐ข `item` ๐จ โซ๏ธ ๐ฏ ๐ & ๐ `user`. โซ๏ธ ๐ ๐ญ ๐ฌ โ ๐ฝ, & ๐ ๐ โซ๏ธ ๐ ๐ ๐ ๐ & ๐ง ๐ฉบ. ## โญ ๐ฒ ๐ช ๐ ๐ ๐ค `Query` & `Path` ๐ฌ โ ๐ฝ ๐ข & โก ๐ข, **FastAPI** ๐ ๐ `Body`. ๐ผ, โ โฎ๏ธ ๐ท, ๐ ๐ช ๐ญ ๐ ๐ ๐ โ๏ธ โ1๏ธโฃ ๐ `importance` ๐ ๐ช, ๐ฅ `item` & `user`. ๐ฅ ๐ ๐ฃ โซ๏ธ, โฉ๏ธ โซ๏ธ โญ ๐ฒ, **FastAPI** ๐ ๐ค ๐ โซ๏ธ ๐ข ๐ข.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs/pl/docs/index.md
<img src="https://github.com/fastapi/fastapi/workflows/Test/badge.svg" alt="Test"> </a> <a href="https://codecov.io/gh/fastapi/fastapi" target="_blank"> <img src="https://img.shields.io/codecov/c/github/fastapi/fastapi?color=%2334D058" alt="Coverage"> </a> <a href="https://pypi.org/project/fastapi" target="_blank"> <img src="https://img.shields.io/pypi/v/fastapi?color=%2334D058&label=pypi%20package" alt="Package version"> </a> </p> ---
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 19.3K bytes - Viewed (0) -
docs_src/response_cookies/tutorial001.py
from fastapi import FastAPI from fastapi.responses import JSONResponse app = FastAPI() @app.post("/cookie/") def create_cookie(): content = {"message": "Come to the dark side, we have cookies"} response = JSONResponse(content=content) response.set_cookie(key="fakesession", value="fake-cookie-session-value")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 344 bytes - Viewed (0) -
fastapi/security/api_key.py
The dependency result will be a string containing the key value. ## Example ```python from fastapi import Depends, FastAPI from fastapi.security import APIKeyQuery app = FastAPI() query_scheme = APIKeyQuery(name="api_key") @app.get("/items/") async def read_items(api_key: str = Depends(query_scheme)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Apr 23 22:29:18 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/first-steps.md
๊ทธ๋ฆฌ๊ณ OpenAPI์ ๋ชจ๋ ๊ฒ์ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ์์ญ ๊ฐ์ง ๋์์ด ์์ต๋๋ค. **FastAPI**๋ก ๋น๋ํ ์ ํ๋ฆฌ์ผ์ด์ ์ ์ด๋ฌํ ๋์์ ์ฝ๊ฒ ์ถ๊ฐ ํ ์ ์์ต๋๋ค. API์ ํต์ ํ๋ ํด๋ผ์ด์ธํธ(ํ๋ก ํธ์๋, ๋ชจ๋ฐ์ผ, IoT ์ ํ๋ฆฌ์ผ์ด์ ๋ฑ)๋ฅผ ์ํด ์ฝ๋๋ฅผ ์๋์ผ๋ก ์์ฑํ๋ ๋ฐ๋ ์ฌ์ฉํ ์ ์์ต๋๋ค. ## ๋จ๊ณ๋ณ ์์ฝ ### 1 ๋จ๊ณ: `FastAPI` ์ํฌํธ ```Python hl_lines="1" {!../../docs_src/first_steps/tutorial001.py!} ``` `FastAPI`๋ ๋น์ ์ API๋ฅผ ์ํ ๋ชจ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ ํ์ด์ฌ ํด๋์ค์ ๋๋ค. /// note | "๊ธฐ์ ์ธ๋ถ์ฌํญ" `FastAPI`๋ `Starlette`๋ฅผ ์ง์ ์์ํ๋ ํด๋์ค์ ๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.4K bytes - Viewed (0) -
tests/test_response_class_no_mediatype.py
import typing from fastapi import FastAPI, Response from fastapi.responses import JSONResponse from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class JsonApiResponse(JSONResponse): media_type = "application/vnd.api+json" class Error(BaseModel): status: str title: str class JsonApiError(BaseModel): errors: typing.List[Error] @app.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0) -
tests/test_dependency_security_overrides.py
from typing import List, Tuple from fastapi import Depends, FastAPI, Security from fastapi.security import SecurityScopes from fastapi.testclient import TestClient app = FastAPI() def get_user(required_scopes: SecurityScopes): return "john", required_scopes.scopes def get_user_override(required_scopes: SecurityScopes): return "alice", required_scopes.scopes def get_data(): return [1, 2, 3]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 14 15:54:46 UTC 2020 - 1.4K bytes - Viewed (0)