Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 728 for python (2.02 sec)

  1. ci/official/utilities/convert_msys_paths_to_win_paths.py

        if not value or not should_convert(var,
                                           parsed_args.blacklist,
                                           parsed_args.whitelist_prefix):
          continue
    
        # In Python, MSYS, Linux-like paths are automatically read as Windows paths
        # with forward slashes, e.g. 'C:/Program Files', instead of
        # '/c/Program Files', thus becoming converted simply by virtue of having
        # been read.
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Wed Aug 07 23:01:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. 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)
  3. docs/ru/docs/tutorial/path-params-numeric-validations.md

    * объявить path-параметр `item_id` с помощью `Path`
    * указать их в другом порядке
    * не использовать `Annotated`
    
    ...то вы можете использовать специальную возможность синтаксиса Python.
    
    Передайте `*` в качестве первого параметра функции.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. fastapi/applications.py

        """
        `FastAPI` app class, the main entrypoint to use FastAPI.
    
        Read more in the
        [FastAPI docs for First Steps](https://fastapi.tiangolo.com/tutorial/first-steps/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI
    
        app = FastAPI()
        ```
        """
    
        def __init__(
            self: AppType,
            *,
            debug: Annotated[
                bool,
                Doc(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/security/first-steps.md

    把下面的示例代码复制到 `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## 运行
    
    /// info | 说明
    
    先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
    安装命令: `pip install python-multipart`。
    
    这是因为 **OAuth2** 使用**表单数据**发送 `username` 与 `password`。
    
    ///
    
    用下面的命令运行该示例:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. fastapi/security/oauth2.py

        Read more about it in the
        [FastAPI docs for Simple OAuth2 with Password and Bearer](https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/).
    
        ## Example
    
        ```python
        from typing import Annotated
    
        from fastapi import Depends, FastAPI
        from fastapi.security import OAuth2PasswordRequestForm
    
        app = FastAPI()
    
    
        @app.post("/login")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/handling-errors.md

    ### Імпорт `HTTPException`
    
    {* ../../docs_src/handling_errors/tutorial001.py hl[1] *}
    
    ### Використання `HTTPException` у коді
    
    `HTTPException` — це звичайна помилка Python із додатковими даними, які стосуються API.
    
    Оскільки це помилка Python, Ви не `повертаєте` його, а `генеруєте` (генеруєте помилку).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/dependencies/index.md

    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    Mas como estamos utilizando `Annotated`, podemos guardar esse valor `Annotated` em uma variável e utilizá-la em múltiplos locais:
    
    {* ../../docs_src/dependencies/tutorial001_02_an_py310.py hl[12,16,21] *}
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/middleware.md

    In der Dokumentation für ASGI-Middlewares von Drittanbietern wird Ihnen wahrscheinlich gesagt, dass Sie etwa Folgendes tun sollen:
    
    ```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
    - 5.1K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/async-tests.md

    El `TestClient` está basado en <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, y afortunadamente, podemos usarlo directamente para probar la API.
    
    ## Ejemplo { #example }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top