Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1431 - 1440 of 1,977 for Fastapi (0.07 sec)

  1. docs/fr/docs/python-types.md

    ///
    
    **FastAPI** est basé entièrement sur **Pydantic**.
    
    Vous verrez bien plus d'exemples de son utilisation dans [Tutoriel - Guide utilisateur](tutorial/index.md){.internal-link target=_blank}.
    
    ## Les annotations de type dans **FastAPI**
    
    **FastAPI** utilise ces annotations pour faire différentes choses.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:21:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/request-forms.md

    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## Import `Form`
    
    Import `Form` from `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.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_path_operation_configurations/test_tutorial005.py

    from fastapi.testclient import TestClient
    
    from docs_src.path_operation_configuration.tutorial005 import app
    
    from ...utils import needs_pydanticv1, needs_pydanticv2
    
    client = TestClient(app)
    
    
    def test_query_params_str_validations():
        response = client.post("/items/", json={"name": "Foo", "price": 42})
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Foo",
            "price": 42,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial006.py

    from base64 import b64encode
    
    from fastapi.testclient import TestClient
    
    from docs_src.security.tutorial006 import app
    
    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    def test_security_http_basic_no_credentials():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. docs/vi/docs/python-types.md

    ///
    
    ## Các gợi ý kiểu dữ liệu trong **FastAPI**
    
    **FastAPI** lấy các ưu điểm của các gợi ý kiểu dữ liệu để thực hiện một số thứ.
    
    Với **FastAPI**, bạn khai báo các tham số với gợi ý kiểu và bạn có được:
    
    * **Sự hỗ trợ từ các trình soạn thảo**.
    * **Kiểm tra kiểu dữ liệu (type checking)**.
    
    ...và **FastAPI** sử dụng các khia báo để:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  6. docs/de/docs/deployment/docker.md

    * Erstellen Sie eine leere Datei `__init__.py`.
    * Erstellen Sie eine `main.py`-Datei mit:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 39K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/additional-responses.md

    /// info
    
    Sofern Sie in Ihrem Parameter `responses` nicht explizit einen anderen Medientyp angeben, geht FastAPI davon aus, dass die Response denselben Medientyp wie die Haupt-Response-Klasse hat (Standardmäßig `application/json`).
    
    Wenn Sie jedoch eine benutzerdefinierte Response-Klasse mit `None` als Medientyp angegeben haben, verwendet FastAPI `application/json` für jede zusätzliche Response, die über ein zugehöriges Modell verfügt.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/additional-responses.md

    ///
    
    /// info
    
    Unless you specify a different media type explicitly in your `responses` parameter, FastAPI will assume the response has the same media type as the main response class (default `application/json`).
    
    But if you have specified a custom response class with `None` as its media type, FastAPI will use `application/json` for any additional response that has an associated model.
    
    ///
    
    ## Combining information
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:07:07 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. docs/em/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` 🏪 👆, 👩‍💻. ✋️ ⚫️ 🤙 👟 🔗 ⚪️➡️ 💃.
    
    ///
    
    ### ⚫️❔ "🗜"
    
    "🗜" ⛓ ❎ 🏁 "🔬" 🈸 🎯 ➡, 👈 ⤴️ ✊ 💅 🚚 🌐 🎧-➡.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. docs/ja/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
    - 11.8K bytes
    - Viewed (0)
Back to top