- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 677 for depende (0.12 sec)
-
docs/em/docs/tutorial/security/get-current-user.md
๐ 5๏ธโฃ๐ ๐ญ ๐ ๐จ ๐ช ๐ฃ โฎ๏ธ Pydantic ๐ท. ๐ฅ **FastAPI** ๐ ๐ซ ๐ค ๐จ โฉ๏ธ ๐ โ๏ธ `Depends`. /// /// check ๐ ๐ ๐ โ๏ธ ๐ โ ๐ฅ โ๏ธ ๐ ๐ (๐ "โ") ๐ ๐ ๐จ `User` ๐ท. ๐ฅ ๐ซ ๐ซ โ๏ธ ๐ด 1๏ธโฃ ๐ ๐ ๐ช ๐จ ๐ ๐ ๐ฝ. /// ## ๐ ๐ท ๐ ๐ช ๐ ๐ค โฎ๏ธ ๐ฉโ๐ป ๐ *โก ๐ ๏ธ ๐ข* & ๐ โฎ๏ธ ๐โโ ๐ ๏ธ **๐ ๐** ๐, โ๏ธ `Depends`. & ๐ ๐ช โ๏ธ ๐ ๐ท โ๏ธ ๐ฝ ๐โโ ๐ (๐ ๐ผ, Pydantic ๐ท `User`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
return None user = User(username=oauth_header) return user @app.post("/login") def login(form_data: OAuth2PasswordRequestFormStrict = Depends()): return form_data @app.get("/users/me") def read_users_me(current_user: Optional[User] = Depends(get_current_user)): if current_user is None: return {"msg": "Create an account first"} return current_user client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 10.8K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py39.py
from typing import Annotated, Union from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: Union[int, None] = Field(default=None, index=True) class Hero(HeroBase, table=True): id: Union[int, None] = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
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>
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.8K bytes - Viewed (0) -
docs_src/websockets/tutorial002_an_py39.py
from typing import Annotated, Union from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.8K bytes - Viewed (0) -
src/packaging/deb/lintian/fess
# Ignore arch dependent warnings, we chose the right libs on start fess binary: arch-independent-package-contains-binary-or-object # Not stripping external libraries fess binary: unstripped-binary-or-object # Ignore arch dependent warnings, we chose the right libs on start fess binary: arch-dependent-file-in-usr-share # Please check our changelog at https://github.com/codelibs/fess
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Dec 10 01:24:02 UTC 2015 - 439 bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/sub-dependencies.md
//// tab | Python 3.8+ ```Python hl_lines="1" async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]): return {"fresh_value": fresh_value} ``` //// //// tab | Python 3.8+ nicht annotiert
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.2K bytes - Viewed (0) -
docs/de/docs/tutorial/security/get-current-user.md
/// ```Python hl_lines="19-22 26-27" {!> ../../docs_src/security/tutorial002.py!} ``` //// ## Den aktuellen Benutzer einfรผgen Und jetzt kรถnnen wir wiederum `Depends` mit unserem `get_current_user` in der *Pfadoperation* verwenden: //// tab | Python 3.10+ ```Python hl_lines="31" {!> ../../docs_src/security/tutorial002_an_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/get-current-user.md
/// tip | "ํ" ์์ฒญ ๋ณธ๋ฌธ๋ Pydantic ๋ชจ๋ธ๋ก ์ ์ธ๋๋ค๋ ๊ฒ์ ๊ธฐ์ตํ ๊ฒ์ ๋๋ค. ์ฌ๊ธฐ์ **FastAPI**๋ `Depends`๋ฅผ ์ฌ์ฉํ๊ณ ์๊ธฐ ๋๋ฌธ์ ํผ๋๋์ง ์์ต๋๋ค. /// /// check | "ํ์ธ" ์ด ์์กด์ฑ ์์คํ ์ด ์ค๊ณ๋ ๋ฐฉ์์ ๋ชจ๋ `User` ๋ชจ๋ธ์ ๋ฐํํ๋ ๋ค์ํ ์์กด์ฑ(๋ค๋ฅธ "์์กด์ ์ธ")์ ๊ฐ์ง ์ ์๋๋ก ํฉ๋๋ค. ํด๋น ํ์ ์ ๋ฐ์ดํฐ๋ฅผ ๋ฐํํ ์ ์๋ ์์กด์ฑ์ด ํ๋๋ง ์๋ ๊ฒ์ผ๋ก ์ ํ๋์ง ์์ต๋๋ค. /// ## ๋ค๋ฅธ ๋ชจ๋ธ ์ด์ *๊ฒฝ๋ก ์๋ ํจ์*์์ ํ์ฌ ์ฌ์ฉ์๋ฅผ ์ง์ ๊ฐ์ ธ์ฌ ์ ์์ผ๋ฉฐ `Depends`๋ฅผ ์ฌ์ฉํ์ฌ **์์กด์ฑ ์ฃผ์ ** ์์ค์์ ๋ณด์ ๋ฉ์ปค๋์ฆ์ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
# ๐ โก ๐ ๏ธ ๐จโ๐จ ๐ผ ๐ ๐ซ ๐ค ๐ช ๐จ ๐ฒ ๐ ๐ ๐ *โก ๐ ๏ธ ๐ข*. โ๏ธ ๐ ๐ซ ๐จ ๐ฒ. โ๏ธ ๐ ๐ช โซ๏ธ ๐ ๏ธ/โ. ๐ ๐ผ, โฉ๏ธ ๐ฃ *โก ๐ ๏ธ ๐ข* ๐ข โฎ๏ธ `Depends`, ๐ ๐ช ๐ฎ `list` `dependencies` *โก ๐ ๏ธ ๐จโ๐จ*. ## ๐ฎ `dependencies` *โก ๐ ๏ธ ๐จโ๐จ* *โก ๐ ๏ธ ๐จโ๐จ* ๐จ ๐ฆ โ `dependencies`. โซ๏ธ ๐ `list` `Depends()`: ```Python hl_lines="17" {!../../docs_src/dependencies/tutorial006.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.2K bytes - Viewed (0)