shadowshell 0.0.76__tar.gz → 0.0.78__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 (37) hide show
  1. {shadowshell-0.0.76 → shadowshell-0.0.78}/PKG-INFO +1 -1
  2. {shadowshell-0.0.76 → shadowshell-0.0.78}/pyproject.toml +1 -1
  3. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/config/configurator.py +0 -1
  4. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logging/console_logger.py +8 -6
  5. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logging/logging_constants.py +3 -1
  6. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/monitor/monitor.py +2 -3
  7. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell.egg-info/PKG-INFO +1 -1
  8. {shadowshell-0.0.76 → shadowshell-0.0.78}/README.md +0 -0
  9. {shadowshell-0.0.76 → shadowshell-0.0.78}/setup.cfg +0 -0
  10. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/__init__.py +0 -0
  11. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/boot/__init__.py +0 -0
  12. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/boot/starter.py +0 -0
  13. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/bootstrap.py +0 -0
  14. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/config/__init__.py +0 -0
  15. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/configurator.py +0 -0
  16. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/console_logger.py +0 -0
  17. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/file/__init__.py +0 -0
  18. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/file/file_util.py +0 -0
  19. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/git_shell.py +0 -0
  20. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logger.py +0 -0
  21. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logger_factory.py +0 -0
  22. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logging/__init__.py +0 -0
  23. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logging/logger.py +0 -0
  24. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/logging/logger_factory.py +0 -0
  25. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/monitor/__init__.py +0 -0
  26. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/serialize/__init__.py +0 -0
  27. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/serialize/serializer.py +0 -0
  28. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/serialize/serializer_factory.py +0 -0
  29. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/serialize/serializer_json.py +0 -0
  30. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/stock_trader.py +0 -0
  31. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/test/__init__.py +0 -0
  32. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell/test/test.py +0 -0
  33. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell.egg-info/SOURCES.txt +0 -0
  34. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell.egg-info/dependency_links.txt +0 -0
  35. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell.egg-info/requires.txt +0 -0
  36. {shadowshell-0.0.76 → shadowshell-0.0.78}/src/shadowshell.egg-info/top_level.txt +0 -0
  37. {shadowshell-0.0.76 → shadowshell-0.0.78}/tests/tests.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowshell
3
- Version: 0.0.76
3
+ Version: 0.0.78
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.76" # 版本号(每次更新需递增)
8
+ version = "0.0.78" # 版本号(每次更新需递增)
9
9
  authors = [{ name = "shadowshell", email = "shadowshellxyz@foxmail.com" }]
10
10
  description = "www.shadowshell.xyz"
11
11
  readme = "README.md"
@@ -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"
@@ -14,16 +14,18 @@ class ConsoleLogger(Logger):
14
14
 
15
15
  def debug(self, content):
16
16
  if LoggingConstants.LEVEL_DEBUG is True:
17
- self.__log(content)
17
+ self.__log("DEBUG", content)
18
18
  def info(self, content):
19
19
  if LoggingConstants.LEVEL_INFO is True:
20
- self.__log(content)
20
+ self.__log("INFO", content)
21
21
 
22
22
  def warn(self, content):
23
- self.__log(content)
23
+ if LoggingConstants.LEVEL_WARN is True:
24
+ self.__log("WARN", content)
24
25
 
25
26
  def error(self, content):
26
- self.__log(content)
27
+ if LoggingConstants.LEVEL_ERROR is True:
28
+ self.__log("ERROR", content)
27
29
 
28
- def __log(self, content):
29
- print("%s" % (content))
30
+ def __log(self, key, content):
31
+ print("[%s]%s" % (key, content))
@@ -9,4 +9,6 @@ author: shadow shell
9
9
  class LoggingConstants:
10
10
 
11
11
  LEVEL_DEBUG = False
12
- LEVEL_INFO = True
12
+ LEVEL_INFO = True
13
+ LEVEL_WARN = True
14
+ LEVEL_ERROR = True
@@ -8,8 +8,7 @@
8
8
  import sys
9
9
  import time
10
10
  from shadowshell.logging import LoggerFactory
11
- from shadowshell.serialize import SerializerFactory
12
- def __callback(request, response):
11
+ def callback(request, response):
13
12
  logger = LoggerFactory.get_logger()
14
13
  logger.info(f"[CALLBACK][Request]{__format_request(request)}[Response]{__format_response(response)}")
15
14
 
@@ -33,7 +32,7 @@ def performance_monitor(class_name = None):
33
32
  return wrapper
34
33
  return decorator
35
34
 
36
- def function_monitor(class_name = None, callback = __callback):
35
+ def function_monitor(class_name = None, callback = None):
37
36
  logger = LoggerFactory.get_logger()
38
37
  def decorator(func):
39
38
  def wrapper(*args, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shadowshell
3
- Version: 0.0.76
3
+ Version: 0.0.78
4
4
  Summary: www.shadowshell.xyz
5
5
  Author-email: shadowshell <shadowshellxyz@foxmail.com>
6
6
  License: MIT
File without changes
File without changes