FastAPI-fastkit 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fastapi_fastkit-0.1.0/LICENSE +21 -0
- fastapi_fastkit-0.1.0/PKG-INFO +46 -0
- fastapi_fastkit-0.1.0/README.md +27 -0
- fastapi_fastkit-0.1.0/pyproject.toml +80 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/__init__.py +10 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/__main__.py +8 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/backend.py +112 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/cli.py +432 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/core/__init__.py +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/core/exceptions.py +27 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/core/settings.py +107 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/PROJECT_README_TEMPLATE.md +66 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/README.md +20 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/__init__.py +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/.env.test-tpl +3 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/.gitignore-tpl +191 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/README.md-tpl +17 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/main.py-tpl +21 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/requirements.txt-tpl +47 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/script/run-server.sh-tpl +2 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/script/run-test.sh-tpl +2 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/setup.cfg-tpl +13 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/setup.py-tpl +35 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/.DS_Store +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/__init__.py-tpl +88 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/core/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/core/settings.py-tpl +96 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/crud/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/crud/_base.py-tpl +92 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/crud/user.py-tpl +44 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/helper/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/helper/exceptions.py-tpl +94 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/helper/global_data.py-tpl +33 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/helper/logging.py-tpl +25 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/helper/pagination.py-tpl +71 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/mocks/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/mocks/mock_users.json-tpl +17 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/router/__init__.py-tpl +48 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/router/user.py-tpl +126 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/schemas/__init__.py-tpl +48 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/schemas/user.py-tpl +81 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/templates/index.html-tpl +27 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/utils/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/src/utils/documents.py-tpl +20 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/test/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/test/conftest.py-tpl +22 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/test/routes/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-default/test/routes/test_user.py-tpl +112 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-dockerized/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/fastapi_project_template/fastapi-psql-orm/__init__.py-tpl +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/py.typed +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/utils/__init__.py +0 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/utils/inspector.py +15 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/utils/logging.py +33 -0
- fastapi_fastkit-0.1.0/src/fastapi_fastkit/utils/transducer.py +70 -0
- fastapi_fastkit-0.1.0/tests/.DS_Store +0 -0
- fastapi_fastkit-0.1.0/tests/__init__.py +0 -0
- fastapi_fastkit-0.1.0/tests/conftest.py +35 -0
- fastapi_fastkit-0.1.0/tests/test_backends/__init__.py +0 -0
- fastapi_fastkit-0.1.0/tests/test_backends/test_configure.py +39 -0
- fastapi_fastkit-0.1.0/tests/test_cli_operations/__init__.py +0 -0
- fastapi_fastkit-0.1.0/tests/test_cli_operations/test_cli.py +222 -0
- fastapi_fastkit-0.1.0/tests/test_rich/__init__.py +0 -0
- fastapi_fastkit-0.1.0/tests/test_rich/test_rich.py +27 -0
- fastapi_fastkit-0.1.0/tests/test_templates/__init__.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 이준혁
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: FastAPI-fastkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fast, easy-to-use starter kit for new users of Python and FastAPI
|
|
5
|
+
Author-Email: bnbong <bbbong9@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.12
|
|
8
|
+
Requires-Dist: click>=8.1.7
|
|
9
|
+
Requires-Dist: rich>=13.9.2
|
|
10
|
+
Requires-Dist: fastapi-cli>=0.0.5
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pytest>=8.3.3; extra == "dev"
|
|
13
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
|
|
14
|
+
Requires-Dist: black>=24.10.0; extra == "dev"
|
|
15
|
+
Requires-Dist: pre-commit>=4.0.1; extra == "dev"
|
|
16
|
+
Requires-Dist: mypy>=1.12.0; extra == "dev"
|
|
17
|
+
Requires-Dist: isort>=5.13.2; extra == "dev"
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img align="top" width="70%" src=".github/FastAPI-fastkit_logo/fastkit_general_logo.png" alt="FastAPI-fastkit"/>
|
|
22
|
+
</p>
|
|
23
|
+
<p align="center">
|
|
24
|
+
<em><b>FastAPI-fastkit</b>: Fast, easy-to-use starter kit for new users of Python and FastAPI</em>
|
|
25
|
+
</p>
|
|
26
|
+
<p align="center">
|
|
27
|
+
<a href="https://pypi.org/project/fastapi-fastkit" target="_blank">
|
|
28
|
+
<img src="https://img.shields.io/pypi/v/fastapi-fastkit" alt="PyPI - Version">
|
|
29
|
+
</a>
|
|
30
|
+
<a href="https://img.shields.io/github/v/release/bnbong/FastAPI-fastkit" target="_blank">
|
|
31
|
+
<img src="https://img.shields.io/github/v/release/bnbong/FastAPI-fastkit" alt="GitHub Release">
|
|
32
|
+
</a>
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
This project was created to speed up the configuration of the development environment needed to develop Python-based web apps for new users of Python and [FastAPI](https://github.com/fastapi/fastapi).
|
|
38
|
+
|
|
39
|
+
This project was inspired by the `SpringBoot initializer` of the JAVA ecosystem & Python Django's `django-admin` cli operation.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
(other content will be updated later)
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
@author bnbong bbbong9@gmail.com
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img align="top" width="70%" src=".github/FastAPI-fastkit_logo/fastkit_general_logo.png" alt="FastAPI-fastkit"/>
|
|
3
|
+
</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<em><b>FastAPI-fastkit</b>: Fast, easy-to-use starter kit for new users of Python and FastAPI</em>
|
|
6
|
+
</p>
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://pypi.org/project/fastapi-fastkit" target="_blank">
|
|
9
|
+
<img src="https://img.shields.io/pypi/v/fastapi-fastkit" alt="PyPI - Version">
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://img.shields.io/github/v/release/bnbong/FastAPI-fastkit" target="_blank">
|
|
12
|
+
<img src="https://img.shields.io/github/v/release/bnbong/FastAPI-fastkit" alt="GitHub Release">
|
|
13
|
+
</a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
This project was created to speed up the configuration of the development environment needed to develop Python-based web apps for new users of Python and [FastAPI](https://github.com/fastapi/fastapi).
|
|
19
|
+
|
|
20
|
+
This project was inspired by the `SpringBoot initializer` of the JAVA ecosystem & Python Django's `django-admin` cli operation.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
(other content will be updated later)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
@author bnbong bbbong9@gmail.com
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "FastAPI-fastkit"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Fast, easy-to-use starter kit for new users of Python and FastAPI"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "bnbong", email = "bbbong9@gmail.com" },
|
|
7
|
+
]
|
|
8
|
+
dependencies = [
|
|
9
|
+
"click>=8.1.7",
|
|
10
|
+
"rich>=13.9.2",
|
|
11
|
+
"fastapi-cli>=0.0.5",
|
|
12
|
+
]
|
|
13
|
+
requires-python = ">=3.12"
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
|
|
16
|
+
[project.license]
|
|
17
|
+
text = "MIT"
|
|
18
|
+
|
|
19
|
+
[project.optional-dependencies]
|
|
20
|
+
dev = [
|
|
21
|
+
"pytest>=8.3.3",
|
|
22
|
+
"pytest-cov>=5.0.0",
|
|
23
|
+
"black>=24.10.0",
|
|
24
|
+
"pre-commit>=4.0.1",
|
|
25
|
+
"mypy>=1.12.0",
|
|
26
|
+
"isort>=5.13.2",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
fastkit = "fastapi_fastkit.cli:fastkit_cli"
|
|
31
|
+
|
|
32
|
+
[build-system]
|
|
33
|
+
requires = [
|
|
34
|
+
"pdm-backend",
|
|
35
|
+
]
|
|
36
|
+
build-backend = "pdm.backend"
|
|
37
|
+
|
|
38
|
+
[tool.pdm]
|
|
39
|
+
distribution = true
|
|
40
|
+
|
|
41
|
+
[tool.pdm.version]
|
|
42
|
+
source = "file"
|
|
43
|
+
path = "src/fastapi_fastkit/__init__.py"
|
|
44
|
+
|
|
45
|
+
[tool.pdm.dev-dependencies]
|
|
46
|
+
test = [
|
|
47
|
+
"pytest>=8.3.3",
|
|
48
|
+
"pytest-cov>=5.0.0",
|
|
49
|
+
]
|
|
50
|
+
lint = [
|
|
51
|
+
"black>=24.10.0",
|
|
52
|
+
"mypy>=1.12.0",
|
|
53
|
+
"isort>=5.13.2",
|
|
54
|
+
]
|
|
55
|
+
dev = [
|
|
56
|
+
"pre-commit>=4.0.1",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[tool.pytest.ini_options]
|
|
60
|
+
testpaths = [
|
|
61
|
+
"test",
|
|
62
|
+
]
|
|
63
|
+
python_files = "test_*.py"
|
|
64
|
+
|
|
65
|
+
[tool.isort]
|
|
66
|
+
profile = "black"
|
|
67
|
+
|
|
68
|
+
[tool.mypy]
|
|
69
|
+
strict = true
|
|
70
|
+
|
|
71
|
+
[[tool.mypy.overrides]]
|
|
72
|
+
module = "fastapi_fastkit.cli"
|
|
73
|
+
disable_error_code = [
|
|
74
|
+
"func-returns-value",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[tool.mypy.overrides]]
|
|
78
|
+
module = "fastapi_fastkit.core"
|
|
79
|
+
ignore_missing_imports = true
|
|
80
|
+
check_untyped_defs = false
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------
|
|
2
|
+
# FastAPI-fastkit package main routine
|
|
3
|
+
#
|
|
4
|
+
# @author bnbong
|
|
5
|
+
# --------------------------------------------------------------------------
|
|
6
|
+
from fastapi_fastkit.cli import fastkit_cli
|
|
7
|
+
|
|
8
|
+
fastkit_cli()
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# --------------------------------------------------------------------------
|
|
2
|
+
# The Module defines backend operations for FastAPI-fastkit CLI.
|
|
3
|
+
#
|
|
4
|
+
# @author bnbong bbbong9@gmail.com
|
|
5
|
+
# --------------------------------------------------------------------------
|
|
6
|
+
import os
|
|
7
|
+
import re
|
|
8
|
+
from logging import getLogger
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
import click
|
|
12
|
+
from click.core import Context
|
|
13
|
+
from rich.panel import Panel
|
|
14
|
+
from rich.table import Table
|
|
15
|
+
from rich.text import Text
|
|
16
|
+
|
|
17
|
+
from fastapi_fastkit.core.exceptions import TemplateExceptions
|
|
18
|
+
|
|
19
|
+
from . import console
|
|
20
|
+
|
|
21
|
+
logger = getLogger(__name__)
|
|
22
|
+
|
|
23
|
+
REGEX = r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def print_error(message: str, title: str = "Error") -> None:
|
|
27
|
+
"""Print an error message with specified output style."""
|
|
28
|
+
error_text = Text()
|
|
29
|
+
error_text.append("❌ ", style="bold red")
|
|
30
|
+
error_text.append(message)
|
|
31
|
+
console.print(Panel(error_text, border_style="red", title=title))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def print_success(message: str, title: str = "Success") -> None:
|
|
35
|
+
"""Print a success message with specified output style."""
|
|
36
|
+
success_text = Text()
|
|
37
|
+
success_text.append("✨ ", style="bold yellow")
|
|
38
|
+
success_text.append(message, style="bold green")
|
|
39
|
+
console.print(Panel(success_text, border_style="green", title=title))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def print_warning(message: str, title: str = "Warning") -> None:
|
|
43
|
+
"""Print a warning message with specified output style."""
|
|
44
|
+
warning_text = Text()
|
|
45
|
+
warning_text.append("⚠️ ", style="bold yellow")
|
|
46
|
+
warning_text.append(message)
|
|
47
|
+
console.print(Panel(warning_text, border_style="yellow", title=title))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def create_info_table(
|
|
51
|
+
title: str, data: dict[str, str], show_header: bool = False
|
|
52
|
+
) -> Table:
|
|
53
|
+
"""Create a table for displaying information."""
|
|
54
|
+
table = Table(title=title, show_header=show_header, title_style="bold magenta")
|
|
55
|
+
table.add_column("Field", style="cyan")
|
|
56
|
+
table.add_column("Value", style="green")
|
|
57
|
+
|
|
58
|
+
for key, value in data.items():
|
|
59
|
+
table.add_row(key, value)
|
|
60
|
+
|
|
61
|
+
return table
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def validate_email(ctx: Context, param: Any, value: Any) -> Any:
|
|
65
|
+
"""Validate email format."""
|
|
66
|
+
try:
|
|
67
|
+
if not re.match(REGEX, value):
|
|
68
|
+
raise ValueError(value)
|
|
69
|
+
return value
|
|
70
|
+
except ValueError as e:
|
|
71
|
+
print_error(f"Incorrect email address given: {e}")
|
|
72
|
+
value = click.prompt(param.prompt)
|
|
73
|
+
return validate_email(ctx, param, value)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def inject_project_metadata(
|
|
77
|
+
target_dir: str,
|
|
78
|
+
project_name: str,
|
|
79
|
+
author: str,
|
|
80
|
+
author_email: str,
|
|
81
|
+
description: str,
|
|
82
|
+
) -> None:
|
|
83
|
+
"""Inject project metadata."""
|
|
84
|
+
try:
|
|
85
|
+
main_py_path = os.path.join(target_dir, "main.py")
|
|
86
|
+
setup_py_path = os.path.join(target_dir, "setup.py")
|
|
87
|
+
|
|
88
|
+
with open(main_py_path, "r+") as f:
|
|
89
|
+
content = f.read()
|
|
90
|
+
content = content.replace("app_title", f'"{project_name}"')
|
|
91
|
+
content = content.replace("app_description", f'"{description}"')
|
|
92
|
+
f.seek(0)
|
|
93
|
+
f.write(content)
|
|
94
|
+
f.truncate()
|
|
95
|
+
|
|
96
|
+
with open(setup_py_path, "r+") as f:
|
|
97
|
+
content = f.read()
|
|
98
|
+
content = content.replace("<project_name>", project_name, 1)
|
|
99
|
+
content = content.replace("<description>", description, 1)
|
|
100
|
+
content = content.replace("<author>", author, 1)
|
|
101
|
+
content = content.replace("<author_email>", author_email, 1)
|
|
102
|
+
f.seek(0)
|
|
103
|
+
f.write(content)
|
|
104
|
+
f.truncate()
|
|
105
|
+
except Exception as e:
|
|
106
|
+
print_error(f"Error during metadata injection: {e}")
|
|
107
|
+
raise TemplateExceptions("Failed to inject metadata")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
# TODO : modify this function
|
|
111
|
+
# def read_template_stack() -> Union[list, None]:
|
|
112
|
+
# pass
|