shadowshell 0.0.35__tar.gz → 0.0.37__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.35 → shadowshell-0.0.37}/PKG-INFO +1 -1
- {shadowshell-0.0.35 → shadowshell-0.0.37}/pyproject.toml +1 -1
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/bootstrap.py +4 -2
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell.egg-info/PKG-INFO +1 -1
- {shadowshell-0.0.35 → shadowshell-0.0.37}/README.md +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/setup.cfg +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/__init__.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/configurator.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/console_logger.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/git_shell.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/logger.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/logger_factory.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell/stock_trader.py +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell.egg-info/SOURCES.txt +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell.egg-info/dependency_links.txt +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell.egg-info/requires.txt +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/src/shadowshell.egg-info/top_level.txt +0 -0
- {shadowshell-0.0.35 → shadowshell-0.0.37}/tests/tests.py +0 -0
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
|
|
7
7
|
#version = "0.0.24" # 版本号(每次更新需递增)
|
|
8
|
-
version = "0.0.
|
|
8
|
+
version = "0.0.37" # 版本号(每次更新需递增)
|
|
9
9
|
authors = [{ name = "shadowshell", email = "shadowshellxyz@foxmail.com" }]
|
|
10
10
|
description = "www.shadowshell.xyz"
|
|
11
11
|
readme = "README.md"
|
|
@@ -76,12 +76,13 @@ def performance_monitor(class_name=None):
|
|
|
76
76
|
def decorator(func):
|
|
77
77
|
def wrapper(*args, **kwargs):
|
|
78
78
|
start = time.perf_counter()
|
|
79
|
+
result = None
|
|
79
80
|
try:
|
|
80
81
|
result = func(*args, **kwargs)
|
|
81
82
|
finally:
|
|
82
83
|
elapsed = time.perf_counter() - start
|
|
83
84
|
if (class_name is not None):
|
|
84
|
-
logger.info(f"[PERFORMANCE_MONITOR][{class_name}
|
|
85
|
+
logger.info(f"[PERFORMANCE_MONITOR][{class_name}.{func.__name__}] has ran, time elapsed:{elapsed:.6f}s.")
|
|
85
86
|
else:
|
|
86
87
|
logger.info(f"[PERFORMANCE_MONITOR][{func.__name__}] has ran, time elapsed:{elapsed:.6f}s.")
|
|
87
88
|
return result
|
|
@@ -92,6 +93,7 @@ def function_monitor(class_name=None):
|
|
|
92
93
|
def decorator(func):
|
|
93
94
|
def wrapper(*args, **kwargs):
|
|
94
95
|
start = time.perf_counter()
|
|
96
|
+
result = None
|
|
95
97
|
try:
|
|
96
98
|
result = func(*args, **kwargs)
|
|
97
99
|
except Exception as e:
|
|
@@ -101,7 +103,7 @@ def function_monitor(class_name=None):
|
|
|
101
103
|
finally:
|
|
102
104
|
elapsed = time.perf_counter() - start
|
|
103
105
|
if (class_name is not None):
|
|
104
|
-
logger.info(f"[FUNCTION_MONITOR][{class_name}
|
|
106
|
+
logger.info(f"[FUNCTION_MONITOR][{class_name}.{func.__name__}] has ran, time elapsed:{elapsed:.6f}s.")
|
|
105
107
|
else:
|
|
106
108
|
logger.info(f"[FUNCTION_MONITOR][{func.__name__}] has ran, time elapsed:{elapsed:.6f}s.")
|
|
107
109
|
return result
|
|
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
|