- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 230 for dependentes (0.14 sec)
-
docs/en/docs/deployment/docker.md
pydantic>=2.7.0,<3.0.0 ``` And you would normally install those package dependencies with `pip`, for example: <div class="termy"> ```console $ pip install -r requirements.txt ---> 100% Successfully installed fastapi pydantic ``` </div> /// info There are other formats and tools to define and install package dependencies. /// ### Create the **FastAPI** Code
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Sep 18 16:09:57 UTC 2024 - 28.5K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b.py
from fastapi.testclient import TestClient from docs_src.dependencies.tutorial008b import app client = TestClient(app) def test_get_no_item(): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found"} def test_owner_error(): response = client.get("/items/plumbus") assert response.status_code == 400, response.text
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 697 bytes - Viewed (0) -
docs/en/docs/reference/websockets.md
It is provided directly by Starlette, but you can import it from `fastapi`: ```python from fastapi import WebSocket ``` /// tip When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`. /// ::: fastapi.WebSocket options: members:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial006_an_py39.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.dependencies.tutorial006_an_py39 import app client = TestClient(app) return client @needs_py39 def test_get_no_headers(client: TestClient): response = client.get("/items/") assert response.status_code == 422, response.text
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 5.3K bytes - Viewed (0) -
tests/test_multipart_installation.py
import pytest from fastapi import FastAPI, File, Form, UploadFile from fastapi.dependencies.utils import ( multipart_incorrect_install_error, multipart_not_installed_error, ) def test_incorrect_multipart_installed_form(monkeypatch): monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False) with pytest.raises(RuntimeError, match=multipart_incorrect_install_error): app = FastAPI() @app.post("/")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 3.7K bytes - Viewed (0) -
docs_src/dependencies/tutorial012_an_py39.py
async def verify_key(x_key: Annotated[str, Header()]): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key app = FastAPI(dependencies=[Depends(verify_token), Depends(verify_key)]) @app.get("/items/") async def read_items(): return [{"item": "Portal Gun"}, {"item": "Plumbus"}] @app.get("/users/") async def read_users():
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 756 bytes - Viewed (0) -
ci/official/containers/linux_arm64/Dockerfile
FROM ubuntu:20.04@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e as builder ################################################################################ # Install devtoolset build dependencies COPY setup.packages.sh setup.packages.sh COPY builder.packages.txt builder.packages.txt RUN /setup.packages.sh /builder.packages.txt RUN update-ca-certificates
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Wed Oct 09 23:55:37 UTC 2024 - 4.4K bytes - Viewed (0) -
.github/workflows/label-approved.yml
with: version: "0.4.15" enable-cache: true cache-dependency-glob: | requirements**.txt pyproject.toml - name: Install GitHub Actions dependencies run: uv pip install -r requirements-github-actions.txt - name: Label Approved run: python ./scripts/label_approved.py env: TOKEN: ${{ secrets.GITHUB_TOKEN }} CONFIG: >
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 13:58:30 UTC 2024 - 1.1K bytes - Viewed (0) -
fastapi/dependencies/models.py
header_params: List[ModelField] = field(default_factory=list) cookie_params: List[ModelField] = field(default_factory=list) body_params: List[ModelField] = field(default_factory=list) dependencies: List["Dependant"] = field(default_factory=list) security_requirements: List[SecurityRequirement] = field(default_factory=list) name: Optional[str] = None call: Optional[Callable[..., Any]] = None
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 20:19:30 UTC 2024 - 1.5K bytes - Viewed (0) -
WORKSPACE
url = "https://github.com/bazelbuild/rules_java/releases/download/5.3.5/rules_java-5.3.5.tar.gz", ) # Initialize the TensorFlow repository and all dependencies. # # The cascade of load() statements and tf_workspace?() calls works around the # restriction that load() statements need to be at the top of .bzl files.
Registered: Tue Oct 29 12:39:09 UTC 2024 - Last Modified: Fri Oct 11 16:49:28 UTC 2024 - 3K bytes - Viewed (0)