- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for Fontaine (1.18 sec)
-
docs/en/docs/tutorial/response-model.md
=== "Python 3.8+" ```Python hl_lines="9 11 16" {!> ../../../docs_src/response_model/tutorial003.py!} ``` Here, even though our *path operation function* is returning the same input user that contains the password: === "Python 3.10+" ```Python hl_lines="24" {!> ../../../docs_src/response_model/tutorial003_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="24"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
5. You can use other standard type annotations with dataclasses as the request body. In this case, it's a list of `Item` dataclasses. 6. Here we are returning a dictionary that contains `items` which is a list of dataclasses. FastAPI is still capable of <abbr title="converting the data to a format that can be transmitted">serializing</abbr> the data to JSON.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/en/docs/deployment/manually.md
``` </div> That would work for most of the cases. π You could use that command for example to start your **FastAPI** app in a container, in a server, etc. ## ASGI Servers Let's go a little deeper into the details.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/en/docs/deployment/concepts.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 18K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
For example, in `app/main.py` you could have a line like: ``` from app.routers import items ``` * The `app` directory contains everything. And it has an empty file `app/__init__.py`, so it is a "Python package" (a collection of "Python modules"): `app`. * It contains an `app/main.py` file. As it is inside a Python package (a directory with a file `__init__.py`), it is a "module" of that package: `app.main`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.6K bytes - Viewed (0) -
docs/en/docs/python-types.md
For example, let's define a variable to be a `list` of `str`. === "Python 3.9+" Declare the variable, with the same colon (`:`) syntax. As the type, put `list`. As the list is a type that contains some internal types, you put them in square brackets: ```Python hl_lines="1" {!> ../../../docs_src/python_types/tutorial006_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
docs/en/docs/how-to/async-sql-encode-databases.md
`note.dict()` returns a `dict` with its data, something like: ```Python { "text": "Some note", "completed": False, } ``` but it doesn't have the `id` field. So we create a new `dict`, that contains the key-value pairs from `note.dict()` with: ```Python {**note.dict()} ``` `**note.dict()` "unpacks" the key value pairs directly, so, `{**note.dict()}` would be, more or less, a copy of `note.dict()`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.3K bytes - Viewed (0) -
pyproject.toml
"UP", # pyupgrade ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults "C901", # too complex "W191", # indentation contains tabs ] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] "docs_src/dependencies/tutorial007.py" = ["F821"] "docs_src/dependencies/tutorial008.py" = ["F821"]
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/ko/docs/deployment/docker.md
!!! info "μ 보" λ§μ½ μ¬λ¬λΆμ΄ μΏ λ²λ€ν°μ€λ₯Ό μ¬μ©νκ³ μλ€λ©΄, μλ§λ μ΄λ <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" class="external-link" target="_blank">Init Container</a>μΌ κ²μ λλ€. λ§μ½ μ¬λ¬λΆμ μ΄μ© μ¬λ‘μμ μ΄μ λ¨κ³λ€μ **λ³λ ¬μ μΌλ‘ μ¬λ¬λ²** μννλλ°μ λ¬Έμ κ° μλ€λ©΄ (μλ₯Ό λ€μ΄ λ°μ΄ν°λ² μ΄μ€ μ΄μ μ μ€ννμ§ μκ³ λ°μ΄ν°λ² μ΄μ€κ° μ€λΉλμλμ§ νμΈλ§ νλ κ²½μ°), λ©μΈ νλ‘μΈμ€λ₯Ό μμνκΈ° μ μ μ΄ λ¨κ³λ€μ κ° μ»¨ν μ΄λμ λ£μ μ μμ΅λλ€. ### λ¨μΌ 컨ν μ΄λ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 42.6K bytes - Viewed (0) -
docs/en/docs/release-notes.md
the `response_model` (e.g. you return a `UserInDB` that inherits from `User` but contains extra fields, like `hashed_password`, and `User` is used in the `response_model`), it would still pass the validation (because `UserInDB` is a subclass of `User`) and the object would be returned as-is, including the `hashed_password`. To fix this, the declared `response_model` is cloned, if it is a Pydantic model class (or contains Pydantic model classes in it, e.g. in a `List[Item]`), the Pydantic model class(es)...
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1)