- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 577 for name (0.23 sec)
-
fastapi/security/api_key.py
**{"in": APIKeyIn.query}, # type: ignore[arg-type] name=name, description=description, ) self.scheme_name = scheme_name or self.__class__.__name__ self.auto_error = auto_error async def __call__(self, request: Request) -> Optional[str]: api_key = request.query_params.get(self.model.name) if not api_key: if self.auto_error:
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 9.2K bytes - Viewed (0) -
tests/test_jsonable_encoder.py
"name": "Firulais", "owner": {"name": "Foo"}, } def test_encode_class(): person = Person(name="Foo") pet = Pet(owner=person, name="Firulais") assert jsonable_encoder(pet) == {"name": "Firulais", "owner": {"name": "Foo"}} assert jsonable_encoder(pet, include={"name"}) == {"name": "Firulais"} assert jsonable_encoder(pet, exclude={"owner"}) == {"name": "Firulais"}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Aug 02 15:28:34 GMT 2023 - 8.8K bytes - Viewed (0) -
fastapi/dependencies/utils.py
return True elif lenient_issubclass(type_annotation, Response): dependant.response_param_name = param_name return True elif lenient_issubclass(type_annotation, StarletteBackgroundTasks): dependant.background_tasks_param_name = param_name return True elif lenient_issubclass(type_annotation, SecurityScopes): dependant.security_scopes_param_name = param_name
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Mon Dec 25 17:57:35 GMT 2023 - 29.5K bytes - Viewed (0) -
docs_src/path_params/tutorial005.py
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Aug 26 13:26:03 GMT 2022 - 546 bytes - Viewed (0) -
docs_src/dataclasses/tutorial003.py
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 1.4K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial004_py310.py
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial006_py310.py
from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.response_model.tutorial006_py310 import app client = TestClient(app) return client @needs_py310 def test_read_item_name(client: TestClient): response = client.get("/items/bar/name") assert response.status_code == 200, response.text assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 6.2K bytes - Viewed (0) -
fastapi/openapi/utils.py
security_requirement.security_scheme.model, by_alias=True, exclude_none=True, ) security_name = security_requirement.security_scheme.scheme_name security_definitions[security_name] = security_definition operation_security.append({security_name: security_requirement.scopes}) return security_definitions, operation_security def get_openapi_operation_parameters( *,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 21.8K bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an.py
app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size return item
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 734 bytes - Viewed (0) -
docs_src/response_model/tutorial006_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float = 10.5 items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2}, "baz": { "name": "Baz", "description": "There goes my baz", "price": 50.2,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 816 bytes - Viewed (0)