Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 645 for Pythons (0.04 sec)

  1. fastapi/exceptions.py

        errors in your code.
    
        Read more about it in the
        [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI, HTTPException
    
        app = FastAPI()
    
        items = {"foo": "The Foo Wrestlers"}
    
    
        @app.get("/items/{item_id}")
        async def read_item(item_id: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. docs/ja/docs/deployment/server-workers.md

    ```
    
    </div>
    
    それぞれのオプションの意味を見てみましょう:
    
    * `main:app`: `main`は"`main`"という名前のPythonモジュール、つまりファイル`main.py`を意味します。そして `app` は **FastAPI** アプリケーションの変数名です。
        * main:app`はPythonの`import`文と同じようなものだと想像できます:
    
            ```Python
            from main import app
            ```
    
        * つまり、`main:app`のコロンは、`from main import app`のPythonの`import`の部分と同じになります。
    
    * `--workers`: 使用するワーカー・プロセスの数で、それぞれがUvicornのワーカーを実行します。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/async-tests.md

    The `TestClient` is based on <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, and luckily, we can use it directly to test the API.
    
    ## Example { #example }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/middleware.md

    В общем случае ASGI middleware — это классы, которые ожидают получить ASGI‑приложение первым аргументом.
    
    Поэтому в документации к сторонним ASGI middleware, скорее всего, вы увидите что‑то вроде:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. docs/en/docs/reference/fastapi.md

    # `FastAPI` class
    
    Here's the reference information for the `FastAPI` class, with all its parameters, attributes and methods.
    
    You can import the `FastAPI` class directly from `fastapi`:
    
    ```python
    from fastapi import FastAPI
    ```
    
    ::: fastapi.FastAPI
        options:
            members:
                - openapi_version
                - webhooks
                - state
                - dependency_overrides
                - openapi
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 701 bytes
    - Viewed (0)
  6. docs/en/mkdocs.yml

          advanced/extending-openapi.md: how-to/extending-openapi.md
          advanced/testing-database.md: how-to/testing-database.md
      mkdocstrings:
        handlers:
          python:
            options:
              extensions:
              - griffe_typingdoc
              show_root_heading: true
              show_if_no_docstring: true
              preload_modules:
              - httpx
              - starlette
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:44:55 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/dependencies/index.md

    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    Pero como estamos usando `Annotated`, podemos almacenar ese valor `Annotated` en una variable y usarlo en múltiples lugares:
    
    {* ../../docs_src/dependencies/tutorial001_02_an_py310.py hl[12,16,21] *}
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/path-params-numeric-validations.md

    * déclarer le paramètre de chemin `item_id` en utilisant `Path`
    * les avoir dans un ordre différent
    * ne pas utiliser `Annotated`
    
    ...Python a une petite syntaxe spéciale pour cela.
    
    Passez `*`, comme premier paramètre de la fonction.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/path-params-numeric-validations.md

    * declarar o parâmetro de path `item_id` usando `Path`
    * tê-los em uma ordem diferente
    * não usar `Annotated`
    
    ...o Python tem uma pequena sintaxe especial para isso.
    
    Passe `*`, como o primeiro parâmetro da função.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. docs/fr/docs/advanced/additional-responses.md

    Dans ces cas, vous pouvez utiliser la technique Python "d'affection par décomposition" (appelé _unpacking_ en anglais) d'un `dict` avec `**dict_to_unpack` :
    
    ```Python
    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top