- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 139 for html (0.22 sec)
-
docs/em/docs/advanced/nosql-databases.md
### โ-๐ป ๐ฅ ๐ ๐ซ ๐ฐ โฎ๏ธ `f"userprofile::{username}"`, โซ๏ธ ๐ "<a href="https://docs.python.org/3/glossary.html#term-f-string" class="external-link" target="_blank">โ-๐ป</a>". ๐ ๐ข ๐ ๐ฎ ๐ `{}` โ-๐ป ๐ โ / ๐ ๐ป. ### `dict` ๐ ๐ฅ ๐ ๐ซ ๐ฐ โฎ๏ธ `UserInDB(**result.value)`, <a href="https://docs.python.org/3/glossary.html#term-argument" class="external-link" target="_blank">โซ๏ธ โ๏ธ `dict` "๐"</a>.
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 4.8K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial001.py
from fastapi import FastAPI from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) app = FastAPI(docs_url=None, redoc_url=None) @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url, title=app.title + " - Swagger UI",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 1.1K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
from fastapi.openapi.docs import ( get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) from fastapi.staticfiles import StaticFiles app = FastAPI(docs_url=None, redoc_url=None) app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial003_py39.py
@pytest.fixture(name="html") def get_html(): from docs_src.websockets.tutorial003_py39 import html return html @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client @needs_py39 def test_get(client: TestClient, html: str): response = client.get("/") assert response.text == html @needs_py39
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1.3K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
## Escrevendo Templates Entรฃo vocรช pode escrever um template em `templates/item.html`, por exemplo: ```jinja hl_lines="7" {!../../../docs_src/templates/templates/item.html!} ``` ### Interpolaรงรฃo de Valores no Template No cรณdigo HTML que contรฉm: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/de/docs/how-to/custom-docs-ui-assets.md
Jetzt kรถnnen Sie die *Pfadoperationen* fรผr die benutzerdefinierten Dokumentationen erstellen. Sie kรถnnen die internen Funktionen von FastAPI wiederverwenden, um die HTML-Seiten fรผr die Dokumentation zu erstellen und ihnen die erforderlichen Argumente zu รผbergeben: * `openapi_url`: die URL, unter welcher die HTML-Seite fรผr die Dokumentation das OpenAPI-Schema fรผr Ihre API abrufen kann. Sie kรถnnen hier das Attribut `app.openapi_url` verwenden. * `title`: der Titel Ihrer API.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:17:36 GMT 2024 - 9.2K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002_py310.py
return app @needs_py310 def test_main(app: FastAPI): client = TestClient(app) response = client.get("/") assert response.status_code == 200, response.text assert b"<!DOCTYPE html>" in response.content @needs_py310 def test_websocket_with_cookie(app: FastAPI): client = TestClient(app, cookies={"session": "fakesession"}) with pytest.raises(WebSocketDisconnect):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 3.9K bytes - Viewed (0) -
docs/ko/docs/tutorial/debugging.md
๋ฐ๋ผ์ ๋ค์ ํ ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` ์ ์คํ๋์ง ์์ต๋๋ค. !!! info "์ ๋ณด" ์์ธํ ๋ด์ฉ์ <a href="https://docs.python.org/3/library/__main__.html" class="external-link" target="_blank">๊ณต์ Python ๋ฌธ์</a>๋ฅผ ํ์ธํ์ธ์ ## ๋๋ฒ๊ฑฐ๋ก ์ฝ๋ ์คํ ์ฝ๋์์ ์ง์ Uvicorn ์๋ฒ๋ฅผ ์คํํ๊ณ ์๊ธฐ ๋๋ฌธ์ ๋๋ฒ๊ฑฐ์์ ์ง์ Python ํ๋ก๊ทธ๋จ(FastAPI ์ ํ๋ฆฌ์ผ์ด์ )์ ํธ์ถํ ์ ์์ต๋๋ค. --- ์๋ฅผ ๋ค์ด Visual Studio Code์์ ๋ค์์ ์ํํ ์ ์์ต๋๋ค.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 04:18:08 GMT 2024 - 2.8K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial003.py
from fastapi.testclient import TestClient from docs_src.websockets.tutorial003 import app, html client = TestClient(app) def test_get(): response = client.get("/") assert response.text == html def test_websocket_handle_disconnection(): with client.websocket_connect("/ws/1234") as connection, client.websocket_connect( "/ws/5678" ) as connection_two: connection.send_text("Hello from 1234")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jul 29 09:26:07 GMT 2021 - 872 bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
FastAPI is built on top of **Pydantic**, and I have been showing you how to use Pydantic models to declare requests and responses. But FastAPI also supports using <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> the same way: ```Python hl_lines="1 7-12 19-20" {!../../../docs_src/dataclasses/tutorial001.py!} ```
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)