reykit 1.1.25__py3-none-any.whl → 1.1.26__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/rdata.py +17 -8
- reykit/remail.py +6 -6
- reykit/rexc.py +9 -9
- reykit/rimage.py +9 -9
- reykit/rlog.py +23 -23
- reykit/rmonkey.py +9 -7
- reykit/rnet.py +10 -10
- reykit/ros.py +26 -27
- reykit/rrand.py +16 -16
- reykit/rschedule.py +5 -5
- reykit/rstdout.py +30 -30
- reykit/rsys.py +7 -7
- reykit/rtable.py +2 -2
- reykit/rtask.py +13 -13
- reykit/rtime.py +6 -6
- reykit/rtype.py +17 -17
- reykit/rwrap.py +2 -2
- reykit/rzip.py +4 -4
- {reykit-1.1.25.dist-info → reykit-1.1.26.dist-info}/METADATA +1 -1
- reykit-1.1.26.dist-info/RECORD +29 -0
- reykit-1.1.25.dist-info/RECORD +0 -29
- {reykit-1.1.25.dist-info → reykit-1.1.26.dist-info}/WHEEL +0 -0
- {reykit-1.1.25.dist-info → reykit-1.1.26.dist-info}/licenses/LICENSE +0 -0
reykit/rtype.py
CHANGED
@@ -17,12 +17,12 @@ __all__ = (
|
|
17
17
|
'T',
|
18
18
|
'KT',
|
19
19
|
'VT',
|
20
|
-
'
|
21
|
-
'
|
22
|
-
'
|
23
|
-
'
|
24
|
-
'
|
25
|
-
'
|
20
|
+
'Base',
|
21
|
+
'StaticMeta',
|
22
|
+
'ConfigMeta',
|
23
|
+
'Singleton',
|
24
|
+
'Null',
|
25
|
+
'null'
|
26
26
|
)
|
27
27
|
|
28
28
|
|
@@ -32,15 +32,15 @@ KT = TypeVar('KT') # Any dictionary key.
|
|
32
32
|
VT = TypeVar('VT') # Any dictionary value.
|
33
33
|
|
34
34
|
|
35
|
-
class
|
35
|
+
class Base(object):
|
36
36
|
"""
|
37
|
-
|
37
|
+
Base type.
|
38
38
|
"""
|
39
39
|
|
40
40
|
|
41
|
-
class
|
41
|
+
class StaticMeta(Base, type):
|
42
42
|
"""
|
43
|
-
|
43
|
+
Static meta type.
|
44
44
|
"""
|
45
45
|
|
46
46
|
|
@@ -53,9 +53,9 @@ class RStaticMeta(RBase, type):
|
|
53
53
|
raise TypeError('static class, no instances allowed.')
|
54
54
|
|
55
55
|
|
56
|
-
class
|
56
|
+
class ConfigMeta(StaticMeta):
|
57
57
|
"""
|
58
|
-
|
58
|
+
Config meta type.
|
59
59
|
"""
|
60
60
|
|
61
61
|
|
@@ -91,9 +91,9 @@ class RConfigMeta(RStaticMeta):
|
|
91
91
|
setattr(cls, name, value)
|
92
92
|
|
93
93
|
|
94
|
-
class
|
94
|
+
class Singleton(Base):
|
95
95
|
"""
|
96
|
-
|
96
|
+
Singleton type.
|
97
97
|
When instantiated, method `__singleton__` will be called only once, and will accept arguments.
|
98
98
|
|
99
99
|
Attributes
|
@@ -121,10 +121,10 @@ class RSingleton(RBase):
|
|
121
121
|
return self._instance
|
122
122
|
|
123
123
|
|
124
|
-
class
|
124
|
+
class Null(Singleton):
|
125
125
|
"""
|
126
|
-
|
126
|
+
Null type.
|
127
127
|
"""
|
128
128
|
|
129
129
|
|
130
|
-
|
130
|
+
null = Null()
|
reykit/rwrap.py
CHANGED
@@ -21,7 +21,7 @@ from contextlib import redirect_stdout
|
|
21
21
|
from .rexc import catch_exc
|
22
22
|
from .rstdout import echo
|
23
23
|
from .rsys import get_arg_info
|
24
|
-
from .rtime import now, time_to,
|
24
|
+
from .rtime import now, time_to, TimeMark
|
25
25
|
|
26
26
|
|
27
27
|
__all__ = (
|
@@ -188,7 +188,7 @@ def wrap_runtime(
|
|
188
188
|
"""
|
189
189
|
|
190
190
|
# Execute function and marking time.
|
191
|
-
rtm =
|
191
|
+
rtm = TimeMark()
|
192
192
|
rtm()
|
193
193
|
result = func(*args, **kwargs)
|
194
194
|
rtm()
|
reykit/rzip.py
CHANGED
@@ -13,7 +13,7 @@ from zipfile import ZipFile, is_zipfile, ZIP_DEFLATED
|
|
13
13
|
from os import getcwd as os_getcwd, walk as os_walk
|
14
14
|
from os.path import join as os_join, isfile as os_isfile
|
15
15
|
|
16
|
-
from .ros import
|
16
|
+
from .ros import File, Folder
|
17
17
|
|
18
18
|
|
19
19
|
__all__ = (
|
@@ -41,17 +41,17 @@ def compress(
|
|
41
41
|
"""
|
42
42
|
|
43
43
|
# Get parameter.
|
44
|
-
build_dir =
|
44
|
+
build_dir = Folder(build_dir).path
|
45
45
|
if overwrite:
|
46
46
|
mode = 'w'
|
47
47
|
else:
|
48
48
|
mode = 'x'
|
49
49
|
is_file = os_isfile(obj_path)
|
50
50
|
if is_file:
|
51
|
-
rfile =
|
51
|
+
rfile = File(obj_path)
|
52
52
|
obj_name = rfile.name_suffix
|
53
53
|
else:
|
54
|
-
rfolder =
|
54
|
+
rfolder = Folder(obj_path)
|
55
55
|
obj_name = rfolder.name
|
56
56
|
build_name = obj_name + '.zip'
|
57
57
|
build_path = os_join(build_dir, build_name)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
reykit/__init__.py,sha256=LdwdCXLzzPyteyYerrwfJH0LGj5jp_j-tamv2JEghTg,821
|
2
|
+
reykit/rall.py,sha256=AEHa1iUCopuM5sPzO0vmSLWTmKeSjilUtzQ8f-jULHk,649
|
3
|
+
reykit/rdata.py,sha256=Hfyj7ZnnHHDP35BY6hNh8lIl-Nepq9rZpuS8yYl3SMo,10228
|
4
|
+
reykit/remail.py,sha256=iieRd4_WfUS7LwgLr1Q_rYuFWLMwSgsBkj62Z2n6K2o,6724
|
5
|
+
reykit/rexc.py,sha256=YneNgCmPw11RMdNtV2xPVKOdXnO5-pzmdYu0y0gagQ4,8129
|
6
|
+
reykit/rimage.py,sha256=pd-9jf2fq4yC4pubMJ45V5KIkQkIoqn12T8VdS406-Q,6181
|
7
|
+
reykit/rlog.py,sha256=B0r7bSPzpFuNrz8YmdhLoyYCh40pMlB8vn78mMkUaH4,25633
|
8
|
+
reykit/rmonkey.py,sha256=XXfUng0YImTZd07A41UmtZFp9smys62-tVPQuVhK_mY,8315
|
9
|
+
reykit/rnet.py,sha256=AeyKMv66N94bs8lnhxxVgm1qRxG4cxhxU9iVB4IUE1c,15051
|
10
|
+
reykit/rnum.py,sha256=9J6unM11dDTg9A8XigHzfut8VFHWaNRKu59vGQ-ISXo,3637
|
11
|
+
reykit/ros.py,sha256=SdbiuURa4BqfTJ1bahBOJfRjn6OTelnO7lLS0DU-V_U,40592
|
12
|
+
reykit/rrand.py,sha256=pwAemF6yLcs2D6xVpJUTdHX3TNaWtCBm9YwhJSzdKwE,9195
|
13
|
+
reykit/rre.py,sha256=0yYRiHhGg2OmuEVNf3zT92AcqQTdrvIJUltiFpjlYdM,6085
|
14
|
+
reykit/rschedule.py,sha256=sSuSmKorqy7U_HRTLBL8Z-nHbSb_DGbMWAWmOhSwbBM,5799
|
15
|
+
reykit/rstdout.py,sha256=y-spetP6UfFToucY00nAVHMMqR99tXqgyA37Zf3OUcY,9879
|
16
|
+
reykit/rsys.py,sha256=9cCspYRVJvD6UyE33GPYZWNikC4UHpmViaQ8V-Kd7k8,36385
|
17
|
+
reykit/rtable.py,sha256=NBj9WXQsRvYBY4sQxyVy7EyKO8Nhoy7IH_-ax2HHxPY,12029
|
18
|
+
reykit/rtask.py,sha256=BTmb0LCB4Tu-Vb3267YqLPY-Iayth9YygGCdTM_3KVA,23053
|
19
|
+
reykit/rtext.py,sha256=KtK9d1y4NCsfydZTxrq5lnnyWvJfPi79ywy2qnauNew,11073
|
20
|
+
reykit/rtime.py,sha256=5C2TkJMvPht3RinEDOzFrqrLD-v4AaOsajkvmbincJg,17083
|
21
|
+
reykit/rtype.py,sha256=cLYeWI3C0USTt2IxNvtw0ZbkNBfmxlVanYVOwutTJjg,2262
|
22
|
+
reykit/rwrap.py,sha256=7PiePIhc-uJ6JWaAYEb-v10DVmoG7rb69MvJNw-8M5Y,15337
|
23
|
+
reykit/rzip.py,sha256=ABUDLwEHQIpcvZbJE_oV78H7dik6nC7kaRz660Ro9Os,3481
|
24
|
+
reykit/rdll/__init__.py,sha256=tdKb-BOKLFn-diCvXjSLg9x71VuRKzkg2KtpOLGLTR4,679
|
25
|
+
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
26
|
+
reykit-1.1.26.dist-info/METADATA,sha256=adAHYX858-5vMNV-vFonQlNSBTiwpe2DTkXFWGWoQHM,1919
|
27
|
+
reykit-1.1.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
reykit-1.1.26.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
29
|
+
reykit-1.1.26.dist-info/RECORD,,
|
reykit-1.1.25.dist-info/RECORD
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
reykit/__init__.py,sha256=LdwdCXLzzPyteyYerrwfJH0LGj5jp_j-tamv2JEghTg,821
|
2
|
-
reykit/rall.py,sha256=AEHa1iUCopuM5sPzO0vmSLWTmKeSjilUtzQ8f-jULHk,649
|
3
|
-
reykit/rdata.py,sha256=a7aauSEjLiqDr-Adg3Aipri0gJrW-Mn-9hMQxRqKq9M,10006
|
4
|
-
reykit/remail.py,sha256=PBY2lCCkJr8BZbeD944sXjOompW1F1-ihbOXNJX-Lak,6744
|
5
|
-
reykit/rexc.py,sha256=yy4VGc7r0GC3ZBp6KMT99hpZ4-AbV1D-wgKuU0Blih4,8136
|
6
|
-
reykit/rimage.py,sha256=fSPNxwfdN9_dMbbPn-LagNSIo_Z-ISLcXaOZgisUc24,6190
|
7
|
-
reykit/rlog.py,sha256=7fGg9XldIntUFrcYVZWC2ChlJlnmbaaU1rB7yZw-IDM,25704
|
8
|
-
reykit/rmonkey.py,sha256=pDXhfX0kyHWptM3OPLL6x3_hQqFd-n6H3TaQafgdXcs,8246
|
9
|
-
reykit/rnet.py,sha256=Je-43L5-ELpy-mWe02jyj9bfcllVifM9KusBP4tkjME,15085
|
10
|
-
reykit/rnum.py,sha256=9J6unM11dDTg9A8XigHzfut8VFHWaNRKu59vGQ-ISXo,3637
|
11
|
-
reykit/ros.py,sha256=ORdUP72dPYWlRyOfcNw5FibxXMPk_Kv9im8h30MoGXc,40731
|
12
|
-
reykit/rrand.py,sha256=5vjQ4wsHUZ84dUs1Arp54QG8ghZYlkusEXgpht19iVw,9237
|
13
|
-
reykit/rre.py,sha256=0yYRiHhGg2OmuEVNf3zT92AcqQTdrvIJUltiFpjlYdM,6085
|
14
|
-
reykit/rschedule.py,sha256=tWqsEiXgNo5zcJtf4-MR5ZMs0fbn3ymU4M8_X1sELEc,5822
|
15
|
-
reykit/rstdout.py,sha256=zyGDk07X9WMTx06MBrg0Ki2tb_QsYLsd0ypU1fa1MVw,9920
|
16
|
-
reykit/rsys.py,sha256=qtmmw_GDIx0KbLHAADLDjXuSd_tYCyFoG7evW0K6564,36402
|
17
|
-
reykit/rtable.py,sha256=M0OOoxFlMJH91lhSGauzwEP7JA0q5-Odwzpff_X-b5g,12031
|
18
|
-
reykit/rtask.py,sha256=gwerLHFnrju695JukYpwCITq0SrblVaSktSLYYpkcLs,23114
|
19
|
-
reykit/rtext.py,sha256=KtK9d1y4NCsfydZTxrq5lnnyWvJfPi79ywy2qnauNew,11073
|
20
|
-
reykit/rtime.py,sha256=YXUN-EQYsgDbZk636gyeXa9NifU2hYoUNvbkX6jmsN4,17096
|
21
|
-
reykit/rtype.py,sha256=O7iI_sJ1Bfl_ZiP29IHqEE3v3PfJRpeA5M6ukEdZSMk,2317
|
22
|
-
reykit/rwrap.py,sha256=r5FBxbgiRMRLdaK6L7Uls5c6E_yfzM9xvWRY2O85KbA,15339
|
23
|
-
reykit/rzip.py,sha256=OEpRB2meW5copstZjeuKmarLD_co8I05WHBaKcLg0O8,3486
|
24
|
-
reykit/rdll/__init__.py,sha256=tdKb-BOKLFn-diCvXjSLg9x71VuRKzkg2KtpOLGLTR4,679
|
25
|
-
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
26
|
-
reykit-1.1.25.dist-info/METADATA,sha256=PJdqvyQoLCx553RFzQLB1KHEvr-yIn9lHEePxUoBagE,1919
|
27
|
-
reykit-1.1.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
-
reykit-1.1.25.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
29
|
-
reykit-1.1.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|