reykit 1.1.18__py3-none-any.whl → 1.1.19__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 CHANGED
@@ -16,7 +16,7 @@ from itertools import chain as IChain
16
16
 
17
17
  from .rexception import check_least_one, check_most_one
18
18
  from .rsystem import is_iterable
19
- from .rtype import T, KT, VT, Null
19
+ from .rtype import T, KT, VT, RBase, Null
20
20
 
21
21
 
22
22
  __all__ = (
@@ -356,7 +356,7 @@ def default_dict(default: T = Null, data: dict[KT, VT] | None = None) -> Default
356
356
  return dict_set
357
357
 
358
358
 
359
- class RGenerator(object):
359
+ class RGenerator(RBase):
360
360
  """
361
361
  Rey's `generator` type.
362
362
  """
reykit/remail.py CHANGED
@@ -17,6 +17,7 @@ from email.mime.application import MIMEApplication
17
17
  from .rdata import unique
18
18
  from .rexception import throw
19
19
  from .ros import FileBytes, get_file_bytes
20
+ from .rtype import RBase
20
21
 
21
22
 
22
23
  __all__ = (
@@ -24,7 +25,7 @@ __all__ = (
24
25
  )
25
26
 
26
27
 
27
- class REmail(object):
28
+ class REmail(RBase):
28
29
  """
29
30
  Rey's `email` type.
30
31
  """
reykit/rlog.py CHANGED
@@ -37,7 +37,7 @@ from .rstdout import RConfigStdout, modify_print, reset_print
37
37
  from .rsystem import get_first_notnull, get_stack_param
38
38
  from .rtext import to_text
39
39
  from .rtime import now, time_to
40
- from .rtype import RConfigMeta
40
+ from .rtype import RBase, RConfigMeta
41
41
  from .rwrap import wrap_thread
42
42
 
43
43
 
reykit/rmultitask.py CHANGED
@@ -33,7 +33,7 @@ from aiohttp import ClientSession, ClientResponse
33
33
 
34
34
  from .rexception import throw, check_most_one, check_response_code
35
35
  from .rtime import randn, RTimeMark
36
- from .rtype import T
36
+ from .rtype import T, RBase
37
37
  from .rwrap import wrap_thread
38
38
 
39
39
 
@@ -47,7 +47,7 @@ __all__ = (
47
47
  )
48
48
 
49
49
 
50
- class RThreadPool(object):
50
+ class RThreadPool(RBase):
51
51
  """
52
52
  Rey's `thread pool` type.
53
53
 
@@ -670,7 +670,7 @@ async def async_request(
670
670
  return result
671
671
 
672
672
 
673
- class RAsyncPool(object):
673
+ class RAsyncPool(RBase):
674
674
  """
675
675
  Rey's `asynchronous pool` type.
676
676
 
reykit/ros.py CHANGED
@@ -55,6 +55,7 @@ from .rexception import throw
55
55
  from .rregex import search, sub
56
56
  from .rsystem import dos_command
57
57
  from .rtext import to_json
58
+ from .rtype import RBase
58
59
 
59
60
 
60
61
  __all__ = (
@@ -299,7 +300,7 @@ def read_toml(path: str | RFile) -> dict[str, Any]:
299
300
  return params
300
301
 
301
302
 
302
- class RFile(object):
303
+ class RFile(RBase):
303
304
  """
304
305
  Rey's `file` type.
305
306
  """
@@ -845,7 +846,7 @@ class RFile(object):
845
846
  __call__ = write
846
847
 
847
848
 
848
- class RFolder(object):
849
+ class RFolder(RBase):
849
850
  """
850
851
  Rey's `folder` type.
851
852
  """
@@ -1219,7 +1220,7 @@ class RFolder(object):
1219
1220
  __call__ = paths
1220
1221
 
1221
1222
 
1222
- class RTempFile(object):
1223
+ class RTempFile(RBase):
1223
1224
  """
1224
1225
  Rey's `temporary file` type.
1225
1226
  """
@@ -1504,7 +1505,7 @@ class RTempFile(object):
1504
1505
  __call__ = write
1505
1506
 
1506
1507
 
1507
- class RTempFolder(object):
1508
+ class RTempFolder(RBase):
1508
1509
  """
1509
1510
  Rey's `temporary folder` type.
1510
1511
  """
reykit/rrandom.py CHANGED
@@ -21,7 +21,7 @@ from threading import get_ident as threading_get_ident
21
21
 
22
22
  from .rexception import throw
23
23
  from .rnumber import digits
24
- from .rtype import T, RConfigMeta
24
+ from .rtype import T, RBase, RConfigMeta
25
25
 
26
26
 
27
27
  __all__ = (
@@ -35,7 +35,7 @@ __all__ = (
35
35
  )
36
36
 
37
37
 
38
- class RConfigRandom(object, metaclass=RConfigMeta):
38
+ class RConfigRandom(RBase, metaclass=RConfigMeta):
39
39
  """
40
40
  Rey's `config random` type.
41
41
  """
@@ -44,7 +44,7 @@ class RConfigRandom(object, metaclass=RConfigMeta):
44
44
  _rrandom_dict: dict[int, RRandomSeed] = {}
45
45
 
46
46
 
47
- class RRandomSeed(object):
47
+ class RRandomSeed(RBase):
48
48
  """
49
49
  Rey's `random seed` type, set random seed.
50
50
  If set, based on `random` package.
reykit/rschedule.py CHANGED
@@ -16,13 +16,15 @@ from apscheduler.schedulers.background import BackgroundScheduler
16
16
  from apscheduler.schedulers.blocking import BlockingScheduler
17
17
  from apscheduler.job import Job
18
18
 
19
+ from .rtype import RBase
20
+
19
21
 
20
22
  __all__ = (
21
23
  'RSchedule',
22
24
  )
23
25
 
24
26
 
25
- class RSchedule(object):
27
+ class RSchedule(RBase):
26
28
  """
27
29
  Rey's `schedule` type.
28
30
  """
reykit/rstdout.py CHANGED
@@ -18,7 +18,7 @@ from os.path import abspath as os_abspath
18
18
 
19
19
  from .rsystem import get_first_notnull, get_name, get_stack_param
20
20
  from .rtext import to_text, add_text_frame
21
- from .rtype import RConfigMeta
21
+ from .rtype import RBase, RConfigMeta
22
22
 
23
23
 
24
24
  __all__ = (
@@ -34,7 +34,7 @@ __all__ = (
34
34
  )
35
35
 
36
36
 
37
- class RConfigStdout(object, metaclass=RConfigMeta):
37
+ class RConfigStdout(RBase, metaclass=RConfigMeta):
38
38
  """
39
39
  Rey's `config standard output` type.
40
40
 
reykit/rsystem.py CHANGED
@@ -56,7 +56,7 @@ from tkinter.filedialog import (
56
56
  )
57
57
 
58
58
  from .rexception import throw
59
- from .rtype import RConfigMeta
59
+ from .rtype import RBase, RConfigMeta
60
60
 
61
61
 
62
62
  __all__ = (
@@ -125,7 +125,7 @@ NetWorkInfo = TypedDict(
125
125
  ProcessInfo = TypedDict('ProcessInfo', {'create_time': datetime, 'id': int, 'name': str, 'ports': list[int] | None})
126
126
 
127
127
 
128
- class RConfigSystem(object, metaclass=RConfigMeta):
128
+ class RConfigSystem(RBase, metaclass=RConfigMeta):
129
129
  """
130
130
  Rey's `config system` type.
131
131
  """
reykit/rtype.py CHANGED
@@ -17,6 +17,7 @@ __all__ = (
17
17
  'T',
18
18
  'KT',
19
19
  'VT',
20
+ 'RBase',
20
21
  'RStaticMeta',
21
22
  'RConfigMeta',
22
23
  'RSingleton',
@@ -31,7 +32,13 @@ KT = TypeVar('KT') # Any dictionary key.
31
32
  VT = TypeVar('VT') # Any dictionary value.
32
33
 
33
34
 
34
- class RStaticMeta(type):
35
+ class RBase(RBase):
36
+ """
37
+ Rey's `base` type.
38
+ """
39
+
40
+
41
+ class RStaticMeta(RBase, type):
35
42
  """
36
43
  Rey's `static meta` type.
37
44
  """
@@ -52,7 +59,7 @@ class RConfigMeta(RStaticMeta):
52
59
  """
53
60
 
54
61
 
55
- def __getitem__(cls, name: str):
62
+ def __getitem__(cls, name: str) -> Any:
56
63
  """
57
64
  Get item.
58
65
 
@@ -84,7 +91,7 @@ class RConfigMeta(RStaticMeta):
84
91
  setattr(cls, name, value)
85
92
 
86
93
 
87
- class RSingleton(object):
94
+ class RSingleton(RBase):
88
95
  """
89
96
  Rey's `singleton` type.
90
97
  When instantiated, method `__singleton__` will be called only once, and will accept arguments.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.18
3
+ Version: 1.1.19
4
4
  Summary: Rey's kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -1,30 +1,30 @@
1
1
  reykit/__init__.py,sha256=QwnhdUDSXgjXJQ4ClaeP9oKXUXyQOPj5sApwGCDrILc,848
2
2
  reykit/rall.py,sha256=mOFwHXZ4-BOkJ5Ptbm6lQc2zwNf_VqcqM6AYYnYPfoo,672
3
3
  reykit/rcomm.py,sha256=LgSLrpUokOgdRMYwuZj6JNvxDyvENwsiOd6ZHo67HBg,11444
4
- reykit/rdata.py,sha256=HfDnPT4MR-Y08l0DES_E_4nRXzN7c0KfQ0YF-A7_Fbw,9990
5
- reykit/remail.py,sha256=rK_hbqGeZh04DnVPtjODLsm_YfdrZ5L-Z6SbjplrfUc,6736
4
+ reykit/rdata.py,sha256=ZHYQhMFS8kNnAmFPIDysOUnG_SUQOveFZ018S47QIh4,9996
5
+ reykit/remail.py,sha256=SvjGC80BojMrLoaHiVltDvpeD-S5zDsrRxU2oascl3I,6761
6
6
  reykit/rexception.py,sha256=X56Ma9PtywVYAc38PmmMTlIxORYFy8Sz9e2bmm3j32M,8337
7
7
  reykit/rimage.py,sha256=VXlQFCZBjx1Mu18Au0Qmth9-u8dlIz0h8u_X100ImxA,6287
8
- reykit/rlog.py,sha256=EETnQNVADBvTyseVpL5uOKWL647ee6ZeAevBnTOOWF8,25764
8
+ reykit/rlog.py,sha256=8dCfDhKXZ1a534AhVx2dE9-TalZ7K5863t7ZwPzGIaU,25771
9
9
  reykit/rmonkey.py,sha256=OAlLVvMszMDzersroVC9NjbD2GPnoPgWF4AHZ3v3-fk,8232
10
- reykit/rmultitask.py,sha256=vey2UiPcwP7XI8LiobcpRqA0FGUg_jAzBR9FmcuSHEk,23133
10
+ reykit/rmultitask.py,sha256=nhuYRI8OCB5pNuolWd1L-_ioKB7OXJAysCKVxu55UxI,23138
11
11
  reykit/rnumber.py,sha256=6x4FuRB-MTJheo6wbTUEaBarnew15jomlrneo3_Q2wg,3646
12
- reykit/ros.py,sha256=vrQw4WC2YebK1fucgyLk1PmoPBtgD_ONRzsSgIEJx8c,40682
13
- reykit/rrandom.py,sha256=Av-neLmX3DXYPq-qzYY95CfXvOTvXcvtXr9Lrqd1wSU,9232
12
+ reykit/ros.py,sha256=R5Md2IKfQ3NaVh_2KeLWNAWRBU1GOm38RUmVO5KLpVs,40704
13
+ reykit/rrandom.py,sha256=qIq239IY9YkbJY74Gzc5ayiis_ugoS6nmAx_pD0RJKE,9237
14
14
  reykit/rregex.py,sha256=XTlnDLior8yyncFdrTr9FsVlBcqMXvsWRfpmvQS-BR8,6089
15
- reykit/rschedule.py,sha256=pYZq8gFOY46_ayRpW2gXsfybMZ7ULTNikLSwMuT_11M,5798
16
- reykit/rstdout.py,sha256=O-78in-_mQ-FJP869UikdHICefiF3Yb2M0fOBJ07wwk,9921
17
- reykit/rsystem.py,sha256=xEgcse_4XbYB50USsVoh6yy3C5rHlnE1jKQdLdNOcPw,35364
15
+ reykit/rschedule.py,sha256=cdHn9F453KabFPvPeeT_WcpDSsdXPmIEgB2wMgHuKt4,5825
16
+ reykit/rstdout.py,sha256=E6wyze9fGcR1wEatD5gIcsPF_qsJ1SG5VkKWKSns944,9927
17
+ reykit/rsystem.py,sha256=PpzB2oppZODh5YUUDV_8Ap3eJWa2cRU9tRBcSxlTiyw,35370
18
18
  reykit/rtable.py,sha256=gXszf_9DE_5SMdNcxMX-xd4IpHGQVjGsN3NQIm7wVGY,12055
19
19
  reykit/rtext.py,sha256=whaKpVkd36yYVtCmZ1ptp_TVRL1v3f7Jab0vPXC8wXY,11089
20
20
  reykit/rtime.py,sha256=WYPmpz4ZyrqWVU0YrXAiZWLYbMZeZTX3XqTGwt-EE3g,17101
21
- reykit/rtype.py,sha256=76sw4XtnEYJQsnargigJH96pPc6mZNX5is3Zv1Kgg7Y,2222
21
+ reykit/rtype.py,sha256=MN06e6HbHarlt8Pz4RhU1gggHZ8pPEYNu-9ubbY4qwA,2316
22
22
  reykit/rwrap.py,sha256=AJBYTDLHLGlMSiGIKoVkCsQk-Y4nDHWWFVCdnz5Bwdk,15222
23
23
  reykit/rzip.py,sha256=i6KkmeSWCnq025d-O1mbuCYezNRUhyY9OGVK0CRlNAM,3522
24
24
  reykit/rdll/__init__.py,sha256=vM9V7wSNno-WH9RrxgHTIgCkQm8LmBFoLFO8z7qovNo,306
25
25
  reykit/rdll/rdll_inject.py,sha256=bETl8tywtN1OiQudbA21u6GwBM_bqVX7jbiisNj_JBg,645
26
26
  reykit/rdll/rdll_inject_core.py,sha256=Trgh_pdJs_Lw-Y-0Kkn8kHr4BnilM9dBKnHnX25T_pM,5092
27
- reykit-1.1.18.dist-info/METADATA,sha256=wsVLl022HlSUO8PBTvTf9bcBavsCqsX1YNSTsWldZiA,1889
28
- reykit-1.1.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- reykit-1.1.18.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
30
- reykit-1.1.18.dist-info/RECORD,,
27
+ reykit-1.1.19.dist-info/METADATA,sha256=6qee5Vl_ZSlNUfGGO9klFBCMeuRAWTzzrcG9n2QSpbk,1889
28
+ reykit-1.1.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ reykit-1.1.19.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
30
+ reykit-1.1.19.dist-info/RECORD,,