Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for requis (0.03 sec)

  1. fastapi/dependencies/utils.py

        if dependant.http_connection_param_name:
            values[dependant.http_connection_param_name] = request
        if dependant.request_param_name and isinstance(request, Request):
            values[dependant.request_param_name] = request
        elif dependant.websocket_param_name and isinstance(request, WebSocket):
            values[dependant.websocket_param_name] = request
        if dependant.background_tasks_param_name:
            if background_tasks is None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  2. fastapi/datastructures.py

        """
        A file uploaded in a request.
    
        Define it as a *path operation function* (or dependency) parameter.
    
        If you are using a regular `def` function, you can use the `upload_file.file`
        attribute to access the raw standard Python file (blocking, not async), useful and
        needed for non-async code.
    
        Read more about it in the
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. tests/utils.py

    import sys
    
    import pytest
    
    needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9+")
    needs_py310 = pytest.mark.skipif(
        sys.version_info < (3, 10), reason="requires python3.10+"
    )
    needs_py_lt_314 = pytest.mark.skipif(
        sys.version_info >= (3, 14), reason="requires python3.13-"
    )
    
    
    def skip_module_if_py_gte_314():
        """Skip entire module on Python 3.14+ at import time."""
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 518 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_python_types/test_tutorial008b.py

    @pytest.fixture(
        name="module",
        params=[
            pytest.param("tutorial008b_py39"),
            pytest.param("tutorial008b_py310", marks=needs_py310),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_process_items(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.process_item("a")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 637 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_request_and_route/test_tutorial002.py

            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.custom_request_and_route.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_endpoint_works(client: TestClient):
        response = client.post("/", json=[1, 2, 3])
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_directly/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_directly.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_path_operation(client: TestClient):
        expected_content = """<?xml version="1.0"?>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. tests/test_sub_callbacks.py

    @invoices_callback_router.post(
        "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived
    )
    def invoice_notification(body: InvoiceEvent):
        pass  # pragma: nocover
    
    
    class Event(BaseModel):
        name: str
        total: float
    
    
    events_callback_router = APIRouter()
    
    
    @events_callback_router.get("{$callback_url}/events/{$request.body.title}")
    def event_callback(event: Event):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_settings/test_tutorial001.py

    from pytest import MonkeyPatch
    
    
    @pytest.fixture(name="app", params=[pytest.param("tutorial001_py39")])
    def get_app(request: pytest.FixtureRequest, monkeypatch: MonkeyPatch):
        monkeypatch.setenv("ADMIN_EMAIL", "******@****.***")
        mod = importlib.import_module(f"docs_src.settings.{request.param}")
        return mod.app
    
    
    def test_settings(app):
        client = TestClient(app)
        response = client.get("/info")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 690 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py

    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_py39",
            "tutorial003_py39",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.first_steps.{request.param}")
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. docs/de/llm-prompt.md

    * «the payload»: «die Payload»
    * «the performance»: NOT «die Performance»
    * «the query»: «die Query»
    * «the recap»: «die Zusammenfassung»
    * «the request» (what the client sends to the server): «der Request»
    * «the request body»: «der Requestbody»
    * «the request bodies» (plural): «die Requestbodys»
    * «the response» (what the server sends back to the client): «die Response»
    * «the return type»: «der Rückgabetyp»
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top