shadowshell 0.0.39__tar.gz → 0.0.40__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.
- {shadowshell-0.0.39 → shadowshell-0.0.40}/PKG-INFO +1 -1
- {shadowshell-0.0.39 → shadowshell-0.0.40}/pyproject.toml +2 -2
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logging/__init__.py +7 -1
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logging/console_logger.py +5 -3
- shadowshell-0.0.40/src/shadowshell/logging/logging_constants.py +12 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell.egg-info/PKG-INFO +1 -1
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell.egg-info/SOURCES.txt +1 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/README.md +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/setup.cfg +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/boot/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/boot/starter.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/bootstrap.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/config/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/config/configurator.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/configurator.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/console_logger.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/file/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/file/file_util.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/git_shell.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logger.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logger_factory.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logging/logger.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/logging/logger_factory.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/monitor/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/monitor/monitor.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/serialize/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/serialize/serializer.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/serialize/serializer_factory.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/serialize/serializer_json.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/stock_trader.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/test/__init__.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell/test/test.py +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell.egg-info/dependency_links.txt +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell.egg-info/requires.txt +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/src/shadowshell.egg-info/top_level.txt +0 -0
- {shadowshell-0.0.39 → shadowshell-0.0.40}/tests/tests.py +0 -0
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
|
|
7
|
-
version = "0.0.
|
|
8
|
-
#version = "0.0.
|
|
7
|
+
version = "0.0.40" # 版本号(每次更新需递增)
|
|
8
|
+
#version = "0.0.71" # 版本号(每次更新需递增)
|
|
9
9
|
authors = [{ name = "shadowshell", email = "shadowshellxyz@foxmail.com" }]
|
|
10
10
|
description = "www.shadowshell.xyz"
|
|
11
11
|
readme = "README.md"
|
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
@author: shadowshell
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
+
from shadowshell.logging.logging_constants import LoggingConstants
|
|
8
9
|
from shadowshell.logging.logger import Logger
|
|
9
10
|
from shadowshell.logging.logger_factory import LoggerFactory
|
|
10
11
|
from shadowshell.logging.console_logger import ConsoleLogger
|
|
11
12
|
|
|
12
|
-
__all__ = [
|
|
13
|
+
__all__ = [
|
|
14
|
+
'LoggingConstants',
|
|
15
|
+
'Logger',
|
|
16
|
+
'LoggerFactory',
|
|
17
|
+
'ConsoleLogger'
|
|
18
|
+
]
|
|
@@ -8,14 +8,16 @@ author: shadow shell
|
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
10
|
from shadowshell.logging.logger import Logger
|
|
11
|
+
from shadowshell.logging.logging_constants import LoggingConstants
|
|
11
12
|
|
|
12
13
|
class ConsoleLogger(Logger):
|
|
13
14
|
|
|
14
15
|
def debug(self, content):
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
if LoggingConstants.LEVEL_DEBUG is True:
|
|
17
|
+
self.__log(content)
|
|
17
18
|
def info(self, content):
|
|
18
|
-
|
|
19
|
+
if LoggingConstants.LEVEL_INFO is True:
|
|
20
|
+
self.__log(content)
|
|
19
21
|
|
|
20
22
|
def warn(self, content):
|
|
21
23
|
self.__log(content)
|
|
@@ -23,6 +23,7 @@ src/shadowshell/logging/__init__.py
|
|
|
23
23
|
src/shadowshell/logging/console_logger.py
|
|
24
24
|
src/shadowshell/logging/logger.py
|
|
25
25
|
src/shadowshell/logging/logger_factory.py
|
|
26
|
+
src/shadowshell/logging/logging_constants.py
|
|
26
27
|
src/shadowshell/monitor/__init__.py
|
|
27
28
|
src/shadowshell/monitor/monitor.py
|
|
28
29
|
src/shadowshell/serialize/__init__.py
|
|
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
|
|
File without changes
|