Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 228 for init (0.2 sec)

  1. fastapi/__init__.py

    Sebastián Ramírez <******@****.***> 1713486707 -0500
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Apr 19 00:31:47 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. docs/de/docs/reference/responses.md

                - render
                - init_headers
                - headers
                - set_cookie
                - delete_cookie
    
    ::: fastapi.responses.ORJSONResponse
        options:
            members:
                - charset
                - status_code
                - media_type
                - body
                - background
                - raw_headers
                - render
                - init_headers
                - headers
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Feb 19 15:53:39 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. docs/de/docs/how-to/custom-docs-ui-assets.md

    Nehmen wir an, die Dateistruktur Ihres Projekts sieht folgendermaßen aus:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    ```
    
    Erstellen Sie jetzt ein Verzeichnis zum Speichern dieser statischen Dateien.
    
    Ihre neue Dateistruktur könnte so aussehen:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    └── static/
    ```
    
    ### Die Dateien herunterladen
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:17:36 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/extending-openapi.md

    这种做法很常用,例如,在没有联网或本地局域网时也能让应用在离线状态下正常运行。
    
    本文介绍如何为 FastAPI 应用提供文件自托管服务,并设置文档使用这些文件。
    
    ### 项目文件架构
    
    假设项目文件架构如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    ```
    
    接下来,创建存储静态文件的文件夹。
    
    新的文件架构如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    └── static/
    ```
    
    ### 下载文件
    
    下载文档所需的静态文件,把文件放到 `static/` 文件夹里。
    
    右键点击链接,选择**另存为...**。
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. pyproject.toml

        "orjson >=3.2.1",
        "email_validator >=2.0.0",
        "uvicorn[standard] >=0.12.0",
        "pydantic-settings >=2.0.0",
        "pydantic-extra-types >=2.0.0",
    ]
    
    [tool.hatch.version]
    path = "fastapi/__init__.py"
    
    [tool.mypy]
    strict = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.concurrency"
    warn_unused_ignores = false
    ignore_missing_imports = true
    
    [[tool.mypy.overrides]]
    module = "fastapi.tests.*"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:28:39 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/testing.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   └── main.py
    ```
    
    In the file `main.py` you have your **FastAPI** app:
    
    
    ```Python
    {!../../../docs_src/app_testing/main.py!}
    ```
    
    ### Testing file
    
    Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file):
    
    ``` hl_lines="5"
    .
    ├── app
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top