Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 272 for images (0.21 sec)

  1. docs/en/docs/reference/staticfiles.md

    # Static Files - `StaticFiles`
    
    You can use the `StaticFiles` class to serve static files, like JavaScript, CSS, images, etc.
    
    Read more about it in the [FastAPI docs for Static Files](https://fastapi.tiangolo.com/tutorial/static-files/).
    
    You can import it directly from `fastapi.staticfiles`:
    
    ```python
    from fastapi.staticfiles import StaticFiles
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 391 bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/body-nested-models.md

        ```
    
    !!! info
        👀 ❔ `Offer` ✔️ 📇 `Item`Ⓜ, ❔ 🔄 ✔️ 📦 📇 `Image`Ⓜ
    
    ## 💪 😁 📇
    
    🚥 🔝 🎚 💲 🎻 💪 👆 ⌛ 🎻 `array` (🐍 `list`), 👆 💪 📣 🆎 🔢 🔢, 🎏 Pydantic 🏷:
    
    ```Python
    images: List[Image]
    ```
    
    ⚖️ 🐍 3️⃣.9️⃣ & 🔛:
    
    ```Python
    images: list[Image]
    ```
    
    :
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="15"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. docs/en/docs/contributing.md

        ```
    
    Now you can go to <a href="http://127.0.0.1:8008" class="external-link" target="_blank">http://127.0.0.1:8008</a> and see your changes live.
    
    You will see that every language has all the pages. But some pages are not translated and have an info box at the top, about the missing translation.
    
    Now let's say that you want to add a translation for the section [Features](features.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs_src/body_nested_models/tutorial007_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    class Offer(BaseModel):
        name: str
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 570 bytes
    - Viewed (0)
  5. docs_src/body_nested_models/tutorial006_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 475 bytes
    - Viewed (0)
  6. docs_src/body_nested_models/tutorial006_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 519 bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/body-nested-models.md

            "rock",
            "metal",
            "bar"
        ],
        "images": [
            {
                "url": "http://example.com/baz.jpg",
                "name": "The Foo live"
            },
            {
                "url": "http://example.com/dave.jpg",
                "name": "The Baz"
            }
        ]
    }
    ```
    
    !!! info
        请注意 `images` 键现在具有一组 image 对象是如何发生的。
    
    ## 深度嵌套模型
    
    你可以定义任意深度的嵌套模型:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/body-nested-models.md

    {!../../../docs_src/body_nested_models/tutorial007.py!}
    ```
    
    !!! info "情報"
        `Offer`は`Item`のリストであり、オプションの`Image`のリストを持っていることに注目してください。
    
    ## 純粋なリストのボディ
    
    期待するJSONボディのトップレベルの値がJSON`array`(Pythonの`list`)であれば、Pydanticモデルと同じように、関数のパラメータで型を宣言することができます:
    
    ```Python
    images: List[Image]
    ```
    
    以下のように:
    
    ```Python hl_lines="15"
    {!../../../docs_src/body_nested_models/tutorial008.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  9. docs_src/path_params/tutorial005.py

        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
            return {"model_name": model_name, "message": "LeCNN all the images"}
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Aug 26 13:26:03 GMT 2022
    - 546 bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/body-nested-models.md

            "bar"
        ],
        "images": [
            {
                "url": "http://example.com/baz.jpg",
                "name": "The Foo live"
            },
            {
                "url": "http://example.com/dave.jpg",
                "name": "The Baz"
            }
        ]
    }
    ```
    
    !!! info "informação"
        Note como o campo `images` agora tem uma lista de objetos de image.
    
    ## Modelos profundamente aninhados
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top