reykit 1.1.68__py3-none-any.whl → 1.1.71__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.
- reykit/rschedule.py +3 -14
- reykit/rtime.py +6 -2
- {reykit-1.1.68.dist-info → reykit-1.1.71.dist-info}/METADATA +1 -1
- {reykit-1.1.68.dist-info → reykit-1.1.71.dist-info}/RECORD +6 -6
- {reykit-1.1.68.dist-info → reykit-1.1.71.dist-info}/WHEEL +0 -0
- {reykit-1.1.68.dist-info → reykit-1.1.71.dist-info}/licenses/LICENSE +0 -0
reykit/rschedule.py
CHANGED
@@ -76,6 +76,9 @@ class Schedule(Base):
|
|
76
76
|
)
|
77
77
|
self.scheduler = scheduler
|
78
78
|
|
79
|
+
### Start.
|
80
|
+
self.scheduler.start()
|
81
|
+
|
79
82
|
## Database.
|
80
83
|
self.database = database
|
81
84
|
|
@@ -86,17 +89,6 @@ class Schedule(Base):
|
|
86
89
|
'base.stats_schedule': 'stats_schedule'
|
87
90
|
}
|
88
91
|
|
89
|
-
self.notes: dict[str, str] = {}
|
90
|
-
|
91
|
-
|
92
|
-
def start(self) -> None:
|
93
|
-
"""
|
94
|
-
Start scheduler.
|
95
|
-
"""
|
96
|
-
|
97
|
-
# Start.
|
98
|
-
self.scheduler.start()
|
99
|
-
|
100
92
|
|
101
93
|
def pause(self) -> None:
|
102
94
|
"""
|
@@ -265,9 +257,6 @@ class Schedule(Base):
|
|
265
257
|
**trigger_args
|
266
258
|
)
|
267
259
|
|
268
|
-
# Note.
|
269
|
-
self.notes[job.id] = note
|
270
|
-
|
271
260
|
return job
|
272
261
|
|
273
262
|
|
reykit/rtime.py
CHANGED
@@ -58,7 +58,7 @@ def now(format_: Literal['time']) -> Time: ...
|
|
58
58
|
def now(format_: Literal['datetime_str', 'date_str', 'time_str']) -> str: ...
|
59
59
|
|
60
60
|
@overload
|
61
|
-
def now(format_: Literal['timestamp']) -> int: ...
|
61
|
+
def now(format_: Literal['timestamp', 'timestamp_s']) -> int: ...
|
62
62
|
|
63
63
|
def now(
|
64
64
|
format_: Literal[
|
@@ -68,7 +68,8 @@ def now(
|
|
68
68
|
'datetime_str',
|
69
69
|
'date_str',
|
70
70
|
'time_str',
|
71
|
-
'timestamp'
|
71
|
+
'timestamp',
|
72
|
+
'timestamp_s'
|
72
73
|
] = 'datetime'
|
73
74
|
) -> Datetime | Date | Time | str | int:
|
74
75
|
"""
|
@@ -84,6 +85,7 @@ def now(
|
|
84
85
|
- `Literal['date_str']`: Return string in format `'%Y-%m-%d'`.
|
85
86
|
- `Literal['time_str']`: Return string in foramt `'%H:%M:%S'`.
|
86
87
|
- `Literal['timestamp']`: Return time stamp in milliseconds.
|
88
|
+
- `Literal['timestamp_s']`: Return time stamp in seconds.
|
87
89
|
|
88
90
|
Returns
|
89
91
|
-------
|
@@ -106,6 +108,8 @@ def now(
|
|
106
108
|
return Datetime.now().strftime('%H:%M:%S')
|
107
109
|
case 'timestamp':
|
108
110
|
return int(time_time() * 1000)
|
111
|
+
case 'timestamp_s':
|
112
|
+
return int(time_time())
|
109
113
|
case _:
|
110
114
|
throw(ValueError, format_)
|
111
115
|
|
@@ -11,18 +11,18 @@ reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
|
|
11
11
|
reykit/ros.py,sha256=Yi_mfYzVHwjjUZke0BNX7PKFLZpoT5NRyj5aDOSNQRU,46911
|
12
12
|
reykit/rrand.py,sha256=4VwooITgox54_GonELcJfcIpStDi-UJchpnyWKnyeIA,8606
|
13
13
|
reykit/rre.py,sha256=1qva7xatKVE9qC2j7IujjXSM59qxHWwTYpiizFFQ8Xo,6024
|
14
|
-
reykit/rschedule.py,sha256=
|
14
|
+
reykit/rschedule.py,sha256=HuQRSNF6yd397P9knIX9-z8Ii1tUXFUL_-zxTIkxir0,14804
|
15
15
|
reykit/rstdout.py,sha256=yesWo7wIGablpyAu-2J2Gw11Qp3GdQjGICTyIcvLyt4,8200
|
16
16
|
reykit/rsys.py,sha256=AP62KyN40flCeQJBclfJq8shachSAFT0LkVjiKsXkrw,24946
|
17
17
|
reykit/rtable.py,sha256=UQ-JlwjssMR3gY1iY-VGQEKQ5_BZabpJy6TL7Fx19c4,12200
|
18
18
|
reykit/rtask.py,sha256=NUTngUUDUZy3TqEHiuiKy17FcE0F1zS118KnKTsBjng,22838
|
19
19
|
reykit/rtext.py,sha256=cWHy19lDcJvpX7LU95kmRVsDimpAUaz5TbKC1h83gB4,13254
|
20
|
-
reykit/rtime.py,sha256=
|
20
|
+
reykit/rtime.py,sha256=lsSKaYFmYXlDN18yj2fLVTKSruzgygl8icW6_Fl42Xk,17807
|
21
21
|
reykit/rwrap.py,sha256=FEmeK_fboJ-OyXeJf8bilc7U2ph8xIbZGNHb6fLCy2c,15063
|
22
22
|
reykit/rzip.py,sha256=BGEONswuBZxQ-zcgd_xp2fcvYesC9AmKaaXWvnT3bTI,3456
|
23
23
|
reykit/rdll/__init__.py,sha256=nLSb8onBm2ilyoxzpDzUeGfSCKwkLEesIhzK3LiJ8mk,701
|
24
24
|
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
25
|
-
reykit-1.1.
|
26
|
-
reykit-1.1.
|
27
|
-
reykit-1.1.
|
28
|
-
reykit-1.1.
|
25
|
+
reykit-1.1.71.dist-info/METADATA,sha256=Nb_DD9MgqjDfIjqFrHgXQZPbjO4r5MM5gMTs0TFpcVw,1872
|
26
|
+
reykit-1.1.71.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.71.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.71.dist-info/RECORD,,
|
File without changes
|
File without changes
|