faster-app 0.0.6__tar.gz → 0.0.7__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.6 → faster_app-0.0.7}/PKG-INFO +2 -2
- {faster_app-0.0.6 → faster_app-0.0.7}/README.md +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/__init__.py +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/builtins/app.py +13 -5
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/settings/builtins/settings.py +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/statics/swagger-ui-bundle.min.js +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/templates/config/settings.py +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app.egg-info/PKG-INFO +2 -2
- {faster_app-0.0.6 → faster_app-0.0.7}/pyproject.toml +1 -1
- {faster_app-0.0.6 → faster_app-0.0.7}/LICENSE +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/base.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/base.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/builtins/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/builtins/db.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/builtins/fastapi.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/commands/discover.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/db.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/models/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/models/base.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/models/discover.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/base.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/builtins/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/builtins/defaults.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/builtins/swagger.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/routes/discover.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/settings/__init__.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/settings/discover.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/statics/swagger-ui.min.css +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/templates/apps/demo/commands.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/templates/apps/demo/models.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app/templates/apps/demo/routes.py +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app.egg-info/SOURCES.txt +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app.egg-info/dependency_links.txt +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app.egg-info/requires.txt +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/faster_app.egg-info/top_level.txt +0 -0
- {faster_app-0.0.6 → faster_app-0.0.7}/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.7
|
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.7"
|
205
205
|
PORT: int = 8000
|
206
206
|
|
207
207
|
# API 配置
|
@@ -1,11 +1,24 @@
|
|
1
1
|
import os
|
2
2
|
import shutil
|
3
3
|
from faster_app.commands.base import CommandBase
|
4
|
+
from rich.console import Console
|
5
|
+
|
6
|
+
console = Console()
|
4
7
|
|
5
8
|
|
6
9
|
class AppCommand(CommandBase):
|
7
10
|
"""App Command"""
|
8
11
|
|
12
|
+
async def init(self):
|
13
|
+
"""Run Init App"""
|
14
|
+
# 拷贝项目根路径下的 main.py 文件到项目根路径
|
15
|
+
shutil.copy(f"{self.BASE_PATH}/main.py", "main.py")
|
16
|
+
console.print("✅ main.py created successfully")
|
17
|
+
|
18
|
+
# 拷贝项目根路径下的 .env.example 文件到项目根路径
|
19
|
+
shutil.copy(f"{self.BASE_PATH}/.env.example", ".env")
|
20
|
+
console.print("✅ .env created successfully")
|
21
|
+
|
9
22
|
async def demo(self):
|
10
23
|
"""Run Demo"""
|
11
24
|
# 项目根路径下创建 apps 目录,如果存在则跳过
|
@@ -23,8 +36,3 @@ class AppCommand(CommandBase):
|
|
23
36
|
shutil.copytree(
|
24
37
|
f"{self.BASE_PATH}/templates/config/settings.py", "config/settings.py"
|
25
38
|
)
|
26
|
-
|
27
|
-
async def env(self):
|
28
|
-
"""create .env file"""
|
29
|
-
# 拷贝项目根路径下的 .env.example 文件到项目根路径
|
30
|
-
shutil.copy(f"{self.BASE_PATH}/.env.example", ".env")
|
@@ -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.7") ||
|
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.7
|
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.7"
|
205
205
|
PORT: int = 8000
|
206
206
|
|
207
207
|
# API 配置
|
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
|
File without changes
|