- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 545 for convert (0.2 sec)
-
docs_src/schema_extra_example/tutorial005_an_py39.py
"price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": { "name": "Bar", "price": "35.4",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 1.5K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial005_py310.py
"price": 35.4, "tax": 3.2, }, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": { "name": "Bar", "price": "35.4",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 1.3K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005.py
}, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {"name": "Bar", "price": "35.4"},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_py310.py
}, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {"name": "Bar", "price": "35.4"},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.8K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
* Convert the copied model to something that can be stored in your DB (for example, using the `jsonable_encoder`). * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`. * Save the data to your DB. * Return the updated model.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py310.py
}, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {"name": "Bar", "price": "35.4"},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.8K bytes - Viewed (0) -
docs/de/docs/tutorial/header-params.md
Wenn Sie aus irgendeinem Grund das automatische Konvertieren von Unterstrichen zu Bindestrichen abschalten möchten, setzen Sie den Parameter `convert_underscores` auf `False`. === "Python 3.10+" ```Python hl_lines="10" {!> ../../../docs_src/header_params/tutorial002_an_py310.py!} ``` === "Python 3.9+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:00:50 GMT 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/advanced/response-headers.md
{!../../../docs_src/response_headers/tutorial002.py!} ``` And then you can return any object you need, as you normally would (a `dict`, a database model, etc). And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
You couldn't get this kind of editor support if you were working directly with `dict` instead of Pydantic models. But you don't have to worry about them either, incoming dicts are converted automatically and your output is converted automatically to JSON too. ## Bodies of arbitrary `dict`s You can also declare a body as a `dict` with keys of some type and values of some other type.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py
}, }, "converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {"name": "Bar", "price": "35.4"},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.8K bytes - Viewed (0)