Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for keywords (0.17 sec)

  1. docs_src/extra_models/tutorial005.py

    from typing import Dict
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/keyword-weights/", response_model=Dict[str, float])
    async def read_keyword_weights():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 205 bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/path-params-numeric-validations.md

    Übergeben Sie der Funktion `*` als ersten Parameter.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 17:59:29 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/nosql-databases-couchbase.md

    It will take the `dict` at `result.value`, and take each of its keys and values and pass them as key-values to `UserInDB` as keyword arguments.
    
    So, if the `dict` contains:
    
    ```Python
    {
        "username": "johndoe",
        "hashed_password": "some_hash",
    }
    ```
    
    It will be passed to `UserInDB` as:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    파이썬에서의 "**호출 가능**"은 파이썬이 함수처럼 "호출"할 수 있는 모든 것입니다.
    
    따라서, 만약 당신이 `something`(함수가 아닐 수도 있음) 객체를 가지고 있고,
    
    ```Python
    something()
    ```
    
    또는
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    상기와 같은 방식으로 "호출(실행)" 할 수 있다면 "호출 가능"이 됩니다.
    
    ## 의존성으로서의 클래스
    
    파이썬 클래스의 인스턴스를 생성하기 위해 사용하는 것과 동일한 문법을 사용한다는 걸 알 수 있습니다.
    
    예를 들어:
    
    ```Python
    class Cat:
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 8K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * Fix testing OAuth2 security scopes when using dependency overrides. PR [#1549](https://github.com/tiangolo/fastapi/pull/1549) by [@amacfie](https://github.com/amacfie).
    * Fix Model for JSON Schema keyword `not` as a JSON Schema instead of a list. PR [#1548](https://github.com/tiangolo/fastapi/pull/1548) by [@v-do](https://github.com/v-do).
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  6. docs_src/extra_models/tutorial005_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/keyword-weights/", response_model=dict[str, float])
    async def read_keyword_weights():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 180 bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md

    关键因素是依赖项应该是 "可调用对象"。
    
    Python 中的 "**可调用对象**" 是指任何 Python 可以像函数一样 "调用" 的对象。
    
    所以,如果你有一个对象 `something` (可能*不是*一个函数),你可以 "调用" 它(执行它),就像:
    
    ```Python
    something()
    ```
    
    或者
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    这就是 "可调用对象"。
    
    ## 类作为依赖项
    
    您可能会注意到,要创建一个 Python 类的实例,您可以使用相同的语法。
    
    举个例子:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_extra_models/test_tutorial005.py

                                            "type": "object",
                                            "additionalProperties": {"type": "number"},
                                        }
                                    }
                                },
                            }
                        },
                        "summary": "Read Keyword Weights",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/dependencies/classes-as-dependencies.md

    "**🇧🇲**" 🐍 🕳 👈 🐍 💪 "🤙" 💖 🔢.
    
    , 🚥 👆 ✔️ 🎚 `something` (👈 💪 _🚫_ 🔢) & 👆 💪 "🤙" ⚫️ (🛠️ ⚫️) 💖:
    
    ```Python
    something()
    ```
    
    ⚖️
    
    ```Python
    something(some_argument, some_keyword_argument="foo")
    ```
    
    ⤴️ ⚫️ "🇧🇲".
    
    ## 🎓 🔗
    
    👆 5️⃣📆 👀 👈 ✍ 👐 🐍 🎓, 👆 ⚙️ 👈 🎏 ❕.
    
    🖼:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/sql-databases.md

    !!! tip
        Instead of passing each of the keyword arguments to `Item` and reading each one of them from the Pydantic *model*, we are generating a `dict` with the Pydantic *model*'s data with:
    
        `item.dict()`
    
        and then we are passing the `dict`'s key-value pairs as the keyword arguments to the SQLAlchemy `Item`, with:
    
        `Item(**item.dict())`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top