shadowshell 0.0.6__tar.gz → 0.0.7__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.6 → shadowshell-0.0.7}/PKG-INFO +1 -1
- {shadowshell-0.0.6 → shadowshell-0.0.7}/pyproject.toml +1 -1
- shadowshell-0.0.7/src/__init__.py +14 -0
- shadowshell-0.0.7/src/shadowshell/git_shell.py +19 -0
- shadowshell-0.0.7/src/shadowshell/logutil/__init__.py +12 -0
- {shadowshell-0.0.6 → shadowshell-0.0.7/src/shadowshell/logutil}/adapter/__init__.py +0 -3
- shadowshell-0.0.7/src/shadowshell/logutil/logger.py +25 -0
- shadowshell-0.0.7/src/shadowshell/logutil/logger_factory.py +20 -0
- shadowshell-0.0.7/src/shadowshell/shadowshell.py +13 -0
- {shadowshell-0.0.6 → shadowshell-0.0.7/src}/shadowshell.egg-info/PKG-INFO +1 -1
- shadowshell-0.0.7/src/shadowshell.egg-info/SOURCES.txt +14 -0
- shadowshell-0.0.7/src/shadowshell.egg-info/top_level.txt +2 -0
- shadowshell-0.0.7/tests/tests.py +12 -0
- shadowshell-0.0.6/shadowshell.egg-info/SOURCES.txt +0 -7
- shadowshell-0.0.6/shadowshell.egg-info/top_level.txt +0 -1
- {shadowshell-0.0.6 → shadowshell-0.0.7}/setup.cfg +0 -0
- {shadowshell-0.0.6 → shadowshell-0.0.7/src/shadowshell/logutil}/adapter/console_logger.py +0 -0
- {shadowshell-0.0.6 → shadowshell-0.0.7/src}/shadowshell.egg-info/dependency_links.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.7" # 版本号(每次更新需递增)
|
|
8
8
|
authors = [{ name = "shadowshell", email = "shadowshell@foxmail.com" }]
|
|
9
9
|
description = "shadowshell.xyz"
|
|
10
10
|
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.shadowshell import ShadowShell
|
|
9
|
+
from .logutil.logger import Logger
|
|
10
|
+
from .logutil.logger_factory import LoggerFactory
|
|
11
|
+
|
|
12
|
+
from .git_shell import GitShell
|
|
13
|
+
|
|
14
|
+
__all__ = ['ShadowShell', 'Logger', 'LoggerFactory', 'GitShell']
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
GitBroker
|
|
6
|
+
|
|
7
|
+
@author: shadow shell
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
|
|
12
|
+
class GitShell:
|
|
13
|
+
|
|
14
|
+
def acp(self):
|
|
15
|
+
os.system("git add -A && git commit -m 'UPDATE: update somethings.' && git push")
|
|
16
|
+
|
|
17
|
+
def view_config(self):
|
|
18
|
+
os.system("git config user.name & git config user.email")
|
|
19
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@author: shadow shell
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .console_logger import ConsoleLogger
|
|
9
|
+
from .logger import Logger
|
|
10
|
+
from .logger_factory import LoggerFactory
|
|
11
|
+
|
|
12
|
+
__all__ = ['ConsoleLogger', 'Logger', 'LoggerFactory']
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Logger
|
|
6
|
+
|
|
7
|
+
@author: shadow shell
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
class Logger:
|
|
11
|
+
|
|
12
|
+
def debug(self, content):
|
|
13
|
+
self.__log(content)
|
|
14
|
+
|
|
15
|
+
def info(self, content):
|
|
16
|
+
self.__log(content)
|
|
17
|
+
|
|
18
|
+
def warn(self, content):
|
|
19
|
+
self.__log(content)
|
|
20
|
+
|
|
21
|
+
def error(self, content):
|
|
22
|
+
self.__log(content)
|
|
23
|
+
|
|
24
|
+
def __log(self, content):
|
|
25
|
+
print("[LOGGER]%s" % content)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
LoggerFactory
|
|
6
|
+
@author: shadow shell
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from adapter.console_logger import ConsoleLogger
|
|
10
|
+
|
|
11
|
+
class LoggerFactory:
|
|
12
|
+
|
|
13
|
+
logger = None
|
|
14
|
+
|
|
15
|
+
def __init__(self):
|
|
16
|
+
self.logger = ConsoleLogger()
|
|
17
|
+
|
|
18
|
+
def get_logger(self, name = "default"):
|
|
19
|
+
return self.logger
|
|
20
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
pyproject.toml
|
|
2
|
+
src/__init__.py
|
|
3
|
+
src/shadowshell/git_shell.py
|
|
4
|
+
src/shadowshell/shadowshell.py
|
|
5
|
+
src/shadowshell.egg-info/PKG-INFO
|
|
6
|
+
src/shadowshell.egg-info/SOURCES.txt
|
|
7
|
+
src/shadowshell.egg-info/dependency_links.txt
|
|
8
|
+
src/shadowshell.egg-info/top_level.txt
|
|
9
|
+
src/shadowshell/logutil/__init__.py
|
|
10
|
+
src/shadowshell/logutil/logger.py
|
|
11
|
+
src/shadowshell/logutil/logger_factory.py
|
|
12
|
+
src/shadowshell/logutil/adapter/__init__.py
|
|
13
|
+
src/shadowshell/logutil/adapter/console_logger.py
|
|
14
|
+
tests/tests.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
adapter
|
|
File without changes
|
|
File without changes
|
|
File without changes
|