reywechat 1.0.48__py3-none-any.whl → 1.0.49__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 +0 -1
- reywechat/rall.py +0 -1
- reywechat/rwechat.py +0 -7
- {reywechat-1.0.48.dist-info → reywechat-1.0.49.dist-info}/METADATA +1 -1
- {reywechat-1.0.48.dist-info → reywechat-1.0.49.dist-info}/RECORD +7 -8
- reywechat/rschedule.py +0 -93
- {reywechat-1.0.48.dist-info → reywechat-1.0.49.dist-info}/WHEEL +0 -0
- {reywechat-1.0.48.dist-info → reywechat-1.0.49.dist-info}/licenses/LICENSE +0 -0
reywechat/__init__.py
CHANGED
reywechat/rall.py
CHANGED
reywechat/rwechat.py
CHANGED
@@ -69,7 +69,6 @@ class WeChat(WeChatBase):
|
|
69
69
|
from .rdb import WeChatDatabase
|
70
70
|
from .rlog import WeChatLog
|
71
71
|
from .rreceive import WechatReceiver
|
72
|
-
from .rschedule import WeChatSchedule
|
73
72
|
from .rsend import WeChatSender
|
74
73
|
|
75
74
|
# Set attribute.
|
@@ -83,7 +82,6 @@ class WeChat(WeChatBase):
|
|
83
82
|
self.trigger = self.receiver.trigger
|
84
83
|
self.sender = WeChatSender(self)
|
85
84
|
self.database = WeChatDatabase(self, database)
|
86
|
-
self.schedule = WeChatSchedule(self)
|
87
85
|
|
88
86
|
## Client.
|
89
87
|
self.client_version = self.client.client_version
|
@@ -111,11 +109,6 @@ class WeChat(WeChatBase):
|
|
111
109
|
## Database.
|
112
110
|
self.database_build = self.database.build_db
|
113
111
|
|
114
|
-
## Schedule.
|
115
|
-
self.schedule_add_task = self.schedule.add_task
|
116
|
-
self.schedule_pause = self.schedule.pause
|
117
|
-
self.schedule_resume = self.schedule.resume
|
118
|
-
|
119
112
|
|
120
113
|
def start(self) -> None:
|
121
114
|
"""
|
@@ -1,17 +1,16 @@
|
|
1
|
-
reywechat/__init__.py,sha256=
|
2
|
-
reywechat/rall.py,sha256=
|
1
|
+
reywechat/__init__.py,sha256=FXc3XSiPLLmz9bgZdiYKxeWX-7VT9RqPc_EkXp3Kk0I,476
|
2
|
+
reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
|
3
3
|
reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
|
4
4
|
reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
|
5
5
|
reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
|
6
6
|
reywechat/rdb.py,sha256=9WI0sxMscGMu-PnXKGxHThoO-kr2v8VPqQbxbZdjedw,47334
|
7
7
|
reywechat/rlog.py,sha256=4EsTgrgC05JvWeKAucUaWGga638CRRJISJN6qncBCAw,5249
|
8
8
|
reywechat/rreceive.py,sha256=dVKCGv6oTrmMK-v_zf5j0Zr04p0r2kbkWWAnkFYBuSY,36181
|
9
|
-
reywechat/rschedule.py,sha256=JzjYdjtFnbNNnpRGnCUJJThh3QreD271GXO6Emz216U,1865
|
10
9
|
reywechat/rsend.py,sha256=GTMAe-w8j8vEqxoqjFEb0tEg8z1qf3RtJyZgckVgvW4,17994
|
11
10
|
reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
|
12
|
-
reywechat/rwechat.py,sha256=
|
11
|
+
reywechat/rwechat.py,sha256=sqXihPPXskWt34JyiUhnGZf055KhZxX-8qwf5VWpc1w,4599
|
13
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
17
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.49.dist-info/METADATA,sha256=c4PE8b1oGVMSBM2b8p5nIziHb5Dd9TAfEyzZa6kIlzA,1551
|
14
|
+
reywechat-1.0.49.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.49.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.49.dist-info/RECORD,,
|
reywechat/rschedule.py
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
# !/usr/bin/env python
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
|
4
|
-
"""
|
5
|
-
@Time : 2024-01-09 21:47:02
|
6
|
-
@Author : Rey
|
7
|
-
@Contact : reyxbo@163.com
|
8
|
-
@Explain : Schedule methods.
|
9
|
-
"""
|
10
|
-
|
11
|
-
|
12
|
-
from __future__ import annotations
|
13
|
-
from typing import Any, Literal
|
14
|
-
from collections.abc import Callable
|
15
|
-
from reykit.rschedule import Schedule
|
16
|
-
|
17
|
-
from .rbase import WeChatBase
|
18
|
-
from .rsend import WeChatSendTypeEnum
|
19
|
-
from .rwechat import WeChat
|
20
|
-
|
21
|
-
|
22
|
-
class WeChatSchedule(WeChatBase):
|
23
|
-
"""
|
24
|
-
WeChat schedule type.
|
25
|
-
"""
|
26
|
-
|
27
|
-
TypeEnum = WeChatSendTypeEnum
|
28
|
-
|
29
|
-
|
30
|
-
def __init__(
|
31
|
-
self,
|
32
|
-
wechat: WeChat
|
33
|
-
) -> None:
|
34
|
-
"""
|
35
|
-
Build instance attributes.
|
36
|
-
|
37
|
-
Parameters
|
38
|
-
----------
|
39
|
-
wechat : `WeChatClient` instance.
|
40
|
-
"""
|
41
|
-
|
42
|
-
# Set attribute.
|
43
|
-
self.wechat = wechat
|
44
|
-
self.rrschedule = Schedule()
|
45
|
-
|
46
|
-
# Start.
|
47
|
-
self.rrschedule.start()
|
48
|
-
|
49
|
-
|
50
|
-
def add_task(
|
51
|
-
self,
|
52
|
-
trigger: Literal['date', 'interval', 'cron'],
|
53
|
-
task: Callable[[WeChatSchedule], Any],
|
54
|
-
**trigger_kwargs: Any
|
55
|
-
) -> None:
|
56
|
-
"""
|
57
|
-
Add schedule send message task.
|
58
|
-
|
59
|
-
Parameters
|
60
|
-
----------
|
61
|
-
trigger : Trigger type.
|
62
|
-
task : Function of task. The parameter is the `WeChatSchedule` instance.
|
63
|
-
trigger_kwargs : Trigger keyword arguments.
|
64
|
-
"""
|
65
|
-
|
66
|
-
# Handle parameter.
|
67
|
-
args = (self,)
|
68
|
-
|
69
|
-
# Add.
|
70
|
-
self.rrschedule.add_task(
|
71
|
-
task,
|
72
|
-
trigger,
|
73
|
-
args,
|
74
|
-
**trigger_kwargs
|
75
|
-
)
|
76
|
-
|
77
|
-
|
78
|
-
def pause(self) -> None:
|
79
|
-
"""
|
80
|
-
Pause scheduler.
|
81
|
-
"""
|
82
|
-
|
83
|
-
# Pause.
|
84
|
-
self.rrschedule.pause()
|
85
|
-
|
86
|
-
|
87
|
-
def resume(self) -> None:
|
88
|
-
"""
|
89
|
-
Resume scheduler.
|
90
|
-
"""
|
91
|
-
|
92
|
-
# Pause.
|
93
|
-
self.rrschedule.resume
|
File without changes
|
File without changes
|