Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for init (0.22 sec)

  1. fastapi/params.py

            use_kwargs = {k: v for k, v in kwargs.items() if v is not _Unset}
    
            super().__init__(**use_kwargs)
    
        def __repr__(self) -> str:
            return f"{self.__class__.__name__}({self.default})"
    
    
    class Path(Param):
        in_ = ParamTypes.path
    
        def __init__(
            self,
            default: Any = ...,
            *,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  2. fastapi/security/oauth2.py

        group and organize permissions, you could do it as well in your application, just
        know that that it is application specific, it's not part of the specification.
        """
    
        def __init__(
            self,
            *,
            grant_type: Annotated[
                Union[str, None],
                Form(pattern="password"),
                Doc(
                    """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  3. fastapi/security/http.py

            str,
            Doc(
                """
                The HTTP authorization credentials extracted from the header value.
                """
            ),
        ]
    
    
    class HTTPBase(SecurityBase):
        def __init__(
            self,
            *,
            scheme: str,
            scheme_name: Optional[str] = None,
            description: Optional[str] = None,
            auto_error: bool = True,
        ):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    В обоих случаях она будет иметь:
    
    * Необязательный параметр запроса `q`, представляющий собой `str`.
    * Параметр запроса `skip`, представляющий собой `int`, по умолчанию `0`.
    * Параметр запроса `limit`, представляющий собой `int`, по умолчанию равный `100`.
    
    В обоих случаях данные будут конвертированы, валидированы, документированы по схеме OpenAPI и т.д.
    
    ## Как это использовать
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 12 11:12:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/sql-databases.md

        在文档中也有一篇使用 Peewee 的等效的文章。
    
    ## 文件结构
    
    对于这些示例,假设您有一个名为的目录`my_super_project`,其中包含一个名为的子目录`sql_app`,其结构如下:
    
    ```
    .
    └── sql_app
        ├── __init__.py
        ├── crud.py
        ├── database.py
        ├── main.py
        ├── models.py
        └── schemas.py
    ```
    
    该文件`__init__.py`只是一个空文件,但它告诉 Python 其中`sql_app`的所有模块(Python 文件)都是一个包。
    
    现在让我们看看每个文件/模块的作用。
    
    ## 安装 SQLAlchemy
    
    先下载`SQLAlchemy`所需要的依赖:
    
    <div class="termy">
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/bigger-applications.md

    Let's say you have a file structure like this:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   ├── dependencies.py
    │   └── routers
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    │       └── admin.py
    ```
    
    !!! tip
        There are several `__init__.py` files: one in each directory or subdirectory.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. docs/ja/docs/deployment/concepts.md

        その場合は、このようなことを心配する必要はないです。🤷
    
    ### 事前ステップの戦略例
    
    これは**システムを**デプロイする方法に**大きく依存**するだろうし、おそらくプログラムの起動方法や再起動の処理などにも関係してくるでしょう。
    
    考えられるアイデアをいくつか挙げてみます:
    
    * アプリコンテナの前に実行されるKubernetesのInitコンテナ
    * 事前のステップを実行し、アプリケーションを起動するbashスクリプト
        * 利用するbashスクリプトを起動/再起動したり、エラーを検出したりする方法は以前として必要になるでしょう。
    
    !!! tip
       <!-- NOTE: the current version of docker.md is outdated compared to English one. -->
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/bigger-applications.md

    ## 一个文件结构示例
    
    假设你的文件结构如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   ├── dependencies.py
    │   └── routers
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    │       └── admin.py
    ```
    
    !!! tip
        上面有几个 `__init__.py` 文件:每个目录或子目录中都有一个。
    
        这就是能将代码从一个文件导入到另一个文件的原因。
    
        例如,在 `app/main.py` 中,你可以有如下一行:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  9. tests/test_query.py

                    }
                ]
            }
        )
    
    
    def test_query_int_query_42():
        response = client.get("/query/int?query=42")
        assert response.status_code == 200
        assert response.json() == "foo bar 42"
    
    
    def test_query_int_query_42_5():
        response = client.get("/query/int?query=42.5")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  10. docs/uk/docs/python-types.md

        ```
    
    === "Python 3.9 і вище"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial007_py39.py!}
        ```
    
    Це означає:
    
    * Змінна `items_t` це `tuple` з 3 елементами, `int`, ще `int`, та `str`.
    * Змінна `items_s` це `set`, і кожен його елемент типу `bytes`.
    
    #### Dict (словник)
    
    Щоб оголосити `dict`, вам потрібно передати 2 параметри типу, розділені комами.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top