shadowshell 0.0.15__tar.gz → 0.0.19__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,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: shadowshell
3
- Version: 0.0.15
3
+ Version: 0.0.19
4
4
  Summary: shadowshell.xyz
5
5
  Author-email: shadowshell <shadowshell@foxmail.com>
6
6
  License: MIT
@@ -18,13 +18,27 @@ Requires-Dist: requests
18
18
 
19
19
  > pip3 install shadowshell --upgrade
20
20
 
21
+ # > python3 -m pip install shadowshell
21
22
  # > pip3 install shadowshell --upgrade -i https://pypi.org/simple/
22
23
 
23
- ```
24
+ # > python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps shadowshell --upgrade
24
25
 
26
+ ```
25
27
 
26
28
  ``` BASH
27
29
 
28
30
  > python3 -c "from shadowshell import ShadowShell; ShadowShell().hello();"
29
31
 
30
32
  ```
33
+
34
+ # Package
35
+
36
+ - [How to package](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
37
+
38
+ # View package list
39
+
40
+ - [PYPI](https://pypi.org/project/shadowshell/#history)
41
+
42
+ - [Test PYPI](https://test.pypi.org/project/shadowshell/#history)
43
+
44
+
@@ -0,0 +1,32 @@
1
+
2
+
3
+ # Install
4
+
5
+ ``` BASH
6
+
7
+ > pip3 install shadowshell --upgrade
8
+
9
+ # > python3 -m pip install shadowshell
10
+ # > pip3 install shadowshell --upgrade -i https://pypi.org/simple/
11
+
12
+ # > python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps shadowshell --upgrade
13
+
14
+ ```
15
+
16
+ ``` BASH
17
+
18
+ > python3 -c "from shadowshell import ShadowShell; ShadowShell().hello();"
19
+
20
+ ```
21
+
22
+ # Package
23
+
24
+ - [How to package](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
25
+
26
+ # View package list
27
+
28
+ - [PYPI](https://pypi.org/project/shadowshell/#history)
29
+
30
+ - [Test PYPI](https://test.pypi.org/project/shadowshell/#history)
31
+
32
+
@@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "shadowshell" # 全局唯一名称(检查PyPI是否被占用)
7
- version = "0.0.15" # 版本号(每次更新需递增)
7
+ # version = "0.0.16" # 版本号(每次更新需递增)
8
+ version = "0.0.19" # 版本号(每次更新需递增)
8
9
  authors = [{ name = "shadowshell", email = "shadowshell@foxmail.com" }]
9
10
  description = "shadowshell.xyz"
10
11
  readme = "README.md"
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- GitBroker
5
+ GitShell
6
6
 
7
7
  @author: shadow shell
8
8
  """
@@ -17,3 +17,5 @@ class GitShell:
17
17
  def view_config(self):
18
18
  os.system("git config user.name & git config user.email")
19
19
 
20
+ if __name__ == "__main__":
21
+ GitShell().view_config()
@@ -3,6 +3,7 @@
3
3
 
4
4
  """
5
5
  ConsoleLogger
6
+
6
7
  author: shadow shell
7
8
  """
8
9
 
@@ -23,4 +24,4 @@ class ConsoleLogger(Logger):
23
24
  self.__log(content)
24
25
 
25
26
  def __log(self, content):
26
- print("[LOGGER]%s" % (content))
27
+ print("%s" % (content))
@@ -3,6 +3,7 @@
3
3
 
4
4
  """
5
5
  LoggerFactory
6
+
6
7
  @author: shadow shell
7
8
  """
8
9
 
@@ -17,4 +18,3 @@ class LoggerFactory:
17
18
 
18
19
  def get_logger(self, name = "default"):
19
20
  return self.logger
20
-
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ import os
5
+ import requests
6
+ from datetime import datetime
7
+
8
+ """
9
+ ShadowShell
10
+
11
+ @author: shadow shell
12
+ """
13
+ class ShadowShell:
14
+
15
+ def __init__(self):
16
+ pass
17
+
18
+ def hello(self):
19
+ print("Hi, i am shadow shell." )
20
+ current_time = datetime.now()
21
+ formatted_current_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
22
+ print("Now is " + formatted_current_time)
23
+
24
+ def test(self):
25
+ self.hello()
26
+
27
+ def request(self):
28
+ print(requests.get("https://wwww.baidu.com"))
29
+
30
+ def testserver():
31
+ os.system("ping shadowshell.xyz")
32
+
33
+ def cnnserver():
34
+ os.system("ssh admin@shadowshell.xyz")
35
+
36
+ if __name__ == "__main__":
37
+ ShadowShell().test()
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ import akshare as ak
5
+ import pandas as pd
6
+
7
+ # 获取美股中概股实时行情
8
+ df_us = ak.stock_us_spot_em()
9
+
10
+ target_names = ["哔哩哔哩", "爱奇艺", "京东", "阿里巴巴", "蔚来", "小鹏汽车", "理想汽车"]
11
+ stocks = df_us[df_us["名称"].isin(target_names)]
12
+
13
+ print(stocks[["代码", "名称","最新价","涨跌幅","涨跌额","开盘价","最高价","最低价","昨收价","总市值","市盈率","成交量","成交额","振幅","换手率"]])
14
+
15
+ # df_us.to_csv("/Users/shadowwalker/Desktop/selected_stocks.csv", index=False, encoding="utf_8_sig")
16
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: shadowshell
3
- Version: 0.0.15
3
+ Version: 0.0.19
4
4
  Summary: shadowshell.xyz
5
5
  Author-email: shadowshell <shadowshell@foxmail.com>
6
6
  License: MIT
@@ -18,13 +18,27 @@ Requires-Dist: requests
18
18
 
19
19
  > pip3 install shadowshell --upgrade
20
20
 
21
+ # > python3 -m pip install shadowshell
21
22
  # > pip3 install shadowshell --upgrade -i https://pypi.org/simple/
22
23
 
23
- ```
24
+ # > python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps shadowshell --upgrade
24
25
 
26
+ ```
25
27
 
26
28
  ``` BASH
27
29
 
28
30
  > python3 -c "from shadowshell import ShadowShell; ShadowShell().hello();"
29
31
 
30
32
  ```
33
+
34
+ # Package
35
+
36
+ - [How to package](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
37
+
38
+ # View package list
39
+
40
+ - [PYPI](https://pypi.org/project/shadowshell/#history)
41
+
42
+ - [Test PYPI](https://test.pypi.org/project/shadowshell/#history)
43
+
44
+
@@ -3,6 +3,7 @@ pyproject.toml
3
3
  src/shadowshell/__init__.py
4
4
  src/shadowshell/git_shell.py
5
5
  src/shadowshell/shadowshell.py
6
+ src/shadowshell/stock_trader.py
6
7
  src/shadowshell.egg-info/PKG-INFO
7
8
  src/shadowshell.egg-info/SOURCES.txt
8
9
  src/shadowshell.egg-info/dependency_links.txt
@@ -7,9 +7,9 @@ tests
7
7
  @author: shadow shell
8
8
  """
9
9
 
10
- from ./src/shadowshell/shadowshell import ShadowShell, testserver
10
+ from shadowshell import *
11
11
 
12
12
  ShadowShell().hello()
13
13
 
14
- testserver()
14
+ cnnserver()
15
15
 
@@ -1,18 +0,0 @@
1
-
2
-
3
- # Install
4
-
5
- ``` BASH
6
-
7
- > pip3 install shadowshell --upgrade
8
-
9
- # > pip3 install shadowshell --upgrade -i https://pypi.org/simple/
10
-
11
- ```
12
-
13
-
14
- ``` BASH
15
-
16
- > python3 -c "from shadowshell import ShadowShell; ShadowShell().hello();"
17
-
18
- ```
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- """
5
- Logger
6
- @author: shadow shell
7
- """
8
-
9
- import requests
10
-
11
- class ShadowShell:
12
-
13
- def hello(self):
14
- print("Hello.")
15
-
16
- def request(self):
17
- requests.get("https://wwww.baidu.com")
18
-
19
- def testserver():
20
- os.system("ping shadowshell.xyz")
21
-
22
- def cnnserver():
23
- os.system("ssh admin@shadowshell.xyz")
File without changes