reywechat 1.0.89__py3-none-any.whl → 1.0.90__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.
reywechat/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-17 20:24:04
5
+ @Time : 2023-10-17
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : WeChat client control method set.
reywechat/rall.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-19 11:40:35
5
+ @Time : 2023-10-19
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : All methods.
reywechat/rbase.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2024-07-17 10:49:26
5
+ @Time : 2024-07-17
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Base methods.
reywechat/rcache.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2025-08-13 22:58:31
5
+ @Time : 2025-08-13
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Cache methods.
reywechat/rclient.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-17 20:27:16
5
+ @Time : 2023-10-17
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Client methods.
reywechat/rdb.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-23 20:55:58
5
+ @Time : 2023-10-23
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Database methods.
@@ -11,7 +11,7 @@
11
11
 
12
12
  from typing import Literal
13
13
  from json import loads as json_loads
14
- from reydb import rorm, Database
14
+ from reydb import rorm, DatabaseEngine
15
15
  from reykit.rbase import throw
16
16
  from reykit.ros import File
17
17
  from reykit.rtime import to_time, time_to, sleep
@@ -188,7 +188,7 @@ class WeChatDatabase(WeChatBase):
188
188
  def __init__(
189
189
  self,
190
190
  wechat: WeChat,
191
- db: Database | dict[Literal['wechat', 'file'], Database]
191
+ db_engine: DatabaseEngine | dict[Literal['wechat', 'file'], DatabaseEngine]
192
192
  ) -> None:
193
193
  """
194
194
  Build instance attributes.
@@ -205,14 +205,14 @@ class WeChatDatabase(WeChatBase):
205
205
 
206
206
  # Build attribute.
207
207
  self.wechat = wechat
208
- match db:
209
- case Database():
210
- self.db_wechat = self.db_file = db
208
+ match db_engine:
209
+ case DatabaseEngine():
210
+ self.db_wechat = self.db_file = db_engine
211
211
  case dict():
212
- self.db_wechat: Database = db.get('wechat')
213
- self.db_file: Database = db.get('file')
212
+ self.db_wechat: DatabaseEngine = db_engine.get('wechat')
213
+ self.db_file: DatabaseEngine = db_engine.get('file')
214
214
  case _:
215
- throw(TypeError, db)
215
+ throw(TypeError, db_engine)
216
216
 
217
217
  # Build Database.
218
218
  self.build_db()
reywechat/rlog.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-19 11:33:45
5
+ @Time : 2023-10-19
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Log methods.
reywechat/rreceive.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-26 11:18:58
5
+ @Time : 2023-10-26
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Receive methods.
reywechat/rsend.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2024-01-03 22:53:18
5
+ @Time : 2024-01-03
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Send methods.
reywechat/rtrigger.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2024-07-16 16:20:34
5
+ @Time : 2024-07-16
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : Trigger methods.
reywechat/rwechat.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  """
5
- @Time : 2023-10-17 20:27:16
5
+ @Time : 2023-10-17
6
6
  @Author : Rey
7
7
  @Contact : reyxbo@163.com
8
8
  @Explain : WeChat methods.
@@ -11,7 +11,7 @@
11
11
 
12
12
  from typing import Literal
13
13
  from os import getcwd as os_getcwd
14
- from reydb import Database
14
+ from reydb import DatabaseEngine
15
15
  from reykit.rbase import block
16
16
 
17
17
  from .rbase import WeChatBase
@@ -40,7 +40,7 @@ class WeChat(WeChatBase):
40
40
 
41
41
  def __init__(
42
42
  self,
43
- db: Database | dict[Literal['wechat', 'file'], Database] | None,
43
+ db_engine: DatabaseEngine | dict[Literal['wechat', 'file'], DatabaseEngine] | None,
44
44
  max_receiver: int = 2,
45
45
  call_name: str | None = None,
46
46
  project_dir: str | None = None
@@ -50,7 +50,7 @@ class WeChat(WeChatBase):
50
50
 
51
51
  Parameters
52
52
  ----------
53
- db : `Database` instance of `reykit` package.
53
+ db_engine : Database engine.
54
54
  - `Database`, Set all `Database`: instances.
55
55
  - `dict`, Set each `Database`: instance, all item is required.
56
56
  `Key 'wechat'`: `Database` instance used in WeChat methods.
@@ -81,7 +81,7 @@ class WeChat(WeChatBase):
81
81
  self.receiver = WechatReceiver(self, max_receiver, call_name)
82
82
  self.trigger = self.receiver.trigger
83
83
  self.sender = WeChatSender(self)
84
- self.db = WeChatDatabase(self, db)
84
+ self.db = WeChatDatabase(self, db_engine)
85
85
 
86
86
  ## Client.
87
87
  self.client_version = self.client.client_version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reywechat
3
- Version: 1.0.89
3
+ Version: 1.0.90
4
4
  Summary: WeChat client control method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reywechat/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -0,0 +1,16 @@
1
+ reywechat/__init__.py,sha256=O4d40G5oeGH7EN018DehhipsCXB4j6e4ngnKlUlPzu4,482
2
+ reywechat/rall.py,sha256=ReNbm_oZTrD8lW_deMEgUfAE8yRm4NjbBWmvZuPjEg8,362
3
+ reywechat/rbase.py,sha256=BpjxxPhvUBTf7V7Q2qYU4rHzQh9OlZCbFtdav6rDaT8,1115
4
+ reywechat/rcache.py,sha256=HxVOvXVsO1JjVGYBvF4YHSJGlcfgMcSYvT5JCmEuumM,899
5
+ reywechat/rclient.py,sha256=9Xzy_XUu-b2kRzM7MpwefZ6pZsrn5EnrLv5fs7Yh2Ew,22570
6
+ reywechat/rdb.py,sha256=4p7jkrHY2fN6IlKh3sV061g6prIg7mvsUG9MDEfLWdg,37936
7
+ reywechat/rlog.py,sha256=IDtCmllHN6Wz33qeNZLXaK0s-s5dWIqIeQXc5u7lsnk,5235
8
+ reywechat/rreceive.py,sha256=uUaJd3U8lu_wh3bSBoKo09pumbYnBszgsCKb5SbwrOI,50823
9
+ reywechat/rsend.py,sha256=GwoM1iYFSXvsZ-q6etQhnYYW0W54os97kFJhWNnlpLs,19892
10
+ reywechat/rtrigger.py,sha256=m1hfOA8rya4qk2Z02Ic9uvMO5ylwSaBJRYkcCLk60y0,4935
11
+ reywechat/rwechat.py,sha256=wyYARNSCFE_VyB9WI1Hqq144gPl_FOFztx7krsRT4MY,4716
12
+ reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
+ reywechat-1.0.90.dist-info/METADATA,sha256=MCQ9dMEnVlQM9kImyYm9iw7ERJlqLjw_ZVFQ3wLnxOw,1596
14
+ reywechat-1.0.90.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.90.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.90.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- reywechat/__init__.py,sha256=oFL6LGNcE30nMTdOgNlU7x8cqcQyMqZORDra5PuxUrQ,491
2
- reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
3
- reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
4
- reywechat/rcache.py,sha256=5FIa8UB3VsLHT_EXHHmFP62a5AeS22anJCJXC8t4tWw,908
5
- reywechat/rclient.py,sha256=EaX6lciZhINg_3m76b7s29cZj5D4o1ASZlLzeVbcSlk,22579
6
- reywechat/rdb.py,sha256=lHqmQfV9-YeUjU5Ndw993y7AwhDCJQAw55AS20iuRQ0,37867
7
- reywechat/rlog.py,sha256=sCTk1SSN3uP3zKzUN2aMZSA-GWrN_1g1Mmus2pVEp2M,5244
8
- reywechat/rreceive.py,sha256=4SXg6ANACC9yRnAup2ETqx3kO4uHKfRSiTq4AVny2-4,50832
9
- reywechat/rsend.py,sha256=n2kTvO0602KnEhZom7NFteEUw2G_vbqUWW-xajl6_Ck,19901
10
- reywechat/rtrigger.py,sha256=Vkaq9_2P_85TiEmVv5Z7FghQaMAEfrpGiIo7XzhOimo,4944
11
- reywechat/rwechat.py,sha256=mvS5CIw6sSSU7mdbDMHsKALtkLceBSb87pGTKg0TS_4,4710
12
- reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
- reywechat-1.0.89.dist-info/METADATA,sha256=Lzx5-hJUdUrGseJa_OmDNuzaqBSnU0q20llk3hS7Eqc,1596
14
- reywechat-1.0.89.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- reywechat-1.0.89.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
- reywechat-1.0.89.dist-info/RECORD,,