Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1191 - 1200 of 1,977 for Fastapi (0.06 sec)

  1. .github/actions/people/action.yml

    name: "Generate FastAPI People"
    description: "Generate the data for the FastAPI People page"
    author: "Sebastián Ramírez <******@****.***>"
    inputs:
      token:
        description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.FASTAPI_PEOPLE }}'
        required: true
    runs:
      using: 'docker'
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jul 09 15:44:40 UTC 2023
    - 333 bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/index.md

    ---
    
    ## Установка FastAPI
    
    Первый шаг — установить FastAPI.
    
    Для руководства вы, возможно, захотите установить его со всеми дополнительными зависимостями и функциями:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[all]"
    
    ---> 100%
    ```
    
    </div>
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/additional-status-codes.md

    ```
    
    /// warning | "警告"
    
    当你直接返回一个像上面例子中的 `Response` 对象时,它会直接返回。
    
    FastAPI 不会用模型等对该响应进行序列化。
    
    确保其中有你想要的数据,且返回的值为合法的 JSON(如果你使用 `JSONResponse` 的话)。
    
    ///
    
    /// note | "技术细节"
    
    你也可以使用 `from starlette.responses import JSONResponse`。 
    
    出于方便,**FastAPI** 为开发者提供同 `starlette.responses` 一样的 `fastapi.responses`。但是大多数可用的响应都是直接来自 Starlette。`status` 也是一样。
    
    ///
    
    ## OpenAPI 和 API 文档
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. tests/test_filter_pydantic_sub_model_pv2.py

    import pytest
    from dirty_equals import HasRepr, IsDict, IsOneOf
    from fastapi import Depends, FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    
    from .utils import needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from pydantic import BaseModel, ValidationInfo, field_validator
    
        app = FastAPI()
    
        class ModelB(BaseModel):
            username: str
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/cookie-param-models.md

    Isso lhe permitiria **reutilizar o modelo** em **diversos lugares** e também declarar validações e metadata para todos os parâmetros de uma vez. 😎
    
    /// note | Nota
    
    Isso é suportado desde a versão `0.115.0` do FastAPI. 🤓
    
    ///
    
    /// tip | Dica
    
    Essa mesma técnica se aplica para `Query`, `Cookie`, e `Header`. 😎
    
    ///
    
    ## Cookies com Modelos Pydantic
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 07 20:18:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. tests/main.py

    import http
    from typing import FrozenSet, List, Optional
    
    from fastapi import FastAPI, Path, Query
    
    app = FastAPI()
    
    
    @app.api_route("/api_route")
    def non_operation():
        return {"message": "Hello World"}
    
    
    def non_decorated_route():
        return {"message": "Hello World"}
    
    
    app.add_api_route("/non_decorated_route", non_decorated_route)
    
    
    @app.get("/text")
    def get_text():
        return "Hello World"
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    ///
    
    /// note
    
    👀 👈 📚 📟 🐩 `SQLAlchemy` 📟 👆 🔜 ⚙️ ⏮️ 🙆 🛠️.
    
     **FastAPI** 🎯 📟 🤪 🕧.
    
    ///
    
    ## 🐜
    
    **FastAPI** 👷 ⏮️ 🙆 💽 &amp; 🙆 👗 🗃 💬 💽.
    
    ⚠ ⚓ ⚙️ "🐜": "🎚-🔗 🗺" 🗃.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/request-forms.md

    Z. B. `pip install python-multipart`.
    
    ///
    
    ## `Form` importieren
    
    Importieren Sie `Form` von `fastapi`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="3"
    {!> ../../docs_src/request_forms/tutorial001_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/dependencies/sub-dependencies.md

    # 🎧-🔗
    
    👆 💪 ✍ 🔗 👈 ✔️ **🎧-🔗**.
    
    👫 💪 **⏬** 👆 💪 👫.
    
    **FastAPI** 🔜 ✊ 💅 🔬 👫.
    
    ## 🥇 🔗 "☑"
    
    👆 💪 ✍ 🥇 🔗 ("☑") 💖:
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/dependencies/tutorial005.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛
    
    ```Python hl_lines="6-7"
    {!> ../../docs_src/dependencies/tutorial005_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tests/test_multi_query_errors.py

    from typing import List
    
    from dirty_equals import IsDict
    from fastapi import FastAPI, Query
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: List[int] = Query(default=None)):
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_multi_query():
        response = client.get("/items/?q=5&q=6")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top