Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1701 - 1710 of 2,000 for Fastapi (0.11 sec)

  1. docs/en/docs/js/custom.js

        if (div) {
            data = await getData()
            div.innerHTML = '<ul></ul>'
            const ul = document.querySelector('.github-topic-projects ul')
            data.forEach(v => {
                if (v.full_name === 'fastapi/fastapi') {
                    return
                }
                const li = document.createElement('li')
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial008d_an.py

    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.dependencies.tutorial008d_an import app
    
        client = TestClient(app)
        return client
    
    
    def test_get_no_item(client: TestClient):
        response = client.get("/items/foo")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Item not found, there's only a plumbus here"}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/security/get-current-user.md

    ```
    
    ////
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ“ฃ ๐Ÿ†Ž `current_user` Pydantic ๐Ÿท `User`.
    
    ๐Ÿ‘‰ ๐Ÿ”œ โ„น ๐Ÿ‡บ๐Ÿ‡ฒ ๐Ÿ”˜ ๐Ÿ”ข โฎ๏ธ ๐ŸŒ ๐Ÿ› ๏ธ &amp; ๐Ÿ†Ž โœ….
    
    /// tip
    
    ๐Ÿ‘† 5๏ธโƒฃ๐Ÿ“† ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ’ช ๐Ÿ“ฃ โฎ๏ธ Pydantic ๐Ÿท.
    
    ๐Ÿ“ฅ **FastAPI** ๐Ÿ† ๐Ÿšซ ๐Ÿคš ๐Ÿ˜จ โ†ฉ๏ธ ๐Ÿ‘† โš™๏ธ `Depends`.
    
    ///
    
    /// check
    
    ๐ŸŒŒ ๐Ÿ‘‰ ๐Ÿ”— โš™๏ธ ๐Ÿ— โœ” ๐Ÿ‘ฅ โœ”๏ธ ๐ŸŽ ๐Ÿ”— (๐ŸŽ "โ˜‘") ๐Ÿ‘ˆ ๐ŸŒ ๐Ÿ“จ `User` ๐Ÿท.
    
    ๐Ÿ‘ฅ ๐Ÿšซ ๐Ÿšซ โœ”๏ธ ๐Ÿ•ด 1๏ธโƒฃ ๐Ÿ”— ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ‘ˆ ๐Ÿ†Ž ๐Ÿ’ฝ.
    
    ///
    
    ## ๐ŸŽ ๐Ÿท
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/middleware.md

    # ๋ฏธ๋“ค์›จ์–ด
    
    ๋ฏธ๋“ค์›จ์–ด๋ฅผ **FastAPI** ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์— ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    "๋ฏธ๋“ค์›จ์–ด"๋Š” ํŠน์ • *๊ฒฝ๋กœ ์ž‘๋™*์— ์˜ํ•ด ์ฒ˜๋ฆฌ๋˜๊ธฐ ์ „, ๋ชจ๋“  **์š”์ฒญ**์— ๋Œ€ํ•ด์„œ ๋™์ž‘ํ•˜๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค. ๋˜ํ•œ ๋ชจ๋“  **์‘๋‹ต**์ด ๋ฐ˜ํ™˜๋˜๊ธฐ ์ „์—๋„ ๋™์ผํ•˜๊ฒŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.
    
    * ๋ฏธ๋“ค์›จ์–ด๋Š” ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ ์˜ค๋Š” **์š”์ฒญ**๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
    * **์š”์ฒญ** ๋˜๋Š” ๋‹ค๋ฅธ ํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    * **์š”์ฒญ**์„ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์˜ *๊ฒฝ๋กœ ์ž‘๋™*์œผ๋กœ ์ „๋‹ฌํ•˜์—ฌ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
    * ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ *๊ฒฝ๋กœ ์ž‘์—…*์—์„œ ์ƒ์„ฑํ•œ **์‘๋‹ต**๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค.
    * **์‘๋‹ต** ๋˜๋Š” ๋‹ค๋ฅธ ํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์‹คํ–‰์‹œํ‚ค๋Š” ๋™์ž‘์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    * **์‘๋‹ต**๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
    
    /// note | "๊ธฐ์ˆ  ์„ธ๋ถ€์‚ฌํ•ญ"
    
    ๋งŒ์•ฝ `yield`๋ฅผ ์‚ฌ์šฉํ•œ ์˜์กด์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค๋ฉด, ๋ฏธ๋“ค์›จ์–ด๊ฐ€ ์‹คํ–‰๋˜๊ณ  ๋‚œ ํ›„์— exit์ด ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_model/test_tutorial003.py

    from dirty_equals import IsDict, IsOneOf
    from fastapi.testclient import TestClient
    
    from docs_src.response_model.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_post_user():
        response = client.post(
            "/user/",
            json={
                "username": "foo",
                "password": "fighter",
                "email": "******@****.***",
                "full_name": "Grave Dohl",
            },
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_response_model/test_tutorial004_py39.py

    import pytest
    from dirty_equals import IsDict, IsOneOf
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.response_model.tutorial004_py39 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    @pytest.mark.parametrize(
        "url,data",
        [
            ("/items/foo", {"name": "Foo", "price": 50.2}),
            (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_extra_models/test_tutorial003.py

    from dirty_equals import IsOneOf
    from fastapi.testclient import TestClient
    
    from docs_src.extra_models.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_get_car():
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    def test_get_plane():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. docs/pt/docs/deployment/index.md

    # Implantaรงรฃo
    
    A implantaรงรฃo de uma aplicaรงรฃo **FastAPI** รฉ relativamente simples.
    
    Existem vรกrias maneiras para fazer isso, dependendo do seu caso especรญfico e das ferramentas que vocรช utiliza.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jun 24 14:47:15 UTC 2023
    - 322 bytes
    - Viewed (0)
  9. docs/zh/docs/how-to/index.md

    # ๅฆ‚ไฝ•ๆ“ไฝœ - ่ฏ€็ช
    
    ๅœจ่ฟ™้‡Œ๏ผŒไฝ ๅฐ†็œ‹ๅˆฐๅ…ณไบŽ**ๅคšไธชไธป้ข˜**็š„ไธๅŒ่ฏ€็ชๆˆ–โ€œๅฆ‚ไฝ•ๆ“ไฝœโ€ๆŒ‡ๅ—ใ€‚
    
    ่ฟ™ไบ›ๆ–นๆณ•ๅคšๆ•ฐๆ˜ฏ**็›ธไบ’็‹ฌ็ซ‹**็š„๏ผŒๅœจๅคงๅคšๆ•ฐๆƒ…ๅ†ตไธ‹๏ผŒไฝ ๅช้œ€ๅœจ่ฟ™ไบ›ๅ†…ๅฎน้€‚็”จไบŽ**ไฝ ็š„้กน็›ฎ**ๆ—ถๆ‰้œ€่ฆๅญฆไน ๅฎƒไปฌใ€‚
    
    ๅฆ‚ๆžœๆŸไบ›ๅ†…ๅฎน็œ‹่ตทๆฅๅฏนไฝ ็š„้กน็›ฎๆœ‰็”จ๏ผŒ่ฏท็ปง็ปญๆŸฅ้˜…๏ผŒๅฆๅˆ™่ฏท็›ดๆŽฅ่ทณ่ฟ‡ๅฎƒไปฌใ€‚
    
    /// tip | ๅฐๆŠ€ๅทง
    
    ๅฆ‚ๆžœไฝ ๆƒณไปฅ็ณป็ปŸ็š„ๆ–นๅผ**ๅญฆไน  FastAPI**๏ผˆๆŽจ่๏ผ‰๏ผŒ่ฏท้˜…่ฏป [ๆ•™็จ‹ - ็”จๆˆทๆŒ‡ๅ—](../tutorial/index.md){.internal-link target=_blank} ็š„ๆฏไธ€็ซ ่Š‚ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 13:48:13 UTC 2024
    - 558 bytes
    - Viewed (0)
  10. docs/em/docs/advanced/events.md

    ๐Ÿ‘† ๐Ÿ“Ÿ ๐Ÿ–ผ ๐Ÿ”›, ๐Ÿ‘ฅ ๐Ÿšซ โš™๏ธ โšซ๏ธ ๐Ÿ”—, โœ‹๏ธ ๐Ÿ‘ฅ ๐Ÿšถโ€โ™€๏ธ โšซ๏ธ FastAPI โšซ๏ธ โš™๏ธ โšซ๏ธ.
    
    `lifespan` ๐Ÿ”ข `FastAPI` ๐Ÿ“ฑ โœŠ **๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ**, ๐Ÿ‘ฅ ๐Ÿ’ช ๐Ÿšถโ€โ™€๏ธ ๐Ÿ‘† ๐Ÿ†• `lifespan` ๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ โšซ๏ธ.
    
    ```Python hl_lines="22"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    ## ๐ŸŽ› ๐ŸŽ‰ (๐Ÿ˜ข)
    
    /// warning
    
    ๐Ÿ‘ ๐ŸŒŒ ๐Ÿต *๐Ÿ•ด* &amp; *๐Ÿคซ* โš™๏ธ `lifespan` ๐Ÿ”ข `FastAPI` ๐Ÿ“ฑ ๐Ÿ”ฌ ๐Ÿ”›.
    
    ๐Ÿ‘† ๐Ÿ’ช ๐ŸŽฒ ๐Ÿšถ ๐Ÿ‘‰ ๐Ÿ•.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top