- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 550 for Context (0.28 sec)
-
scripts/playwright/separate_openapi_schemas/image02.py
import subprocess from playwright.sync_api import Playwright, sync_playwright def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs") page.get_by_text("GET/items/Read Items").click() page.get_by_role("button", name="Try it out").click()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Aug 25 19:10:22 GMT 2023 - 873 bytes - Viewed (0) -
docs_src/security/tutorial004_an_py310.py
class UserInDB(User): hashed_password: str pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") app = FastAPI() def verify_password(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password) def get_password_hash(password): return pwd_context.hash(password) def get_user(db, username: str):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4.1K bytes - Viewed (0) -
docs_src/security/tutorial005_an.py
class UserInDB(User): hashed_password: str pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") oauth2_scheme = OAuth2PasswordBearer( tokenUrl="token", scopes={"me": "Read information about the current user.", "items": "Read items."}, ) app = FastAPI() def verify_password(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
* Declare um parรขmetro `Request` no *path operation* que retornarรก um template. * Use o `template` que vocรช criou para renderizar e retornar uma `TemplateResponse`, passe o nome do template, o request object, e um "context" dict com pares chave-valor a serem usados dentro do template do Jinja2. ```Python hl_lines="4 11 15-18" {!../../../docs_src/templates/tutorial001.py!} ``` !!! note
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
pyproject.toml
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
## Hash and verify the passwords Import the tools we need from `passlib`. Create a PassLib "context". This is what will be used to hash and verify passwords. !!! tip The PassLib context also has functionality to use different hashing algorithms, including deprecated old ones only to allow verifying them, etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/dependencies-with-yield.md
# ๐ โฎ๏ธ ๐พ FastAPI ๐โ๐ฆบ ๐ ๐ <abbr title='sometimes also called "exit", "cleanup", "teardown", "close", "context managers", ...'>โ ๐ โฎ๏ธ ๐</abbr>. ๐, โ๏ธ `yield` โฉ๏ธ `return`, & โ โ ๐ โฎ๏ธ. !!! tip โ ๐ญ โ๏ธ `yield` 1๏ธโฃ ๐ ๐ฐ. !!! note "๐ก โน" ๐ ๐ข ๐ โ โ๏ธ โฎ๏ธ: * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a> โ๏ธ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
tests/test_dependency_contextmanager.py
@app.get("/context_b") async def get_context_b(state: dict = Depends(context_b)): return state @app.get("/context_b_raise") async def get_context_b_raise(state: dict = Depends(context_b)): assert state["context_b"] == "started b" assert state["context_a"] == "started a" raise OtherDependencyError() @app.get("/context_b_bg")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 11.6K bytes - Viewed (0) -
.github/workflows/smokeshow.yml
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 19 01:33:28 GMT 2024 - 1.1K bytes - Viewed (0) -
.github/workflows/label-approved.yml
workflow_dispatch: jobs: label-approved: if: github.repository_owner == 'tiangolo' runs-on: ubuntu-latest steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: docker://tiangolo/label-approved:0.0.4 with: token: ${{ secrets.FASTAPI_LABEL_APPROVED }} config: > {
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 22 18:43:10 GMT 2024 - 610 bytes - Viewed (0)