shadowshell 0.0.29__tar.gz → 0.0.30__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.29 → shadowshell-0.0.30}/PKG-INFO +1 -1
- {shadowshell-0.0.29 → shadowshell-0.0.30}/pyproject.toml +1 -1
- shadowshell-0.0.30/src/shadowshell/__init__.py +14 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/bootstrap.py +13 -2
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell.egg-info/PKG-INFO +1 -1
- shadowshell-0.0.29/src/shadowshell/__init__.py +0 -14
- {shadowshell-0.0.29 → shadowshell-0.0.30}/README.md +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/setup.cfg +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/configurator.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/console_logger.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/git_shell.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/logger.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/logger_factory.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell/stock_trader.py +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell.egg-info/SOURCES.txt +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell.egg-info/dependency_links.txt +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell.egg-info/requires.txt +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/src/shadowshell.egg-info/top_level.txt +0 -0
- {shadowshell-0.0.29 → shadowshell-0.0.30}/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.30" # 版本号(每次更新需递增)
|
|
9
9
|
authors = [{ name = "shadowshell", email = "shadowshellxyz@foxmail.com" }]
|
|
10
10
|
description = "www.shadowshell.xyz"
|
|
11
11
|
readme = "README.md"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@author: shadow shell
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from shadowshell.logger import Logger
|
|
9
|
+
from shadowshell.logger_factory import LoggerFactory
|
|
10
|
+
from shadowshell.bootstrap import ShadowShell, performance_monitor, hello, shadowshell, invoke_with_tmpl, TestTemplate, testserver, cnnserver
|
|
11
|
+
from shadowshell.git_shell import GitShell
|
|
12
|
+
from shadowshell.configurator import Configurator
|
|
13
|
+
|
|
14
|
+
__all__ = ['ShadowShell', 'performance_monitor', 'hello', 'shadowshell', 'Configurator', 'invoke_with_tmpl', 'TestTemplate', 'Logger', 'LoggerFactory', 'GitShell', 'testserver', 'cnnserver']
|
|
@@ -5,11 +5,23 @@ import os
|
|
|
5
5
|
# import requests
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
from shadowshell.logger_factory import LoggerFactory
|
|
8
|
+
import time
|
|
9
|
+
|
|
10
|
+
logger = LoggerFactory().get_logger()
|
|
11
|
+
|
|
12
|
+
def performance_monitor(func):
|
|
13
|
+
def wrapper(*args, **kwargs):
|
|
14
|
+
start = time.perf_counter()
|
|
15
|
+
result = func(*args, **kwargs)
|
|
16
|
+
elapsed = time.perf_counter() - start
|
|
17
|
+
logger.info(f"[{func.__name__}] has ran, time elapsed:{elapsed:.6f} s.")
|
|
18
|
+
return result
|
|
19
|
+
return wrapper
|
|
8
20
|
|
|
9
21
|
"""
|
|
10
22
|
ShadowShell
|
|
11
23
|
|
|
12
|
-
@author:
|
|
24
|
+
@author: shadowshell
|
|
13
25
|
"""
|
|
14
26
|
class ShadowShell:
|
|
15
27
|
|
|
@@ -69,7 +81,6 @@ class TestTemplate:
|
|
|
69
81
|
self.logger.debug('Nothing')
|
|
70
82
|
return
|
|
71
83
|
|
|
72
|
-
logger = LoggerFactory().get_logger()
|
|
73
84
|
|
|
74
85
|
def testserver():
|
|
75
86
|
os.system("ping shadowshell.xyz")
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
@author: shadow shell
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from shadowshell.logger import Logger
|
|
9
|
-
from shadowshell.logger_factory import LoggerFactory
|
|
10
|
-
from shadowshell.bootstrap import ShadowShell, hello, shadowshell, invoke_with_tmpl, TestTemplate, testserver, cnnserver
|
|
11
|
-
from shadowshell.git_shell import GitShell
|
|
12
|
-
from shadowshell.configurator import Configurator
|
|
13
|
-
|
|
14
|
-
__all__ = ['ShadowShell', 'hello', 'shadowshell', 'Configurator', 'invoke_with_tmpl', 'TestTemplate', 'Logger', 'LoggerFactory', 'GitShell', 'testserver', 'cnnserver']
|
|
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
|