Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 261 for value2 (0.16 sec)

  1. docs/en/docs/tutorial/path-params.md

    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### Get the *enumeration value*
    
    You can get the actual value (a `str` in this case) using `model_name.value`, or in general, `your_enum_member.value`:
    
    ```Python hl_lines="20"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    !!! tip
        You could also access the value `"lenet"` with `ModelName.lenet.value`.
    
    #### Return *enumeration members*
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. fastapi/param_functions.py

            Doc(
                """
                Default value if the parameter field is not set.
                """
            ),
        ] = Undefined,
        *,
        default_factory: Annotated[
            Union[Callable[[], Any], None],
            Doc(
                """
                A callable to generate the default value.
    
                This doesn't affect `Path` parameters as the value is always required.
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  3. fastapi/utils.py

    
    def deep_dict_update(main_dict: Dict[Any, Any], update_dict: Dict[Any, Any]) -> None:
        for key, value in update_dict.items():
            if (
                key in main_dict
                and isinstance(main_dict[key], dict)
                and isinstance(value, dict)
            ):
                deep_dict_update(main_dict[key], value)
            elif (
                key in main_dict
                and isinstance(main_dict[key], list)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/nosql-databases.md

    πŸ“₯ πŸ‘₯ πŸ”œ πŸ‘€ πŸ–Ό βš™οΈ **<a href="https://www.couchbase.com/" class="external-link" target="_blank">πŸ—„</a>**, <abbr title="Document here refers to a JSON object (a dict), with keys and values, and those values can also be other JSON objects, arrays (lists), numbers, strings, booleans, etc.">πŸ“„</abbr> 🧒 ☁ πŸ’½.
    
    πŸ‘† πŸ’ͺ πŸ› οΈ ⚫️ πŸ™† 🎏 ☁ πŸ’½ πŸ’–:
    
    * **✳**
    * **πŸ‘Έ**
    * **✳**
    * **πŸ‡ΈπŸ‡²**
    * **✳**, ♒️.
    
    !!! tip
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_dependency_class.py

    
    class MethodsDependency:
        def synchronous(self, value: str) -> str:
            return value
    
        async def asynchronous(self, value: str) -> str:
            return value
    
        def synchronous_gen(self, value: str) -> Generator[str, None, None]:
            yield value
    
        async def asynchronous_gen(self, value: str) -> AsyncGenerator[str, None]:
            yield value
    
    
    callable_dependency = CallableDependency()
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Aug 09 10:54:05 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  6. docs_src/websockets/tutorial002_an_py310.py

        <body>
            <h1>WebSocket Chat</h1>
            <form action="" onsubmit="sendMessage(event)">
                <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label>
                <label>Token: <input type="text" id="token" autocomplete="off" value="some-key-token"/></label>
                <button onclick="connect(event)">Connect</button>
                <hr>
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/response-model.md

        ```Python hl_lines="24"
        {!> ../../../docs_src/response_model/tutorial004.py!}
        ```
    
    and those default values won't be included in the response, only the values actually set.
    
    So, if you send a request to that *path operation* for the item with ID `foo`, the response (not including default values) will be:
    
    ```JSON
    {
        "name": "Foo",
        "price": 50.2
    }
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_websockets/test_tutorial002_py310.py

                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
                assert data == f"Message text was: {message}, for item ID: foo"
                message = "Message two"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  9. pdm_build.py

        for key, value in project_config.items():
            metadata[key] = value
        # Get custom build config for the current package
        build_config: Dict[str, Any] = (
            config.get("tool", {}).get("pdm", {}).get("build", {})
        )
        # Override PDM build config with custom build config for this package
        for key, value in build_config.items():
            context.config.build_config[key] = value
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. tests/test_query.py

            {
                "detail": [
                    {
                        "loc": ["query", "query"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_query_query_baz():
        response = client.get("/query?query=baz")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top