ezKit 1.9.3__tar.gz → 1.9.4__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.1
2
2
  Name: ezKit
3
- Version: 1.9.3
3
+ Version: 1.9.4
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -100,6 +100,15 @@ def latest_data(
100
100
  ) -> list | pd.DataFrame | None:
101
101
  """股票或板块的最新数据"""
102
102
 
103
+ # 热门板块
104
+ # https://www.cls.cn/hotPlate
105
+ # 行业板块
106
+ # https://x-quote.cls.cn/web_quote/plate/plate_list?rever=1&way=change&type=industry
107
+ # 概念板块
108
+ # https://x-quote.cls.cn/web_quote/plate/plate_list?rever=1&way=change&type=concept
109
+ # 地域板块
110
+ # https://x-quote.cls.cn/web_quote/plate/plate_list?rever=1&way=change&type=area
111
+
103
112
  # ----------------------------------------------------------------------------------------------
104
113
 
105
114
  # 判断参数类型
@@ -20,7 +20,7 @@ class Database():
20
20
 
21
21
  engine = create_engine('sqlite://')
22
22
 
23
- def __init__(self, target: str, **options):
23
+ def __init__(self, target: str | None = None, **options):
24
24
  """Initiation"""
25
25
  if isinstance(target, str) and utils.isTrue(target, str):
26
26
  if utils.isTrue(options, dict):
@@ -11,7 +11,7 @@ class Mongo():
11
11
 
12
12
  client = MongoClient()
13
13
 
14
- def __init__(self, target: str | dict):
14
+ def __init__(self, target: str | dict | None = None):
15
15
  """Initiation"""
16
16
  if isinstance(target, str) and utils.isTrue(target, str):
17
17
  self.client = MongoClient(target)
@@ -16,7 +16,7 @@ class Redis:
16
16
  # 这里修改以下参数: host, port, socket_timeout, socket_connect_timeout, charset
17
17
  redis = RedisClient.Redis()
18
18
 
19
- def __init__(self, target: str | dict):
19
+ def __init__(self, target: str | dict | None = None):
20
20
  """Initiation"""
21
21
  if isinstance(target, str) and utils.isTrue(target, str):
22
22
  self.redis = RedisClient.from_url(target)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ezKit
3
- Version: 1.9.3
3
+ Version: 1.9.4
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
3
3
 
4
4
  setup(
5
5
  name='ezKit',
6
- version='1.9.3',
6
+ version='1.9.4',
7
7
  author='septvean',
8
8
  author_email='septvean@gmail.com',
9
9
  description='Easy Kit',
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
File without changes
File without changes
File without changes
File without changes