shadowshell 0.0.77__tar.gz → 0.0.81__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 (38) hide show
  1. {shadowshell-0.0.77 → shadowshell-0.0.81}/PKG-INFO +1 -1
  2. {shadowshell-0.0.77 → shadowshell-0.0.81}/pyproject.toml +1 -1
  3. shadowshell-0.0.81/src/shadowshell/boot/starter.py +30 -0
  4. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/config/configurator.py +0 -1
  5. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logging/console_logger.py +1 -1
  6. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell.egg-info/PKG-INFO +1 -1
  7. shadowshell-0.0.77/src/shadowshell/boot/starter.py +0 -11
  8. {shadowshell-0.0.77 → shadowshell-0.0.81}/README.md +0 -0
  9. {shadowshell-0.0.77 → shadowshell-0.0.81}/setup.cfg +0 -0
  10. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/__init__.py +0 -0
  11. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/boot/__init__.py +0 -0
  12. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/bootstrap.py +0 -0
  13. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/config/__init__.py +0 -0
  14. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/configurator.py +0 -0
  15. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/console_logger.py +0 -0
  16. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/file/__init__.py +0 -0
  17. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/file/file_util.py +0 -0
  18. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/git_shell.py +0 -0
  19. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logger.py +0 -0
  20. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logger_factory.py +0 -0
  21. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logging/__init__.py +0 -0
  22. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logging/logger.py +0 -0
  23. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logging/logger_factory.py +0 -0
  24. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/logging/logging_constants.py +0 -0
  25. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/monitor/__init__.py +0 -0
  26. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/monitor/monitor.py +0 -0
  27. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/serialize/__init__.py +0 -0
  28. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/serialize/serializer.py +0 -0
  29. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/serialize/serializer_factory.py +0 -0
  30. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/serialize/serializer_json.py +0 -0
  31. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/stock_trader.py +0 -0
  32. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/test/__init__.py +0 -0
  33. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell/test/test.py +0 -0
  34. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell.egg-info/SOURCES.txt +0 -0
  35. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell.egg-info/dependency_links.txt +0 -0
  36. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell.egg-info/requires.txt +0 -0
  37. {shadowshell-0.0.77 → shadowshell-0.0.81}/src/shadowshell.egg-info/top_level.txt +0 -0
  38. {shadowshell-0.0.77 → shadowshell-0.0.81}/tests/tests.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowshell
3
- Version: 0.0.77
3
+ Version: 0.0.81
4
4
  Summary: www.shadowshell.xyz
5
5
  Author-email: shadowshell <shadowshellxyz@foxmail.com>
6
6
  License: MIT
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
7
7
  #version = "0.0.41" # 版本号(每次更新需递增)
8
- version = "0.0.77" # 版本号(每次更新需递增)
8
+ version = "0.0.81" # 版本号(每次更新需递增)
9
9
  authors = [{ name = "shadowshell", email = "shadowshellxyz@foxmail.com" }]
10
10
  description = "www.shadowshell.xyz"
11
11
  readme = "README.md"
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @author: shadowshell
6
+ """
7
+
8
+ from shadowshell.logging import LoggingConstants, LoggerFactory
9
+ from shadowshell.config import Configurator
10
+ from shadowshell.monitor import function_monitor, performance_monitor
11
+
12
+ class_mame = "Starter"
13
+
14
+ class Starter:
15
+
16
+ @function_monitor(class_mame)
17
+ def __init__(self):
18
+ """ 初始化"""
19
+ # 日志
20
+ LoggingConstants.LEVEL_INFO = True
21
+ self.logger = LoggerFactory.get_logger()
22
+ # 配置
23
+ config_file_path = self.get_config_file_path()
24
+ if config_file_path is not None:
25
+ self.configurator = Configurator(config_file_path)
26
+
27
+ @function_monitor(class_mame)
28
+ def get_config_file_path(self):
29
+ """ 获取配置文件路径"""
30
+ return None
@@ -8,7 +8,6 @@ Configurator
8
8
 
9
9
  import configparser
10
10
 
11
- from shadowshell.logging import LoggerFactory
12
11
  from shadowshell.monitor import function_monitor
13
12
 
14
13
  class_name = "Configurator"
@@ -28,4 +28,4 @@ class ConsoleLogger(Logger):
28
28
  self.__log("ERROR", content)
29
29
 
30
30
  def __log(self, key, content):
31
- print("[%s]%s" % (content))
31
+ print("[%s]%s" % (key, content))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowshell
3
- Version: 0.0.77
3
+ Version: 0.0.81
4
4
  Summary: www.shadowshell.xyz
5
5
  Author-email: shadowshell <shadowshellxyz@foxmail.com>
6
6
  License: MIT
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- """
5
- @author: shadowshell
6
- """
7
-
8
- class Starter:
9
-
10
- def __init__(self):
11
- pass
File without changes
File without changes