Search Options

Results per page
Sort
Preferred Languages
Advance

Results 731 - 740 of 1,977 for Fastapi (0.1 sec)

  1. docs_src/security/tutorial006_an.py

    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: Annotated[HTTPBasicCredentials, Depends(security)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 371 bytes
    - Viewed (0)
  2. docs_src/security/tutorial006_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: Annotated[HTTPBasicCredentials, Depends(security)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 361 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial002_an_py39.py

    import pytest
    from dirty_equals import IsDict
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_files.tutorial002_an_py39 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    @needs_py39
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. docs_src/app_testing/app_b_an_py310/main.py

    from typing import Annotated
    
    from fastapi import FastAPI, Header, HTTPException
    from pydantic import BaseModel
    
    fake_secret_token = "coneofsilence"
    
    fake_db = {
        "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"},
        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: str | None = None
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/debugging.md

    ///
    
    ## ๐Ÿƒ ๐Ÿ‘† ๐Ÿ“Ÿ โฎ๏ธ ๐Ÿ‘† ๐Ÿ•น
    
    โ†ฉ๏ธ ๐Ÿ‘† ๐Ÿƒ Uvicorn ๐Ÿ’ฝ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ‘† ๐Ÿ“Ÿ, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿค™ ๐Ÿ‘† ๐Ÿ ๐Ÿ“‹ (๐Ÿ‘† FastAPI ๐Ÿˆธ) ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ•น.
    
    ---
    
    ๐Ÿ–ผ, ๐ŸŽ™ ๐ŸŽ™ ๐Ÿ“Ÿ, ๐Ÿ‘† ๐Ÿ’ช:
    
    * ๐Ÿšถ "โ„น" ๐ŸŽ›.
    * "๐Ÿšฎ ๐Ÿ“ณ...".
    * ๐Ÿ–Š "๐Ÿ"
    * ๐Ÿƒ ๐Ÿ•น โฎ๏ธ ๐ŸŽ› "`Python: Current File (Integrated Terminal)`".
    
    โšซ๏ธ ๐Ÿ”œ โคด๏ธ โ–ถ๏ธ ๐Ÿ’ฝ โฎ๏ธ ๐Ÿ‘† **FastAPI** ๐Ÿ“Ÿ, โ›”๏ธ ๐Ÿ‘† 0๏ธโƒฃ, โ™’๏ธ.
    
    ๐Ÿ“ฅ โ” โšซ๏ธ ๐Ÿ’ช ๐Ÿ‘€:
    
    <img src="/img/tutorial/debugging/image01.png">
    
    ---
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. docs/ja/docs/alternatives.md

    /// check | "**FastAPI**ใธไธŽใˆใŸใ‚คใƒณใ‚นใƒ”ใƒฌใƒผใ‚ทใƒงใƒณ"
    
    ใƒžใ‚คใ‚ฏใƒญใƒ•ใƒฌใƒผใƒ ใƒฏใƒผใ‚ฏใงใ‚ใ‚‹ใ“ใจใ€‚ใƒ„ใƒผใƒซใ‚„ใƒ‘ใƒผใƒ„ใ‚’็›ฎ็š„ใซๅˆใ†ใ‚ˆใ†ใซ็ฐกๅ˜ใซ็ต„ใฟๅˆใ‚ใ›ใ‚‰ใ‚Œใ‚‹็‚นใ€‚
    
    ใ‚ทใƒณใƒ—ใƒซใง็ฐกๅ˜ใชใƒซใƒผใƒ†ใ‚ฃใƒณใ‚ฐใฎไป•็ต„ใฟใ‚’ๆŒใฃใฆใ„ใ‚‹็‚นใ€‚
    
    ///
    
    ### <a href="http://docs.python-requests.org" class="external-link" target="_blank">Requests</a>
    
    **FastAPI**ใฏๅฎŸ้š›ใซใฏ**Requests**ใฎไปฃๆ›ฟใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚ใใ‚Œใ‚‰ใฎใ‚นใ‚ณใƒผใƒ—ใฏๅคงใใ็•ฐใชใ‚Šใพใ™ใ€‚
    
    ๅฎŸ้š›ใซใฏFastAPIใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใฎ*ๅ†…้ƒจ*ใงRequestsใ‚’ไฝฟ็”จใ™ใ‚‹ใฎใŒไธ€่ˆฌ็š„ใงใ™ใ€‚
    
    ใ—ใ‹ใ—ใ€FastAPIใฏRequestsใ‹ใ‚‰ใ‹ใชใ‚Šใฎใ‚คใƒณใ‚นใƒ”ใƒฌใƒผใ‚ทใƒงใƒณใ‚’ๅพ—ใฆใ„ใพใ™ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/handling-errors.md

        "size": "XL"
      }
    }
    ```
    
    #### FastAPIใฎ`HTTPException`ใจStarletteใฎ`HTTPException`
    
    **FastAPI**ใฏ็‹ฌ่‡ชใฎ`HTTPException`ใ‚’ๆŒใฃใฆใ„ใพใ™ใ€‚
    
    ใพใŸใ€ **FastAPI**ใฎใ‚จใƒฉใƒผใ‚ฏใƒฉใ‚น`HTTPException`ใฏStarletteใฎใ‚จใƒฉใƒผใ‚ฏใƒฉใ‚น`HTTPException`ใ‚’็ถ™ๆ‰ฟใ—ใฆใ„ใพใ™ใ€‚
    
    ๅ”ฏไธ€ใฎ้•ใ„ใฏใ€**FastAPI** ใฎ`HTTPException`ใฏใƒฌใ‚นใƒใƒณใ‚นใซๅซใพใ‚Œใ‚‹ใƒ˜ใƒƒใƒ€ใ‚’่ฟฝๅŠ ใงใใ‚‹ใ“ใจใงใ™ใ€‚
    
    ใ“ใ‚ŒใฏOAuth 2.0ใจใ„ใใคใ‹ใฎใ‚ปใ‚ญใƒฅใƒชใƒ†ใ‚ฃใƒฆใƒผใƒ†ใ‚ฃใƒชใƒ†ใ‚ฃใฎใŸใ‚ใซๅ†…้ƒจ็š„ใซๅฟ…่ฆใจใ•ใ‚Œใ€ไฝฟ็”จใ•ใ‚Œใฆใ„ใพใ™ใ€‚
    
    ใใฎใŸใ‚ใ€ใ‚ณใƒผใƒ‰ๅ†…ใงใฏ้€šๅธธ้€šใ‚Š **FastAPI** ใฎ`HTTPException`ใ‚’็™บ็”Ÿใ•ใ›็ถšใ‘ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs_src/custom_response/tutorial008.py

    from fastapi import FastAPI
    from fastapi.responses import StreamingResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 360 bytes
    - Viewed (0)
  9. tests/test_route_scope.py

    import pytest
    from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect
    from fastapi.routing import APIRoute, APIWebSocketRoute
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/users/{user_id}")
    async def get_user(user_id: str, request: Request):
        route: APIRoute = request.scope["route"]
        return {"user_id": user_id, "path": route.path}
    
    
    @app.websocket("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Feb 08 10:23:07 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/response-directly.md

    ```
    
    /// note | "๐Ÿ“ก โ„น"
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `from starlette.responses import JSONResponse`.
    
    **FastAPI** ๐Ÿšš ๐ŸŽ `starlette.responses` `fastapi.responses` ๐Ÿช ๐Ÿ‘†, ๐Ÿ‘ฉโ€๐Ÿ’ป. โœ‹๏ธ ๐ŸŒ… ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ‘Ÿ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ’ƒ.
    
    ///
    
    ## ๐Ÿ›ฌ ๐Ÿ›ƒ `Response`
    
    ๐Ÿ–ผ ๐Ÿ”› ๐ŸŽฆ ๐ŸŒ ๐Ÿ• ๐Ÿ‘† ๐Ÿ’ช, โœ‹๏ธ โšซ๏ธ ๐Ÿšซ ๐Ÿ“ถ โš , ๐Ÿ‘† ๐Ÿ’ช โœ”๏ธ ๐Ÿ“จ `item` ๐Ÿ”—, &amp; **FastAPI** ๐Ÿ”œ ๐Ÿšฎ โšซ๏ธ `JSONResponse` ๐Ÿ‘†, ๐Ÿญ โšซ๏ธ `dict`, โ™’๏ธ. ๐ŸŒ ๐Ÿ‘ˆ ๐Ÿ”ข.
    
    ๐Ÿ”œ, โžก๏ธ ๐Ÿ‘€ โ” ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ›ƒ ๐Ÿ“จ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top