- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for fixed (0.18 sec)
-
docs_src/dependencies/tutorial011_an_py39.py
class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/") async def read_query_check(fixed_content_included: Annotated[bool, Depends(checker)]):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 544 bytes - Viewed (0) -
docs_src/dependencies/tutorial011.py
app = FastAPI() class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/") async def read_query_check(fixed_content_included: bool = Depends(checker)):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 504 bytes - Viewed (0) -
fastapi/security/oauth2.py
*, grant_type: Annotated[ Union[str, None], Form(pattern="password"), Doc( """ The OAuth2 spec says it is required and MUST be the fixed string "password". Nevertheless, this dependency class is permissive and allows not passing it. If you want to enforce it, use instead the `OAuth2PasswordRequestFormStrict` dependency.
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
docs_src/dependencies/tutorial011_an.py
class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/") async def read_query_check(fixed_content_included: Annotated[bool, Depends(checker)]):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 554 bytes - Viewed (0) -
tests/test_response_model_include_exclude.py
} @app.get( "/mixed", response_model=Model3, response_model_include={"ref2", "name"}, response_model_exclude={"ref2": {"baz"}}, ) def mixed(): return Model3( name="mixed model3 name", age=3, ref2=Model2( ref=Model1(foo="mixed model foo", bar="mixed model bar"), baz="mixed model2 baz", ), ) @app.get(
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Jul 19 19:14:58 GMT 2021 - 4K bytes - Viewed (0) -
fastapi/applications.py
different domains and you want to use the same Swagger UI in the browser to interact with each of them (instead of having multiple browser tabs open). Or if you want to leave fixed the possible URLs. If the servers `list` is not provided, or is an empty `list`, the default value would be a `dict` with a `url` value of `/`.
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0)