shadowshell 0.0.1__tar.gz → 0.0.3__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.
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: shadowshell
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: shadowshell.xyz
5
- Author-email: shadow shell <shadowshell@foxmail.com>
5
+ Author-email: shadowshell <shadowshell@foxmail.com>
6
6
  License: MIT
7
7
  Classifier: Programming Language :: Python :: 3
8
8
  Classifier: Operating System :: OS Independent
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
7
- version = "0.0.1" # 版本号(每次更新需递增)
8
- authors = [{ name = "shadow shell", email = "shadowshell@foxmail.com" }]
7
+ version = "0.0.3" # 版本号(每次更新需递增)
8
+ authors = [{ name = "shadowshell", email = "shadowshell@foxmail.com" }]
9
9
  description = "shadowshell.xyz"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.8" # 支持的Python版本
@@ -14,4 +14,10 @@ classifiers = [ # 分类标签(可选)
14
14
  "Programming Language :: Python :: 3",
15
15
  "Operating System :: OS Independent",
16
16
  ]
17
- dependencies = [] # 依赖库(如 ["requests>=2.25"])
17
+ dependencies = [] # 依赖库(如 ["requests>=2.25"])
18
+
19
+ # 关键配置:指定包路径和自动发现规则
20
+ [tool.setuptools]
21
+ package-dir = { "" = "src" } # 所有包位于 src 目录下
22
+ # packages = ["gitshell", "logshell"]
23
+ packages = { find = { where = ["src"] } }
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @author: shadow shell
6
+ """
7
+
8
+ from .git_shell import GitShell
9
+
10
+
11
+ __version__ = "0.0.1"
12
+
13
+ __all__ = ['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,14 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @author: shadow shell
6
+ """
7
+
8
+ from .logger import Logger
9
+ from .logger_factory import LoggerFactory
10
+
11
+
12
+ __version__ = "0.0.1"
13
+
14
+ __all__ = ['Logger', 'LoggerFactory']
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @author: shadow shell
6
+ """
7
+
8
+ from .console_logger import ConsoleLogger
9
+
10
+
11
+ __version__ = "0.0.1"
12
+
13
+ __all__ = ['ConsoleLogger']
14
+
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ ConsoleLogger
6
+ author: shadow shell
7
+ """
8
+
9
+ from logshell.logger import Logger
10
+
11
+ class ConsoleLogger(Logger):
12
+
13
+ def debug(self, content):
14
+ self.__log(content)
15
+
16
+ def info(self, content):
17
+ self.__log(content)
18
+
19
+ def warn(self, content):
20
+ self.__log(content)
21
+
22
+ def error(self, content):
23
+ self.__log(content)
24
+
25
+ def __log(self, content):
26
+ print("[LOGGER]%s" % (content))
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ Logger
6
+
7
+ @author: shadow shell
8
+ """
9
+ class Logger:
10
+
11
+ def debug(self, content):
12
+ self.__log(content)
13
+
14
+ def info(self, content):
15
+ self.__log(content)
16
+
17
+ def warn(self, content):
18
+ self.__log(content)
19
+
20
+ def error(self, content):
21
+ self.__log(content)
22
+
23
+ def __log(self, content):
24
+ print("[LOGGER]%s" % content)
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ LoggerFactory
6
+ @author: shadow shell
7
+ """
8
+
9
+ from logutil.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
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: shadowshell
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: shadowshell.xyz
5
- Author-email: shadow shell <shadowshell@foxmail.com>
5
+ Author-email: shadowshell <shadowshell@foxmail.com>
6
6
  License: MIT
7
7
  Classifier: Programming Language :: Python :: 3
8
8
  Classifier: Operating System :: OS Independent
@@ -0,0 +1,12 @@
1
+ pyproject.toml
2
+ src/githshell/__init__.py
3
+ src/githshell/git_shell.py
4
+ src/logshell/__init__.py
5
+ src/logshell/logger.py
6
+ src/logshell/logger_factory.py
7
+ src/logshell/adapter/__init__.py
8
+ src/logshell/adapter/console_logger.py
9
+ src/shadowshell.egg-info/PKG-INFO
10
+ src/shadowshell.egg-info/SOURCES.txt
11
+ src/shadowshell.egg-info/dependency_links.txt
12
+ src/shadowshell.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ githshell
2
+ logshell
@@ -1,6 +0,0 @@
1
- pyproject.toml
2
- shadowshell.py
3
- shadowshell.egg-info/PKG-INFO
4
- shadowshell.egg-info/SOURCES.txt
5
- shadowshell.egg-info/dependency_links.txt
6
- shadowshell.egg-info/top_level.txt
@@ -1 +0,0 @@
1
- shadowshell
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- """
5
- Logger
6
- @author: shadowshell<shadowshell@foxmail.com>
7
- """
8
-
9
- class ShadowShell:
10
-
11
- def hello(self):
12
- print("Hello.")
13
-
File without changes