faster-app 0.0.7__tar.gz → 0.0.8__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.
- {faster_app-0.0.7 → faster_app-0.0.8}/PKG-INFO +2 -2
- {faster_app-0.0.7 → faster_app-0.0.8}/README.md +1 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/__init__.py +1 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/settings/builtins/settings.py +1 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/statics/swagger-ui-bundle.min.js +1 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/templates/config/settings.py +1 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app.egg-info/PKG-INFO +2 -2
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app.egg-info/SOURCES.txt +2 -0
- faster_app-0.0.8/faster_app.egg-info/entry_points.txt +2 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app.egg-info/top_level.txt +1 -0
- faster_app-0.0.8/main.py +27 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/pyproject.toml +7 -1
- {faster_app-0.0.7 → faster_app-0.0.8}/LICENSE +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/base.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/base.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/builtins/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/builtins/app.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/builtins/db.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/builtins/fastapi.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/commands/discover.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/db.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/models/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/models/base.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/models/discover.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/base.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/builtins/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/builtins/defaults.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/builtins/swagger.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/routes/discover.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/settings/__init__.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/settings/discover.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/statics/swagger-ui.min.css +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/templates/apps/demo/commands.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/templates/apps/demo/models.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app/templates/apps/demo/routes.py +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app.egg-info/dependency_links.txt +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/faster_app.egg-info/requires.txt +0 -0
- {faster_app-0.0.7 → faster_app-0.0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: faster_app
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.8
|
4
4
|
Summary: 一个轻量级的 Python Web 框架,提供自动发现、模型基类、命令行工具等功能
|
5
5
|
Author-email: peizhenfei <peizhenfei@hotmail.com>
|
6
6
|
Maintainer-email: peizhenfei <peizhenfei@hotmail.com>
|
@@ -201,7 +201,7 @@ class Settings(BaseSettings):
|
|
201
201
|
DEBUG: bool = True
|
202
202
|
|
203
203
|
# 服务器配置
|
204
|
-
HOST: str = "127.0.0.
|
204
|
+
HOST: str = "127.0.0.8"
|
205
205
|
PORT: int = 8000
|
206
206
|
|
207
207
|
# API 配置
|
@@ -31826,7 +31826,7 @@ ${u.current.stack}
|
|
31826
31826
|
return !(
|
31827
31827
|
!e ||
|
31828
31828
|
0 <= r()(e).call(e, "localhost") ||
|
31829
|
-
0 <= r()(e).call(e, "127.0.0.
|
31829
|
+
0 <= r()(e).call(e, "127.0.0.8") ||
|
31830
31830
|
"none" === e
|
31831
31831
|
);
|
31832
31832
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: faster_app
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.8
|
4
4
|
Summary: 一个轻量级的 Python Web 框架,提供自动发现、模型基类、命令行工具等功能
|
5
5
|
Author-email: peizhenfei <peizhenfei@hotmail.com>
|
6
6
|
Maintainer-email: peizhenfei <peizhenfei@hotmail.com>
|
@@ -201,7 +201,7 @@ class Settings(BaseSettings):
|
|
201
201
|
DEBUG: bool = True
|
202
202
|
|
203
203
|
# 服务器配置
|
204
|
-
HOST: str = "127.0.0.
|
204
|
+
HOST: str = "127.0.0.8"
|
205
205
|
PORT: int = 8000
|
206
206
|
|
207
207
|
# API 配置
|
@@ -1,5 +1,6 @@
|
|
1
1
|
LICENSE
|
2
2
|
README.md
|
3
|
+
main.py
|
3
4
|
pyproject.toml
|
4
5
|
faster_app/__init__.py
|
5
6
|
faster_app/base.py
|
@@ -7,6 +8,7 @@ faster_app/db.py
|
|
7
8
|
faster_app.egg-info/PKG-INFO
|
8
9
|
faster_app.egg-info/SOURCES.txt
|
9
10
|
faster_app.egg-info/dependency_links.txt
|
11
|
+
faster_app.egg-info/entry_points.txt
|
10
12
|
faster_app.egg-info/requires.txt
|
11
13
|
faster_app.egg-info/top_level.txt
|
12
14
|
faster_app/commands/__init__.py
|
faster_app-0.0.8/main.py
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
"""
|
2
|
+
Faster APP 命令行入口
|
3
|
+
"""
|
4
|
+
|
5
|
+
import fire
|
6
|
+
from faster_app.commands.discover import CommandDiscover
|
7
|
+
|
8
|
+
|
9
|
+
def main():
|
10
|
+
"""
|
11
|
+
Faster APP 命令行入口点
|
12
|
+
"""
|
13
|
+
command_instances = CommandDiscover().discover()
|
14
|
+
|
15
|
+
# 将命令实例转换为字典,使用类名作为键
|
16
|
+
commands = {}
|
17
|
+
for instance in command_instances:
|
18
|
+
# 使用 CommandBase 的 get_command_name 方法自动去除后缀
|
19
|
+
command_name = instance.get_command_name()
|
20
|
+
commands[command_name] = instance
|
21
|
+
|
22
|
+
# 直接传递命令字典给 Fire
|
23
|
+
fire.Fire(commands)
|
24
|
+
|
25
|
+
|
26
|
+
if __name__ == "__main__":
|
27
|
+
main()
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "faster_app"
|
7
|
-
version = "0.0.
|
7
|
+
version = "0.0.8"
|
8
8
|
description = "一个轻量级的 Python Web 框架,提供自动发现、模型基类、命令行工具等功能"
|
9
9
|
readme = "README.md"
|
10
10
|
license = "MIT"
|
@@ -36,8 +36,14 @@ where = ["."]
|
|
36
36
|
include = ["faster_app*"]
|
37
37
|
exclude = ["tests*", "docs*", "__pycache__*", "*.pyc", "*.pyo"]
|
38
38
|
|
39
|
+
[tool.setuptools]
|
40
|
+
py-modules = ["main"]
|
41
|
+
|
39
42
|
[tool.setuptools.package-data]
|
40
43
|
"faster_app" = ["statics/*"]
|
41
44
|
|
45
|
+
[project.scripts]
|
46
|
+
faster-app = "main:main"
|
47
|
+
|
42
48
|
[dependency-groups]
|
43
49
|
dev = ["build>=1.3.0", "twine>=6.2.0"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|