Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1501 - 1510 of 1,962 for fastapi (0.05 sec)

  1. docs/em/docs/advanced/advanced-dependencies.md

    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ’ผ, ๐Ÿ‘‰ `__call__` โšซ๏ธโ” **FastAPI** ๐Ÿ”œ โš™๏ธ โœ… ๐ŸŒ– ๐Ÿ”ข & ๐ŸŽง-๐Ÿ”—, & ๐Ÿ‘‰ โšซ๏ธโ” ๐Ÿ”œ ๐Ÿค™ ๐Ÿšถโ€โ™€๏ธ ๐Ÿ’ฒ ๐Ÿ”ข ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* โช.
    
    ## ๐Ÿ”— ๐Ÿ‘
    
    & ๐Ÿ”œ, ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ `__init__` ๐Ÿ“ฃ ๐Ÿ”ข ๐Ÿ‘ ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ "๐Ÿ”—" ๐Ÿ”—:
    
    ```Python hl_lines="7"
    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ’ผ, **FastAPI** ๐Ÿ† ๐Ÿšซ โฑ ๐Ÿ‘† โš–๏ธ ๐Ÿ’… ๐Ÿ”ƒ `__init__`, ๐Ÿ‘ฅ ๐Ÿ”œ โš™๏ธ โšซ๏ธ ๐Ÿ”— ๐Ÿ‘† ๐Ÿ“Ÿ.
    
    ## โœ ๐Ÿ‘
    
    ๐Ÿ‘ฅ ๐Ÿ’ช โœ ๐Ÿ‘ ๐Ÿ‘‰ ๐ŸŽ“ โฎ๏ธ:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs_src/sql_databases/tutorial002.py

    from typing import List, Union
    
    from fastapi import Depends, FastAPI, HTTPException, Query
    from sqlmodel import Field, Session, SQLModel, create_engine, select
    
    
    class HeroBase(SQLModel):
        name: str = Field(index=True)
        age: Union[int, None] = Field(default=None, index=True)
    
    
    class Hero(HeroBase, table=True):
        id: Union[int, None] = Field(default=None, primary_key=True)
        secret_name: str
    
    
    class HeroPublic(HeroBase):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. docs_src/sql_databases/tutorial002_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException, Query
    from sqlmodel import Field, Session, SQLModel, create_engine, select
    
    
    class HeroBase(SQLModel):
        name: str = Field(index=True)
        age: int | None = Field(default=None, index=True)
    
    
    class Hero(HeroBase, table=True):
        id: int | None = Field(default=None, primary_key=True)
        secret_name: str
    
    
    class HeroPublic(HeroBase):
        id: int
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/static-files.md

    ```Python hl_lines="2  6"
    {!../../docs_src/static_files/tutorial001.py!}
    ```
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ไฝ ไนŸๅฏไปฅ็”จ `from starlette.staticfiles import StaticFiles`ใ€‚
    
    **FastAPI** ๆไพ›ไบ†ๅ’Œ `starlette.staticfiles` ็›ธๅŒ็š„ `fastapi.staticfiles` ๏ผŒๅชๆ˜ฏไธบไบ†ๆ–นไพฟไฝ ๏ผŒๅผ€ๅ‘่€…ใ€‚ไฝ†ๅฎƒ็กฎๅฎžๆฅ่‡ชStarletteใ€‚
    
    ///
    
    ### ไป€ไนˆๆ˜ฏ"ๆŒ‚่ฝฝ"(Mounting)
    
    "ๆŒ‚่ฝฝ" ่กจ็คบๅœจ็‰นๅฎš่ทฏๅพ„ๆทปๅŠ ไธ€ไธชๅฎŒๅ…จ"็‹ฌ็ซ‹็š„"ๅบ”็”จ๏ผŒ็„ถๅŽ่ดŸ่ดฃๅค„็†ๆ‰€ๆœ‰ๅญ่ทฏๅพ„ใ€‚
    
    ่ฟ™ไธŽไฝฟ็”จ`APIRouter`ไธๅŒ๏ผŒๅ› ไธบๅฎ‰่ฃ…็š„ๅบ”็”จ็จ‹ๅบๆ˜ฏๅฎŒๅ…จ็‹ฌ็ซ‹็š„ใ€‚OpenAPIๅ’Œๆฅ่‡ชไฝ ไธปๅบ”็”จ็š„ๆ–‡ๆกฃไธไผšๅŒ…ๅซๅทฒๆŒ‚่ฝฝๅบ”็”จ็š„ไปปไฝ•ไธœ่ฅฟ็ญ‰็ญ‰ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. docs/ko/docs/python-types.md

    ///
    
    **FastAPI**๋Š” ๋ชจ๋‘ Pydantic์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ์ด ๋ชจ๋“  ๊ฒƒ์ด ์‹ค์ œ๋กœ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉ๋˜๋Š”์ง€์— ๋Œ€ํ•ด์„œ๋Š” [์ž์Šต์„œ - ์‚ฌ์šฉ์ž ์•ˆ๋‚ด์„œ](tutorial/index.md){.internal-link target=_blank} ์—์„œ ๋” ๋งŽ์ด ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ## **FastAPI**์—์„œ์˜ ํƒ€์ž… ํžŒํŠธ
    
    **FastAPI**๋Š” ์—ฌ๋Ÿฌ ๋ถ€๋ถ„์—์„œ ํƒ€์ž… ํžŒํŠธ์˜ ์žฅ์ ์„ ์ทจํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
    
    **FastAPI**์—์„œ ํƒ€์ž… ํžŒํŠธ์™€ ํ•จ๊ป˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•˜๋ฉด ์žฅ์ ์€:
    
    * **์—๋””ํ„ฐ ๋„์›€**.
    * **ํƒ€์ž… ํ™•์ธ**.
    
    ...๊ทธ๋ฆฌ๊ณ  **FastAPI**๋Š” ๊ฐ™์€ ์ •์˜๋ฅผ ์•„๋ž˜์—๋„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/metadata.md

    # ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ๋ฐ ๋ฌธ์„œํ™” URL
    
    **FastAPI** ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์—์„œ ๋‹ค์–‘ํ•œ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ๊ตฌ์„ฑ์„ ์‚ฌ์šฉ์ž ๋งž์ถค ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ## API์— ๋Œ€ํ•œ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
    
    OpenAPI ๋ช…์„ธ ๋ฐ ์ž๋™ํ™”๋œ API ๋ฌธ์„œ UI์— ์‚ฌ์šฉ๋˜๋Š” ๋‹ค์Œ ํ•„๋“œ๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    | ๋งค๊ฐœ๋ณ€์ˆ˜ | ํƒ€์ž… | ์„ค๋ช… |
    |----------|------|-------|
    | `title` | `str` | API์˜ ์ œ๋ชฉ์ž…๋‹ˆ๋‹ค. |
    | `summary` | `str` | API์— ๋Œ€ํ•œ ์งง์€ ์š”์•ฝ์ž…๋‹ˆ๋‹ค. <small>OpenAPI 3.1.0, FastAPI 0.99.0๋ถ€ํ„ฐ ์‚ฌ์šฉ ๊ฐ€๋Šฅ</small> |
    | `description` | `str` | API์— ๋Œ€ํ•œ ์งง์€ ์„ค๋ช…์ž…๋‹ˆ๋‹ค. ๋งˆํฌ๋‹ค์šด์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. |
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. docs/en/docs/about/index.md

    # About
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 63 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py

    import pytest
    from fastapi.testclient import TestClient
    
    from tests.utils import needs_py39, needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.request_form_models.tutorial002_an_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_pydanticv2
    @needs_py39
    def test_post_body_form(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_body_fields/test_tutorial001_an_py310.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.body_fields.tutorial001_an_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_items_5(client: TestClient):
        response = client.put("/items/5", json={"item": {"name": "Foo", "price": 3.0}})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial001_02_an import app
    
    client = TestClient(app)
    
    
    def test_post_form_no_body():
        response = client.post("/files/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "No file sent"}
    
    
    def test_post_uploadfile_no_body():
        response = client.post("/uploadfile/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.2K bytes
    - Viewed (0)
Back to top