Search Options

Results per page
Sort
Preferred Languages
Advance

Results 901 - 910 of 1,094 for Fstr (0.04 sec)

  1. docs/em/docs/tutorial/response-model.md

    ```Python hl_lines="9  11-12"
    {!> ../../docs_src/response_model/tutorial004_py310.py!}
    ```
    
    ////
    
    * `description: Union[str, None] = None` (โš–๏ธ `str | None = None` ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ) โœ”๏ธ ๐Ÿ”ข `None`.
    * `tax: float = 10.5` โœ”๏ธ ๐Ÿ”ข `10.5`.
    * `tags: List[str] = []` ๐Ÿ”ข ๐Ÿ› ๐Ÿ“‡: `[]`.
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ’š ๐Ÿšซ ๐Ÿ‘ซ โšช๏ธโžก๏ธ ๐Ÿ ๐Ÿšฅ ๐Ÿ‘ซ ๐Ÿšซ ๐Ÿค™ ๐Ÿช.
    
    ๐Ÿ–ผ, ๐Ÿšฅ ๐Ÿ‘† โœ”๏ธ ๐Ÿท โฎ๏ธ ๐Ÿ“š ๐Ÿ“ฆ ๐Ÿ”ข โ˜ ๐Ÿ’ฝ, โœ‹๏ธ ๐Ÿ‘† ๐Ÿšซ ๐Ÿ’š ๐Ÿ“จ ๐Ÿ“ถ ๐Ÿ“ ๐ŸŽป ๐Ÿ“จ ๐ŸŒ• ๐Ÿ”ข ๐Ÿ’ฒ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/path-operation-configuration.md

    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `from starlette import status`.
    
    **FastAPI** ๐Ÿšš ๐ŸŽ `starlette.status` `fastapi.status` ๐Ÿช ๐Ÿ‘†, ๐Ÿ‘ฉโ€๐Ÿ’ป. โœ‹๏ธ โšซ๏ธ ๐Ÿ‘Ÿ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ’ƒ.
    
    ///
    
    ## ๐Ÿ”–
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšฎ ๐Ÿ”– ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*, ๐Ÿšถโ€โ™€๏ธ ๐Ÿ”ข `tags` โฎ๏ธ `list` `str` (๐Ÿ›Ž 1๏ธโƒฃ `str`):
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="17  22  27"
    {!> ../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ & ๐Ÿ”›
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/query-params.md

    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿšซ ๐Ÿ’š ๐Ÿšฎ ๐ŸŽฏ ๐Ÿ’ฒ โœ‹๏ธ โš’ โšซ๏ธ ๐Ÿ“ฆ, โš’ ๐Ÿ”ข `None`.
    
    โœ‹๏ธ ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ’š โš’ ๐Ÿ”ข ๐Ÿ”ข โœ”, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšซ ๐Ÿ“ฃ ๐Ÿ™† ๐Ÿ”ข ๐Ÿ’ฒ:
    
    ```Python hl_lines="6-7"
    {!../../docs_src/query_params/tutorial005.py!}
    ```
    
    ๐Ÿ“ฅ ๐Ÿ”ข ๐Ÿ”ข `needy` โœ” ๐Ÿ”ข ๐Ÿ”ข ๐Ÿ†Ž `str`.
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ“‚ ๐Ÿ‘† ๐Ÿ–ฅ ๐Ÿ“› ๐Ÿ’–:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    ...๐Ÿต โŽ โœ” ๐Ÿ”ข `needy`, ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ‘€ โŒ ๐Ÿ’–:
    
    ```JSON
    {
        "detail": [
            {
                "loc": [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. docs/tr/docs/tutorial/query-params.md

    Fakat, bir sorgu parametresini zorunlu yapmak istiyorsanฤฑz varsayฤฑlan bir deฤŸer atamamanฤฑz yeterli olacaktฤฑr:
    
    ```Python hl_lines="6-7"
    {!../../docs_src/query_params/tutorial005.py!}
    ```
    
    Burada `needy` parametresi `str` tipinden oluลŸan zorunlu bir sorgu parametresidir.
    
    EฤŸer tarayฤฑcฤฑnฤฑzda ลŸu baฤŸlantฤฑyฤฑ:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. configure.py

    
    def write_action_env_to_bazelrc(var_name, var):
      write_to_bazelrc('build --action_env {}="{}"'.format(var_name, str(var)))
    
    
    def write_repo_env_to_bazelrc(config_name, var_name, var):
      write_to_bazelrc(
          'build:{} --repo_env {}="{}"'.format(config_name, var_name, str(var))
      )
    
    
    def run_shell(cmd, allow_non_zero=False, stderr=None):
      if stderr is None:
        stderr = sys.stdout
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 48.2K bytes
    - Viewed (0)
  6. tests/test_include_router_defaults_overrides.py

    callback_router0 = APIRouter()
    
    
    @callback_router0.get("/")
    async def callback0(level0: str):
        pass  # pragma: nocover
    
    
    callback_router1 = APIRouter()
    
    
    @callback_router1.get("/")
    async def callback1(level1: str):
        pass  # pragma: nocover
    
    
    callback_router2 = APIRouter()
    
    
    @callback_router2.get("/")
    async def callback2(level2: str):
        pass  # pragma: nocover
    
    
    callback_router3 = APIRouter()
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body-updates.md

    Vocรช pode usar `jsonable_encoder` para converter os dados de entrada em dados que podem ser armazenados como JSON (por exemplo, com um banco de dados NoSQL). Por exemplo, convertendo `datetime` em `str`.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="28-33"
    {!> ../../../docs_src/body_updates/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="30-35"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:16:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-updates.md

    You can use the `jsonable_encoder` to convert the input data to data that can be stored as JSON (e.g. with a NoSQL database). For example, converting `datetime` to `str`.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="28-33"
    {!> ../../docs_src/body_updates/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="30-35"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. docs/hu/docs/index.md

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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}
    
    
    @app.put("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/body.md

    * Wenn der Parameter ein **einfacher Typ** ist (wie `int`, `float`, `str`, `bool`, usw.), wird er als **Query**-Parameter interpretiert.
    * Wenn der Parameter vom Typ eines **Pydantic-Modells** ist, wird er als Request**body** interpretiert.
    
    /// note | "Hinweis"
    
    FastAPI weiรŸ, dass der Wert von `q` nicht erforderlich ist, wegen des definierten Defaultwertes `= None`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top