faster-app 0.0.1__tar.gz → 0.0.2__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.
Files changed (34) hide show
  1. {faster_app-0.0.1 → faster_app-0.0.2}/PKG-INFO +3 -3
  2. {faster_app-0.0.1 → faster_app-0.0.2}/README.md +2 -2
  3. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/__init__.py +1 -1
  4. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/base.py +1 -0
  5. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/discover.py +1 -1
  6. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/discover.py +1 -1
  7. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/settings/builtins/settings.py +1 -1
  8. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/settings/discover.py +1 -1
  9. faster_app-0.0.2/faster_app/statics/swagger-ui-bundle.min.js +87627 -0
  10. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app.egg-info/PKG-INFO +3 -3
  11. {faster_app-0.0.1 → faster_app-0.0.2}/pyproject.toml +1 -1
  12. faster_app-0.0.1/faster_app/statics/swagger-ui-bundle.min.js +0 -11
  13. {faster_app-0.0.1 → faster_app-0.0.2}/LICENSE +0 -0
  14. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/__init__.py +0 -0
  15. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/base.py +0 -0
  16. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/builtins/__init__.py +0 -0
  17. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/builtins/db.py +0 -0
  18. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/commands/builtins/fastapi.py +0 -0
  19. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/db.py +0 -0
  20. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/models/__init__.py +0 -0
  21. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/models/base.py +0 -0
  22. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/models/discover.py +0 -0
  23. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/__init__.py +0 -0
  24. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/base.py +0 -0
  25. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/builtins/__init__.py +0 -0
  26. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/builtins/defaults.py +0 -0
  27. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/routes/builtins/swagger.py +0 -0
  28. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/settings/__init__.py +0 -0
  29. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app/statics/swagger-ui.min.css +0 -0
  30. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app.egg-info/SOURCES.txt +0 -0
  31. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app.egg-info/dependency_links.txt +0 -0
  32. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app.egg-info/requires.txt +0 -0
  33. {faster_app-0.0.1 → faster_app-0.0.2}/faster_app.egg-info/top_level.txt +0 -0
  34. {faster_app-0.0.1 → faster_app-0.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster_app
3
- Version: 0.0.1
3
+ Version: 0.0.2
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.1"
204
+ HOST: str = "127.0.0.2"
205
205
  PORT: int = 8000
206
206
 
207
207
  # API 配置
@@ -269,7 +269,7 @@ SECRET_KEY=your-secret-key-here
269
269
 
270
270
  ## 📈 更新日志
271
271
 
272
- ### v0.0.1 (2025-09-09)
272
+ ### v0.0.2 (2025-09-09)
273
273
 
274
274
  - 🎉 初始版本发布
275
275
  - ✅ 提供基础的自动发现功能
@@ -176,7 +176,7 @@ class Settings(BaseSettings):
176
176
  DEBUG: bool = True
177
177
 
178
178
  # 服务器配置
179
- HOST: str = "127.0.0.1"
179
+ HOST: str = "127.0.0.2"
180
180
  PORT: int = 8000
181
181
 
182
182
  # API 配置
@@ -244,7 +244,7 @@ SECRET_KEY=your-secret-key-here
244
244
 
245
245
  ## 📈 更新日志
246
246
 
247
- ### v0.0.1 (2025-09-09)
247
+ ### v0.0.2 (2025-09-09)
248
248
 
249
249
  - 🎉 初始版本发布
250
250
  - ✅ 提供基础的自动发现功能
@@ -9,7 +9,7 @@ Faster API - 一个轻量级的 Python Web 框架
9
9
  - 数据库连接管理 (tortoise_init)
10
10
  """
11
11
 
12
- __version__ = "0.0.1"
12
+ __version__ = "0.0.2"
13
13
  __author__ = "peizhenfei"
14
14
  __email__ = "peizhenfei@hotmail.com"
15
15
 
@@ -7,6 +7,7 @@ from typing import Dict, List
7
7
  class DiscoverBase(object):
8
8
  INSTANCE_TYPE = None
9
9
  TARGETS: List[Dict[str, str]] = []
10
+ FASTER_APP_PATH = os.path.dirname(os.path.dirname(__file__))
10
11
 
11
12
  def discover(self) -> List[type]:
12
13
  """
@@ -16,7 +16,7 @@ class CommandDiscover(DiscoverBase):
16
16
  "skip_files": [],
17
17
  },
18
18
  {
19
- "directory": "commands/builtins",
19
+ "directory": f"{DiscoverBase.FASTER_APP_PATH}/commands/builtins",
20
20
  "filename": None,
21
21
  "skip_dirs": ["__pycache__"],
22
22
  "skip_files": [],
@@ -12,7 +12,7 @@ class RoutesDiscover(DiscoverBase):
12
12
  "skip_files": [],
13
13
  },
14
14
  {
15
- "directory": "routes/builtins",
15
+ "directory": f"{DiscoverBase.FASTER_APP_PATH}/routes/builtins",
16
16
  "filename": None,
17
17
  "skip_dirs": ["__pycache__"],
18
18
  "skip_files": [],
@@ -11,7 +11,7 @@ class DefaultSettings(BaseSettings):
11
11
 
12
12
  # 基础配置
13
13
  PROJECT_NAME: str = "Faster API"
14
- VERSION: str = "0.0.1"
14
+ VERSION: str = "0.0.2"
15
15
  DEBUG: bool = True
16
16
 
17
17
  # Server 配置
@@ -20,7 +20,7 @@ class SettingsDiscover(DiscoverBase):
20
20
  "skip_files": [],
21
21
  },
22
22
  {
23
- "directory": "settings/builtins",
23
+ "directory": f"{DiscoverBase.FASTER_APP_PATH}/settings/builtins",
24
24
  "filename": "settings.py",
25
25
  "skip_dirs": ["__pycache__"],
26
26
  "skip_files": [],