Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 1,976 for Fastapi (0.06 sec)

  1. docs/ja/docs/tutorial/dependencies/index.md

    common_parameters --> read_items
    common_parameters --> read_users
    ```
    
    この方法では、共有されるコードを一度書き、**FastAPI** が*path operations*のための呼び出しを行います。
    
    /// check | "確認"
    
    特別なクラスを作成してどこかで **FastAPI** に渡して「登録」する必要はないことに注意してください。
    
    `Depends`を渡すだけで、**FastAPI** が残りの処理をしてくれます。
    
    ///
    
    ## `async`にするかどうか
    
    依存関係は **FastAPI**(*path operation関数*と同じ)からも呼び出されるため、関数を定義する際にも同じルールが適用されます。
    
    `async def`や通常の`def`を使用することができます。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. tests/test_response_change_status_code.py

    from fastapi import Depends, FastAPI, Response
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    async def response_status_setter(response: Response):
        response.status_code = 201
    
    
    async def parent_dep(result=Depends(response_status_setter)):
        return result
    
    
    @app.get("/", dependencies=[Depends(parent_dep)])
    async def get_main():
        return {"msg": "Hello World"}
    
    
    client = TestClient(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Apr 08 04:37:38 UTC 2020
    - 589 bytes
    - Viewed (0)
  3. docs/tr/docs/project-generation.md

    ## Full Stack FastAPI MongoDB
    
    ... müsaitliğime ve diğer faktörlere bağlı olarak daha sonra gelebilir. 😅 🎉
    
    ## Machine Learning modelleri, spaCy ve FastAPI
    
    GitHub: <a href="https://github.com/microsoft/cookiecutter-spacy-fastapi" class="external-link" target="_blank">https://github.com/microsoft/cookiecutter-spacy-fastapi</a>
    
    ### Machine Learning modelleri, spaCy ve FastAPI - Features
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. docs/en/docs/management.md

    You can see the current team members in [FastAPI People - Team](./fastapi-people.md#team){.internal-link target=_blank}.
    
    Joining the team is by invitation only, and I could update or remove permissions, instructions, or membership.
    
    ## FastAPI Experts
    
    The people that help others the most in GitHub Discussions can become [**FastAPI Experts**](./fastapi-people.md#fastapi-experts){.internal-link target=_blank}.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/websockets.md

    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## Criando um `websocket`
    
    Em sua aplicação **FastAPI**, crie um `websocket`:
    
    {*../../docs_src/websockets/tutorial001.py hl[46:47]*}
    
    /// note | Detalhes Técnicos
    
    Você também poderia usar `from starlette.websockets import WebSocket`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:20:59 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-model.md

    ### FastAPI Data Filtering
    
    Now, for FastAPI, it will see the return type and make sure that what you return includes **only** the fields that are declared in the type.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. docs_src/path_operation_advanced_configuration/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", operation_id="some_specific_id_you_define")
    async def read_items():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 167 bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    using them to decorate a function with a single `yield`.
    
    That's what **FastAPI** uses internally for dependencies with `yield`.
    
    But you don't have to use the decorators for FastAPI dependencies (and you shouldn't).
    
    FastAPI will do it for you internally.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. docs_src/path_params/tutorial002.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_item(item_id: int):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 143 bytes
    - Viewed (0)
  10. docs_src/additional_status_codes/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 705 bytes
    - Viewed (0)
Back to top