Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 387 for Image (0.03 seconds)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

                    "price": 35.4,
                    "tax": 3.2,
                    "tags": ["foo"],
                    "images": [
                        {
                            "url": "http://example.com/image.png",
                            "name": "example image",
                        }
                    ],
                }
            ],
        }
    
        response = client.post(
            "/offers/",
            json=data,
        )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  2. docs/fr/docs/deployment/docker.md

    ## Qu'est-ce qu'une image de conteneur { #what-is-a-container-image }
    
    Un **conteneur** s'exécute à partir d'une **image de conteneur**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 32.3K bytes
    - Click Count (0)
  3. docs/en/docs/deployment/concepts.md

    * **Cloud services** that handle this for you
        * The cloud service will probably **handle replication for you**. It would possibly let you define **a process to run**, or a **container image** to use, in any case, it would most probably be **a single Uvicorn process**, and the cloud service would be in charge of replicating it.
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 18.5K bytes
    - Click Count (1)
  4. docs/resiliency/resiliency-tests.sh

    		echo Removing docker $container
    		docker rm -f $container >/dev/null 2>&1
    		docker wait $container
    	done
    }
    
    function cleanup_and_prune() {
    	cleanup
    	docker system prune --volumes --force
    	docker image prune --all --force
    }
    
    function verify_resiliency() {
    	docs/resiliency/resiliency-verify-script.sh
    	RESULT=$(grep "script passed" <resiliency-verify.log)
    	if [ "$RESULT" != "script passed" ]; then
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Dec 21 04:24:45 GMT 2024
    - 20.5K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    @workdir_lock
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  6. docs/tr/docs/deployment/docker.md

    ## Container Image Nedir { #what-is-a-container-image }
    
    Bir **container**, bir **container image**'dan çalıştırılır.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 29.6K bytes
    - Click Count (0)
  7. docs/de/docs/deployment/docker.md

    ## Ein Docker-Image für FastAPI erstellen { #build-a-docker-image-for-fastapi }
    
    Okay, wollen wir jetzt etwas bauen! 🚀
    
    Ich zeige Ihnen, wie Sie ein **Docker-Image** für FastAPI **von Grund auf** erstellen, basierend auf dem **offiziellen Python**-Image.
    
    Das ist, was Sie in **den meisten Fällen** tun möchten, zum Beispiel:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  8. docs/tr/docs/tutorial/body-nested-models.md

    `Offer`’ın bir `Item` list’i olduğuna, `Item`’ların da opsiyonel bir `Image` list’ine sahip olduğuna dikkat edin.
    
    ///
    
    ## Sadece list olan body’ler { #bodies-of-pure-lists }
    
    Beklediğiniz JSON body’nin en üst seviye değeri bir JSON `array` (Python’da `list`) ise, tipi Pydantic modellerinde olduğu gibi fonksiyonun parametresinde tanımlayabilirsiniz:
    
    ```Python
    images: list[Image]
    ```
    
    şu örnekte olduğu gibi:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/body-nested-models.md

    Observa cómo `Offer` tiene una lista de `Item`s, que a su vez tienen una lista opcional de `Image`s
    
    ///
    
    ## Cuerpos de listas puras { #bodies-of-pure-lists }
    
    Si el valor superior del cuerpo JSON que esperas es un `array` JSON (una `list` en Python), puedes declarar el tipo en el parámetro de la función, al igual que en los modelos Pydantic:
    
    ```Python
    images: list[Image]
    ```
    
    como en:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  10. docs_src/body_nested_models/tutorial005_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()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 468 bytes
    - Click Count (0)
Back to Top