ygo 1.0.10__py3-none-any.whl → 1.0.11__py3-none-any.whl

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.

Potentially problematic release.


This version of ygo might be problematic. Click here for more details.

ycat/__init__.py CHANGED
@@ -18,7 +18,7 @@ from .client import (
18
18
  read_mysql,
19
19
  )
20
20
  from .qdf import from_polars
21
- from .updator import Updator
21
+ from .provider import Provider
22
22
 
23
23
  __all__ = [
24
24
  "HOME",
@@ -29,5 +29,5 @@ __all__ = [
29
29
  "tb_path",
30
30
  "read_ck",
31
31
  "read_mysql",
32
- "Updator",
32
+ "Provider",
33
33
  ]
@@ -17,10 +17,10 @@ from .client import CATDB
17
17
  DATE_FORMAT = "%Y-%m-%d"
18
18
 
19
19
 
20
- class Updator:
20
+ class Provider:
21
21
  """
22
22
  数据更新器
23
- 路径:{ycat.CATDB}/updator/{name}
23
+ 路径:{ycat.CATDB}/provider/{name}
24
24
  """
25
25
 
26
26
  def __init__(self, name: str, update_time="16:30"):
@@ -30,7 +30,7 @@ class Updator:
30
30
  :param update_time: 数据更新时间,默认16:30
31
31
  """
32
32
  self.name = name
33
- self._tb_path = Path(CATDB) / "updator" / name
33
+ self._tb_path = Path(CATDB) / name
34
34
  os.makedirs(self._tb_path, exist_ok=True)
35
35
  self._update_time = update_time
36
36
  self.present = datetime.now().today()
@@ -42,7 +42,7 @@ class Updator:
42
42
 
43
43
  self._tasks = list()
44
44
  self._last_run_file = self._tb_path / f".last_run"
45
- self.logger = ylog.get_logger("updator")
45
+ self.logger = ylog.get_logger("provider")
46
46
 
47
47
  @property
48
48
  def last_update_date(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygo
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Project-URL: homepage, https://github.com/link-yundi/ygo
5
5
  Project-URL: repository, https://github.com/link-yundi/ygo
6
6
  Requires-Python: >=3.9
@@ -1,7 +1,7 @@
1
- ycat/__init__.py,sha256=8cVsQXL476hDIU_yDxfoAC9ILC4_Tnp1Y1dDTs6vkXA,529
1
+ ycat/__init__.py,sha256=12U74rO_nB-EpD8uFV4tBH3zCAi98nk68zwIGJgMDwo,532
2
2
  ycat/client.py,sha256=Z5lwybzXv6MADbbooDT-rhdr9JMI_t2TDAXt0ghongQ,5451
3
3
  ycat/parse.py,sha256=piz_iciF7JFnn8v_qtUEHP6NZ_MWJidsA5gBpLtuZzw,2195
4
- ycat/updator.py,sha256=dV2vhYVlaoK8eRQggAkNkZuu9zbOYFajicyggMt-r78,3393
4
+ ycat/provider.py,sha256=jjihriryR7OWHXCnPAcNLJjg_iHXuZxhQY1YSE9MKgI,3384
5
5
  ycat/qdf/__init__.py,sha256=8fIBr0FUAYGc33CYnWILY0Ur2DXdctWjw28S5qDWhD4,7572
6
6
  ycat/qdf/errors.py,sha256=lJhhjDRdQOOKUFGlLQ9ELK4AexXBwYQSYus_V-kc5K8,1180
7
7
  ycat/qdf/expr.py,sha256=ck_BHMCV29Q8-szci1_v4ud964QI7JoRRcmA0ppupsc,8454
@@ -15,10 +15,10 @@ ycat/qdf/udf/ts_udf.py,sha256=uUuZnKMY-V_uInP0nsBMblDpxY3ld3EwvrXTwWMqeig,5410
15
15
  ygo/__init__.py,sha256=kQK7CwVCz8NJTj5eS9Xrt_G1kPHvDIbe2sTzHgWITxI,590
16
16
  ygo/exceptions.py,sha256=0OYDYt_9KKo8mF2XBG5QkCMr3-ASp69VDSPOEwlIsrI,660
17
17
  ygo/ygo.py,sha256=kcXI5vzndNOJqEEEZOeWbn61O47gW72UDiUWN1v9AYc,11290
18
- ygo-1.0.10.dist-info/licenses/LICENSE,sha256=6AKUWQ1xe-jwPSFv_H6FMQLNNWb7AYqzuEUTwlP2S8M,1067
18
+ ygo-1.0.11.dist-info/licenses/LICENSE,sha256=6AKUWQ1xe-jwPSFv_H6FMQLNNWb7AYqzuEUTwlP2S8M,1067
19
19
  ylog/__init__.py,sha256=AoRCQ-o4gWAcJ8svw30wM5UJyccx45WhYIndrrkNv8o,428
20
20
  ylog/core.py,sha256=d6QCFRDTvlyxgvS6JphUGOgX5Mgx9qPv9wB3g-4YOJw,9225
21
- ygo-1.0.10.dist-info/METADATA,sha256=J0M_naeBSfTGAcep-85CtjOz-Tz0z2l8h_VKd7RLIq4,2235
22
- ygo-1.0.10.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
23
- ygo-1.0.10.dist-info/top_level.txt,sha256=jEbfiz5fX4iSzDg8_Npdv5SIC_Kphmb1m3vuyD9ZC1E,14
24
- ygo-1.0.10.dist-info/RECORD,,
21
+ ygo-1.0.11.dist-info/METADATA,sha256=n7FeLaMz7qzQSZ-IupWi2_MlUt0KU24laTnj9-027Og,2235
22
+ ygo-1.0.11.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
23
+ ygo-1.0.11.dist-info/top_level.txt,sha256=jEbfiz5fX4iSzDg8_Npdv5SIC_Kphmb1m3vuyD9ZC1E,14
24
+ ygo-1.0.11.dist-info/RECORD,,
File without changes