reykit 1.1.62__py3-none-any.whl → 1.1.64__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/ros.py +5 -16
- reykit/rschedule.py +3 -3
- {reykit-1.1.62.dist-info → reykit-1.1.64.dist-info}/METADATA +1 -1
- {reykit-1.1.62.dist-info → reykit-1.1.64.dist-info}/RECORD +6 -6
- {reykit-1.1.62.dist-info → reykit-1.1.64.dist-info}/WHEEL +0 -0
- {reykit-1.1.62.dist-info → reykit-1.1.64.dist-info}/licenses/LICENSE +0 -0
reykit/ros.py
CHANGED
@@ -352,38 +352,27 @@ class File(Base):
|
|
352
352
|
|
353
353
|
|
354
354
|
@overload
|
355
|
-
def open(self, mode: OpenBinaryMode = 'wb+') -> BinaryIO: ...
|
355
|
+
def open(self, mode: OpenBinaryMode = 'wb+', encode: str = 'utf-8') -> BinaryIO: ...
|
356
356
|
|
357
357
|
@overload
|
358
|
-
def open(self, mode: OpenTextMode) -> TextIO: ...
|
358
|
+
def open(self, mode: OpenTextMode, encode: str = 'utf-8') -> TextIO: ...
|
359
359
|
|
360
|
-
def open(self, mode: OpenTextMode | OpenBinaryMode = 'wb+') -> TextIO | BinaryIO:
|
360
|
+
def open(self, mode: OpenTextMode | OpenBinaryMode = 'wb+', encode: str = 'utf-8') -> TextIO | BinaryIO:
|
361
361
|
"""
|
362
362
|
Open file.
|
363
363
|
|
364
364
|
Parameters
|
365
365
|
----------
|
366
366
|
mode : Open mode.
|
367
|
+
encode : Encoding method.
|
367
368
|
|
368
369
|
Returns
|
369
370
|
-------
|
370
371
|
IO object.
|
371
372
|
"""
|
372
373
|
|
373
|
-
# Handle parameter.
|
374
|
-
if (
|
375
|
-
(
|
376
|
-
'r' in mode
|
377
|
-
or '+' in mode
|
378
|
-
)
|
379
|
-
and 'b' not in mode
|
380
|
-
):
|
381
|
-
encoding = 'utf-8'
|
382
|
-
else:
|
383
|
-
encoding = None
|
384
|
-
|
385
374
|
# Open.
|
386
|
-
io = open(self.path, mode, encoding=
|
375
|
+
io = open(self.path, mode, encoding=encode)
|
387
376
|
|
388
377
|
return io
|
389
378
|
|
reykit/rschedule.py
CHANGED
@@ -124,7 +124,7 @@ class Schedule(Base):
|
|
124
124
|
|
125
125
|
def add_task(
|
126
126
|
self,
|
127
|
-
|
127
|
+
task: Callable,
|
128
128
|
trigger: Literal['date', 'interval', 'cron'] = 'date',
|
129
129
|
args: tuple | None = None,
|
130
130
|
kwargs: dict | None = None,
|
@@ -135,7 +135,7 @@ class Schedule(Base):
|
|
135
135
|
|
136
136
|
Parameters
|
137
137
|
----------
|
138
|
-
|
138
|
+
task : Task function.
|
139
139
|
trigger : Trigger type.
|
140
140
|
args : Task position arguments.
|
141
141
|
kwargs : Task keyword arguments.
|
@@ -148,7 +148,7 @@ class Schedule(Base):
|
|
148
148
|
|
149
149
|
# Add.
|
150
150
|
job = self.scheduler.add_job(
|
151
|
-
|
151
|
+
task,
|
152
152
|
trigger,
|
153
153
|
args,
|
154
154
|
kwargs,
|
@@ -8,10 +8,10 @@ reykit/rlog.py,sha256=TRAWaVG9KTgzeNjN-FXkcvBmvq1IhICgawllQEGoUdg,25745
|
|
8
8
|
reykit/rmonkey.py,sha256=Dj2GBzBDFXbo0Z-5f8Zep4dfbaIw1bo1FUmC31xvDuk,7929
|
9
9
|
reykit/rnet.py,sha256=6uULgoPk8DTKWg9yNQco7gdw4A59F9ygcZR6rgO4eoY,16897
|
10
10
|
reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
|
11
|
-
reykit/ros.py,sha256=
|
11
|
+
reykit/ros.py,sha256=1i878eWvR7L1riTIX_oljg_31V53QOz9sR9b4XEUQ1s,46851
|
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=QakEAtOcMg8uL2iOLre9uSsH-DsW6uAvzdXFiPJw_1o,5767
|
15
15
|
reykit/rstdout.py,sha256=yesWo7wIGablpyAu-2J2Gw11Qp3GdQjGICTyIcvLyt4,8200
|
16
16
|
reykit/rsys.py,sha256=cafnGGerxR0kg5GHNJojmvsMDNsjgsJ3CtIGH5mAJa8,24953
|
17
17
|
reykit/rtable.py,sha256=YuDH2GL9Lwr5LljRDm5hzHrsvaXOs4-X89XVwFD-b0g,12221
|
@@ -22,7 +22,7 @@ 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.64.dist-info/METADATA,sha256=_HPzKz8oeq_2sWw95sp3mtKVDjULCRUbIkjoL8JcyU4,1872
|
26
|
+
reykit-1.1.64.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.64.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.64.dist-info/RECORD,,
|
File without changes
|
File without changes
|