- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 871 for tutorial001 (0.26 sec)
-
docs/em/docs/advanced/templates.md
* ๐ฃ `Request` ๐ข *โก ๐ ๏ธ* ๐ ๐ ๐จ ๐. * โ๏ธ `templates` ๐ โ โ & ๐จ `TemplateResponse`, ๐ถโโ๏ธ `request` 1๏ธโฃ ๐-๐ฒ ๐ซ Jinja2๏ธโฃ "๐". ```Python hl_lines="4 11 15-18" {!../../docs_src/templates/tutorial001.py!} ``` /// note ๐ ๐ ๐ โ๏ธ ๐ถโโ๏ธ `request` ๐ ๐-๐ฒ ๐ซ ๐ Jinja2๏ธโฃ. , ๐ โ๏ธ ๐ฃ โซ๏ธ ๐ *โก ๐ ๏ธ*. /// /// tip ๐ฃ `response_class=HTMLResponse` ๐ฉบ ๐ ๐ ๐ช ๐ญ ๐ ๐จ ๐ ๐ธ. ///
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/em/docs/advanced/using-request-directly.md
โ๏ธ ๐ค ๐ฏ ๐ผ ๐โ โซ๏ธ โ ๐ค `Request` ๐. ## โ๏ธ `Request` ๐ ๐ โก๏ธ ๐ ๐ ๐ ๐ค ๐ฉโ๐ป ๐ข ๐ข/๐ฆ ๐ ๐ *โก ๐ ๏ธ ๐ข*. ๐ ๐ ๐ช ๐ ๐จ ๐. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` ๐ฃ *โก ๐ ๏ธ ๐ข* ๐ข โฎ๏ธ ๐ โ `Request` **FastAPI** ๐ ๐ญ ๐ถโโ๏ธ `Request` ๐ ๐ข. /// tip ๐ ๐ ๐ ๐ผ, ๐ฅ ๐ฃ โก ๐ข โคด๏ธ ๐จ ๐ข. , โก ๐ข ๐ โ, โ, ๐ โ ๐ & โ โฎ๏ธ ๐.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/em/docs/tutorial/debugging.md
# ๐ ๏ธ ๐ ๐ช ๐ ๐น ๐ ๐จโ๐จ, ๐ผ โฎ๏ธ ๐ ๐ ๐ โ๏ธ ๐. ## ๐ค `uvicorn` ๐ FastAPI ๐ธ, ๐ & ๐ `uvicorn` ๐: ```Python hl_lines="1 15" {!../../docs_src/debugging/tutorial001.py!} ``` ### ๐ `__name__ == "__main__"` ๐ ๐ฏ `__name__ == "__main__"` โ๏ธ ๐ ๐ ๐ ๏ธ ๐โ ๐ ๐ ๐ค โฎ๏ธ: <div class="termy"> ```console $ python myapp.py ``` </div> โ๏ธ ๐ซ ๐ค ๐โ โ1๏ธโฃ ๐ ๐ โซ๏ธ, ๐: ```Python
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/encoder.md
//// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// ๅจ่ฟไธชไพๅญไธญ๏ผๅฎๅฐPydanticๆจกๅ่ฝฌๆขไธบ`dict`๏ผๅนถๅฐ`datetime`่ฝฌๆขไธบ`str`ใ ่ฐ็จๅฎ็็ปๆๅๅฐฑๅฏไปฅไฝฟ็จPythonๆ ๅ็ผ็ ไธญ็<a href="https://docs.python.org/3/library/json.html#json.dumps" class="external-link" target="_blank">`json.dumps()`</a>ใ
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.7K bytes - Viewed (0) -
docs/pt/docs/advanced/additional-responses.md
Por exemplo, para declarar um outro retorno com o status code `404` e um modelo do Pydantic chamado `Message`, vocรช pode escrever: ```Python hl_lines="18 22" {!../../docs_src/additional_responses/tutorial001.py!} ``` /// note | "Nota" Lembre-se que vocรช deve retornar o `JSONResponse` diretamente. /// /// info | "Informaรงรฃo" A chave `model` nรฃo รฉ parte do OpenAPI.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0) -
docs/en/docs/advanced/response-directly.md
For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response: ```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "Technical Details" You could also use `from starlette.responses import JSONResponse`.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3K bytes - Viewed (0) -
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py
@pytest.fixture(scope="module") def client(): static_dir: Path = Path(os.getcwd()) / "static" print(static_dir) static_dir.mkdir(exist_ok=True) from docs_src.custom_docs_ui.tutorial001 import app with TestClient(app) as client: yield client static_dir.rmdir() def test_swagger_ui_html(client: TestClient): response = client.get("/docs")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu May 23 22:59:02 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/cookie-param-models.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip | Dica Prefira utilizar a versรฃo `Annotated` se possรญvel. /// ```Python hl_lines="9-12 16" {!> ../../docs_src/cookie_param_models/tutorial001.py!} ``` //// O **FastAPI** irรก **extrair** os dados para **cada campo** dos **cookies** recebidos na requisiรงรฃo e lhe fornecer o modelo Pydantic que vocรช definiu. ## Verifique os Documentos
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Mon Oct 07 20:18:07 UTC 2024 - 4.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/handling-errors.md
**"404 Not Found"** ใฎใจใฉใผ๏ผใใใณใธใงใผใฏ๏ผใ่ฆใใฆใใพใใ๏ผ ## `HTTPException`ใฎไฝฟ็จ HTTPใฌในใใณในใใจใฉใผใงใฏใฉใคใขใณใใซ่ฟใใซใฏใ`HTTPException`ใไฝฟ็จใใพใใ ### `HTTPException`ใฎใคใณใใผใ ```Python hl_lines="1" {!../../docs_src/handling_errors/tutorial001.py!} ``` ### ใณใผใๅ ใงใฎ`HTTPException`ใฎ็บ็ `HTTPException`ใฏ้ๅธธใฎPythonใฎไพๅคใงใใใAPIใซ้ข้ฃใใใใผใฟใ่ฟฝๅ ใใใใฎใงใใ Pythonใฎไพๅคใชใฎใงใ`return`ใงใฏใชใใ`raise`ใงใใ
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/index.md
ใใใฆใใใใใฎๅคใๅซใ`dict`ใ่ฟใใพใใ ### `Depends`ใฎใคใณใใผใ ```Python hl_lines="3" {!../../docs_src/dependencies/tutorial001.py!} ``` ### "dependant"ใงใฎไพๅญ้ขไฟใฎๅฎฃ่จ *path operation้ขๆฐ*ใฎใใฉใกใผใฟใซ`Body`ใ`Query`ใชใฉใไฝฟ็จใใใฎใจๅใใใใซใๆฐใใใใฉใกใผใฟใซ`Depends`ใไฝฟ็จใใใใจใใงใใพใ: ```Python hl_lines="13 18" {!../../docs_src/dependencies/tutorial001.py!} ``` ้ขๆฐใฎใใฉใกใผใฟใซ`Depends`ใไฝฟ็จใใใฎใฏ`Body`ใ`Query`ใชใฉใจๅใใงใใใ`Depends`ใฎๅไฝใฏๅฐใ็ฐใชใใพใใ `Depends`ใฏ๏ผใคใฎใใฉใกใผใฟใใไธใใใใพใใใ
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.7K bytes - Viewed (0)