- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,962 for fastapi (0.08 sec)
-
docs_src/encoder/tutorial001.py
from datetime import datetime from typing import Union from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: Union[str, None] = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 461 bytes - Viewed (0) -
docs/em/docs/deployment/docker.md
---> 100% Successfully installed fastapi pydantic uvicorn ``` </div> /// info ๐ค ๐ ๐ & ๐งฐ ๐ฌ & โ ๐ฆ ๐. ๐ค ๐ ๐ฆ ๐ ๐ผ โ๏ธ ๐ถ โช ๐ ๐. ๐ถ /// ### โ **FastAPI** ๐ * โ `app` ๐ & โ โซ๏ธ. * โ ๐ ๐ `__init__.py`. * โ `main.py` ๐ โฎ๏ธ: ```Python from typing import Union from fastapi import FastAPI app = FastAPI()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 27.9K bytes - Viewed (0) -
docs_src/security/tutorial007_an.py
import secrets from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import HTTPBasic, HTTPBasicCredentials from typing_extensions import Annotated app = FastAPI() security = HTTPBasic() def get_current_username( credentials: Annotated[HTTPBasicCredentials, Depends(security)], ): current_username_bytes = credentials.username.encode("utf8") correct_username_bytes = b"stanleyjobson"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 1.2K bytes - Viewed (0) -
tests/test_no_swagger_ui_redirect.py
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI(swagger_ui_oauth2_redirect_url=None) @app.get("/items/") async def read_items(): return {"id": "foo"} client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert response.headers["content-type"] == "text/html; charset=utf-8"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 786 bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
๐ฅ โ ๐ข ๐จ ๐ `BaseUser`, โ๏ธ ๐ฅ ๐ค ๐ฌ `UserIn` ๐. ๐จโ๐จ, โ, & ๐ ๐งฐ ๐ ๐ซ ๐ญ ๐ ๐ โฉ๏ธ, โจ โ, `UserIn` ๐ฟ `BaseUser`, โ โ โซ๏ธ *โ* ๐ ๐โ โซ๏ธโ โ ๐ณ ๐ `BaseUser`. ### FastAPI ๐ฝ ๐ฅ ๐, FastAPI, โซ๏ธ ๐ ๐ ๐จ ๐ & โ ๐ญ ๐ โซ๏ธโ ๐ ๐จ ๐ **๐ด** ๐ ๐ ๐ฃ ๐. FastAPI ๐จ ๐ ๐ ๐ โฎ๏ธ Pydantic โ ๐ญ ๐ ๐ ๐ ๐ซ ๐ ๐งฌ ๐ซ โ๏ธ ๐จ ๐ฝ ๐ฅ, โช ๐ ๐ช ๐ ๐ ๐ฌ ๐ ๐ ๐ฝ ๐ โซ๏ธโ ๐ ๐. ๐ ๐, ๐ ๐ช ๐ค ๐ ๐ฏโโ๏ธ ๐: ๐ โ โฎ๏ธ **๐ญ ๐โ๐ฆบ** & **๐ฝ ๐ฅ**.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.8K bytes - Viewed (0) -
docs/pl/docs/tutorial/index.md
Uลผycie w Twoim edytorze jest tym, co pokazuje prawdziwe korzyลci z FastAPI, pozwala zobaczyฤ jak maลo kodu musisz napisaฤ, wszystkie funkcje, takie jak kontrola typรณw, <abbr title="auto-complete, autocompletion, IntelliSense">automatyczne uzupeลnianie</abbr>, itd. --- ## Instalacja FastAPI Jako pierwszy krok zainstaluj FastAPI. Na potrzeby samouczka moลผesz zainstalowaฤ rรณwnieลผ wszystkie opcjonalne biblioteki:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 2.8K bytes - Viewed (0) -
tests/test_response_change_status_code.py
from fastapi import Depends, FastAPI, Response from fastapi.testclient import TestClient app = FastAPI() async def response_status_setter(response: Response): response.status_code = 201 async def parent_dep(result=Depends(response_status_setter)): return result @app.get("/", dependencies=[Depends(parent_dep)]) async def get_main(): return {"msg": "Hello World"} client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 589 bytes - Viewed (0) -
docs/em/docs/tutorial/security/index.md
/// tip ๐ ๏ธ ๐ ๐ค/โ ๐โ๐ฆบ ๐ ๐บ๐ธ๐, ๐ฑ๐, ๐ฑ๐, ๐, โ๏ธ. ๐ช & ๐ถ โฉ. ๐ ๐ โ ๐ ๐ค/โ ๐โ๐ฆบ ๐ ๐, โ๏ธ **FastAPI** ๐ค ๐ ๐งฐ โซ๏ธ ๐ช, โช ๐จ ๐๏ธ ๐โโ ๐. /// ## **FastAPI** ๐ FastAPI ๐ ๐ ๐งฐ ๐ ๐ ๐โโ โ `fastapi.security` ๐น ๐ ๐ โ๏ธ ๐ ๐โโ ๐ ๏ธ. โญ ๐ ๐ ๐ ๐ โ ๐ฎ ๐โโ ๐ ๐ ๏ธ โ๏ธ ๐ ๐งฐ ๐ **FastAPI**.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 3.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
ะะฐะฟัะธะผะตั, ัะฐััะธััั ะฟัะตะดัะดัััั ะผะพะดะตะปั, ะฒั ะผะพะถะตัะต ัะตัะธัั, ััะพ ะฒะฐะผ ะฝัะถะตะฝ ะตัะต ะพะดะธะฝ ะบะปัั `importance` ะฒ ัะพะผ ะถะต ัะตะปะต ะทะฐะฟัะพัะฐ, ะฟะพะผะธะผะพ ะฟะฐัะฐะผะตััะพะฒ `item` ะธ `user`. ะัะปะธ ะฒั ะพะฑััะฒะธัะต ะตะณะพ ะฑะตะท ัะบะฐะทะฐะฝะธั, ะบะฐะบะพะน ะธะผะตะฝะฝะพ ะพะฑัะตะบั (Path, Query, Body ะธ .ั.ะฟ.) ะพะถะธะดะฐะตัะต, ัะพ, ะฟะพัะบะพะปัะบั ััะพ ัะฒะปัะตััั ะฟัะพัััะผ ัะธะฟะพะผ ะดะฐะฝะฝัั , **FastAPI** ะฑัะดะตั ััะธัะฐัั, ััะพ ััะพ query-ะฟะฐัะฐะผะตัั.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.6K bytes - Viewed (0) -
tests/test_forms_from_non_typing_sequences.py
from fastapi import FastAPI, Form from fastapi.testclient import TestClient app = FastAPI() @app.post("/form/python-list") def post_form_param_list(items: list = Form()): return items @app.post("/form/python-set") def post_form_param_set(items: set = Form()): return items @app.post("/form/python-tuple") def post_form_param_tuple(items: tuple = Form()): return items client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 1.2K bytes - Viewed (0)