shadowshell 0.0.19__tar.gz → 0.0.20__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.19 → shadowshell-0.0.20}/PKG-INFO +1 -2
- {shadowshell-0.0.19 → shadowshell-0.0.20}/README.md +0 -1
- {shadowshell-0.0.19 → shadowshell-0.0.20}/pyproject.toml +1 -1
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/__init__.py +2 -2
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/shadowshell.py +30 -1
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell.egg-info/PKG-INFO +1 -2
- {shadowshell-0.0.19 → shadowshell-0.0.20}/setup.cfg +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/git_shell.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/logutil/__init__.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/logutil/console_logger.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/logutil/logger.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/logutil/logger_factory.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell/stock_trader.py +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell.egg-info/SOURCES.txt +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell.egg-info/dependency_links.txt +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell.egg-info/requires.txt +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/src/shadowshell.egg-info/top_level.txt +0 -0
- {shadowshell-0.0.19 → shadowshell-0.0.20}/tests/tests.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: shadowshell
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.20
|
|
4
4
|
Summary: shadowshell.xyz
|
|
5
5
|
Author-email: shadowshell <shadowshell@foxmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -41,4 +41,3 @@ Requires-Dist: requests
|
|
|
41
41
|
|
|
42
42
|
- [Test PYPI](https://test.pypi.org/project/shadowshell/#history)
|
|
43
43
|
|
|
44
|
-
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
|
|
7
7
|
# version = "0.0.16" # 版本号(每次更新需递增)
|
|
8
|
-
version = "0.0.
|
|
8
|
+
version = "0.0.20" # 版本号(每次更新需递增)
|
|
9
9
|
authors = [{ name = "shadowshell", email = "shadowshell@foxmail.com" }]
|
|
10
10
|
description = "shadowshell.xyz"
|
|
11
11
|
readme = "README.md"
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
@author: shadow shell
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
from .shadowshell import ShadowShell, testserver, cnnserver
|
|
8
|
+
from .shadowshell import ShadowShell, TestTemplate, testserver, cnnserver
|
|
9
9
|
from .logutil.logger import Logger
|
|
10
10
|
from .logutil.logger_factory import LoggerFactory
|
|
11
11
|
|
|
12
12
|
from .git_shell import GitShell
|
|
13
13
|
|
|
14
|
-
__all__ = ['ShadowShell', 'Logger', 'LoggerFactory', 'GitShell', 'testserver', 'cnnserver']
|
|
14
|
+
__all__ = ['ShadowShell', 'TestTemplate', 'Logger', 'LoggerFactory', 'GitShell', 'testserver', 'cnnserver']
|
|
@@ -27,6 +27,35 @@ class ShadowShell:
|
|
|
27
27
|
def request(self):
|
|
28
28
|
print(requests.get("https://wwww.baidu.com"))
|
|
29
29
|
|
|
30
|
+
class TestTemplate:
|
|
31
|
+
|
|
32
|
+
def __init__(self):
|
|
33
|
+
return
|
|
34
|
+
|
|
35
|
+
def test(self):
|
|
36
|
+
|
|
37
|
+
try:
|
|
38
|
+
self.console('-->> Ready')
|
|
39
|
+
|
|
40
|
+
self.test0()
|
|
41
|
+
|
|
42
|
+
self.console('-->> Do something')
|
|
43
|
+
|
|
44
|
+
except Exception as e:
|
|
45
|
+
self.console(e)
|
|
46
|
+
except:
|
|
47
|
+
self.console(sys.exc_info()[0])
|
|
48
|
+
finally:
|
|
49
|
+
self.console('-->> Done')
|
|
50
|
+
return
|
|
51
|
+
|
|
52
|
+
def test0(self):
|
|
53
|
+
self.console('Nothing')
|
|
54
|
+
return
|
|
55
|
+
|
|
56
|
+
def console(self, content):
|
|
57
|
+
print('[CONSOLE] %s' % (content))
|
|
58
|
+
|
|
30
59
|
def testserver():
|
|
31
60
|
os.system("ping shadowshell.xyz")
|
|
32
61
|
|
|
@@ -34,4 +63,4 @@ def cnnserver():
|
|
|
34
63
|
os.system("ssh admin@shadowshell.xyz")
|
|
35
64
|
|
|
36
65
|
if __name__ == "__main__":
|
|
37
|
-
ShadowShell().test()
|
|
66
|
+
ShadowShell().test()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: shadowshell
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.20
|
|
4
4
|
Summary: shadowshell.xyz
|
|
5
5
|
Author-email: shadowshell <shadowshell@foxmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -41,4 +41,3 @@ Requires-Dist: requests
|
|
|
41
41
|
|
|
42
42
|
- [Test PYPI](https://test.pypi.org/project/shadowshell/#history)
|
|
43
43
|
|
|
44
|
-
|
|
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
|