- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 559 for passo (0.02 seconds)
-
tests/test_read_with_orm_mode.py
@property def full_name(self) -> str: return f"{self.name} {self.lastname}" model_config = ConfigDict(from_attributes=True) class PersonCreate(PersonBase): pass class PersonRead(PersonBase): full_name: str model_config = {"from_attributes": True} app = FastAPI() @app.post("/people/", response_model=PersonRead)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 1.2K bytes - Click Count (0) -
cmd/metacache-stream_test.go
/Isaac.Newton-Opticks.txt.bz2", "src/compress/bzip2/testdata/e.txt.bz2", "src/compress/bzip2/testdata/fail-issue5747.bz2", "src/compress/bzip2/testdata/pass-random1.bin", "src/compress/bzip2/testdata/pass-random1.bz2", "src/compress/bzip2/testdata/pass-random2.bin", "src/compress/bzip2/testdata/pass-random2.bz2", "src/compress/bzip2/testdata/pass-sawtooth.bz2", "src/compress/bzip2/testdata/random.data.bz2", "src/compress/flate/", "src/compress/flate/deflate.go", "src/compress/flate/deflate_test.go",...
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 15K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/GitHubMergeQueueCheckPass.kt
) : BaseGradleBuildType(init = { id("${model.projectId}_GitHubMergeQueueCheckPass") uuid = "${DslContext.uuidPrefix}_${model.projectId}_GitHubMergeQueueCheckPass" name = "GitHub Merge Queue Check Pass" type = Type.COMPOSITE vcs { root(AbsoluteId(VersionedSettingsBranch.fromDslContext().vcsRootId())) checkoutMode = CheckoutMode.ON_AGENT } features {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Oct 14 16:28:05 GMT 2025 - 1.7K bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
{* ../../docs_src/dependencies/tutorial011_an_py39.py hl[12] *} In this case, this `__call__` is what **FastAPI** will use to check for additional parameters and sub-dependencies, and this is what will be called to pass a value to the parameter in your *path operation function* later. ## Parameterize the instance { #parameterize-the-instance }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Nov 13 07:37:15 GMT 2025 - 9.1K bytes - Click Count (0) -
docs/es/docs/deployment/index.md
# Despliegue { #deployment } Desplegar una aplicación **FastAPI** es relativamente fácil. ## Qué Significa Despliegue { #what-does-deployment-mean } **Desplegar** una aplicación significa realizar los pasos necesarios para hacerla **disponible para los usuarios**.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 1.7K bytes - Click Count (0) -
docs_src/dependencies/tutorial008c_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney 😱") @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun":
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 700 bytes - Click Count (0) -
tests/test_openapi_model_description_trim_on_formfeed.py
class MyModel(BaseModel): """ A model with a form feed character in the title. \f Text after form feed character. """ @app.get("/foo") def foo(v: MyModel): # pragma: no cover pass client = TestClient(app) def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200, response.text openapi_schema = response.json()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Jun 17 07:46:27 GMT 2025 - 660 bytes - Click Count (0) -
docs/en/docs/tutorial/extra-models.md
'email': '******@****.***', 'full_name': None, } ``` #### Unpacking a `dict` { #unpacking-a-dict } If we take a `dict` like `user_dict` and pass it to a function (or class) with `**user_dict`, Python will "unpack" it. It will pass the keys and values of the `user_dict` directly as key-value arguments. So, continuing with the `user_dict` from above, writing: ```Python UserInDB(**user_dict) ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.9K bytes - Click Count (0) -
docs_src/openapi_callbacks/tutorial001_py39.py
invoices_callback_router = APIRouter() @invoices_callback_router.post( "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived ) def invoice_notification(body: InvoiceEvent): pass @app.post("/invoices/", callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: Union[HttpUrl, None] = None): """ Create an invoice.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.3K bytes - Click Count (0) -
tests/test_param_in_path_and_dependency.py
app = FastAPI() async def user_exists(user_id: int): return True @app.get("/users/{user_id}", dependencies=[Depends(user_exists)]) async def read_users(user_id: int): pass client = TestClient(app) def test_read_users(): response = client.get("/users/42") assert response.status_code == 200, response.text def test_openapi_schema():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.1K bytes - Click Count (0)