- Sort Score
- Result 10 results
- Languages All
Results 1221 - 1230 of 1,962 for fastapi (0.07 sec)
-
docs/em/docs/advanced/templates.md
# ๐ ๐ ๐ช โ๏ธ ๐ ๐ ๐ ๐ ๐ โฎ๏ธ **FastAPI**. โ โ Jinja2๏ธโฃ, ๐ 1๏ธโฃ โ๏ธ ๐บ & ๐ ๐งฐ. ๐ค ๐ ๐ โซ๏ธ ๐ช ๐ ๐ ๐ช โ๏ธ ๐ ๐ **FastAPI** ๐ธ (๐ ๐). ## โ ๐ โ `jinja2`: <div class="termy"> ```console $ pip install jinja2 ---> 100% ``` </div> ## โ๏ธ `Jinja2Templates` * ๐ `Jinja2Templates`. * โ `templates` ๐ ๐ ๐ ๐ช ๐ค-โ๏ธ โช. * ๐ฃ `Request` ๐ข *โก ๐ ๏ธ* ๐ ๐ ๐จ ๐.
Registered: Sun Nov 03 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
# โ๏ธ ๐จ ๐ ๐ ๐, ๐ โ๏ธ ๐ฃ ๐ ๐จ ๐ ๐ ๐ช โฎ๏ธ ๐ซ ๐. โ ๐ โช๏ธโก๏ธ: * โก ๐ข. * ๐. * ๐ช. * โ๏ธ. & ๐จ, **FastAPI** โ ๐ ๐ฝ, ๐ญ โซ๏ธ & ๐ญ ๐งพ ๐ ๐ ๏ธ ๐. โ๏ธ ๐ค โ ๐โ ๐ ๐ช ๐ช ๐ `Request` ๐ ๐. ## โน ๐ `Request` ๐ **FastAPI** ๐ค **๐** ๐, โฎ๏ธ ๐งฝ ๐ ๐งฐ ๐ ๐, ๐ ๐ช โ๏ธ ๐ <a href="https://www.starlette.io/requests/" class="external-link" target="_blank">`Request`</a> ๐ ๐ ๐โ ๐ ๐ช.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
tests/test_response_model_sub_types.py
from typing import List from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel class Model(BaseModel): name: str app = FastAPI() @app.get("/valid1", responses={"500": {"model": int}}) def valid1(): pass @app.get("/valid2", responses={"500": {"model": List[int]}}) def valid2(): pass @app.get("/valid3", responses={"500": {"model": Model}})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 5.3K bytes - Viewed (0) -
docs_src/metadata/tutorial003.py
from fastapi import FastAPI app = FastAPI(docs_url="/documentation", redoc_url=None) @app.get("/items/") async def read_items():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 02 04:55:20 UTC 2020 - 161 bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.body_nested_models.tutorial009 import app client = TestClient(app) return client def test_post_body(client: TestClient): data = {"2": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 4.2K bytes - Viewed (0) -
tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.openapi_webhooks.tutorial001 import app client = TestClient(app) def test_get(): response = client.get("/users/") assert response.status_code == 200, response.text assert response.json() == ["Rick", "Morty"] def test_dummy_webhook(): # Just for coverage app.webhooks.routes[0].endpoint({}) def test_openapi_schema():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Oct 20 09:00:44 UTC 2023 - 4.4K bytes - Viewed (0) -
scripts/lint.sh
#!/usr/bin/env bash set -e set -x mypy fastapi ruff check fastapi tests docs_src scripts
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Apr 30 00:03:14 UTC 2024 - 125 bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an.py
from dirty_equals import IsDict from fastapi.testclient import TestClient from docs_src.query_params_str_validations.tutorial011_an import app client = TestClient(app) def test_multi_query_values(): url = "/items/?q=foo&q=bar" response = client.get(url) assert response.status_code == 200, response.text assert response.json() == {"q": ["foo", "bar"]} def test_query_no_values(): url = "/items/"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.9K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial006_an.py
from base64 import b64encode from fastapi.testclient import TestClient from docs_src.security.tutorial006_an import app client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} def test_security_http_basic_no_credentials():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.3K bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial002.py
from fastapi.testclient import TestClient from docs_src.handling_errors.tutorial002 import app client = TestClient(app) def test_get_item_header(): response = client.get("/items-header/foo") assert response.status_code == 200, response.text assert response.json() == {"item": "The Foo Wrestlers"} def test_get_item_not_found_header(): response = client.get("/items-header/bar")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.3K bytes - Viewed (0)