reykit 1.1.102__py3-none-any.whl → 1.1.103__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/rbase.py CHANGED
@@ -191,10 +191,6 @@ class Null(Base, metaclass=StaticMeta):
191
191
  """
192
192
  Null type.
193
193
 
194
- Attributes
195
- ----------
196
- Type : Type hints of self.
197
-
198
194
  Examples
199
195
  --------
200
196
  >>> def foo(arg: Any | Null.Type = Null):
@@ -203,19 +199,17 @@ class Null(Base, metaclass=StaticMeta):
203
199
  """
204
200
 
205
201
  Type = NullType
202
+ 'Type hints of self.'
206
203
 
207
204
 
208
205
  class Singleton(Base):
209
206
  """
210
207
  Singleton type.
211
208
  When instantiated, method `__singleton__` will be called only once, and will accept arguments.
212
-
213
- Attributes
214
- ----------
215
- _instance : Global singleton instance.
216
209
  """
217
210
 
218
211
  __instance: Self
212
+ 'Global singleton instance.'
219
213
 
220
214
 
221
215
  def __new__(self, *arg: Any, **kwargs: Any) -> Self:
reykit/rschedule.py CHANGED
@@ -23,14 +23,14 @@ from .rbase import Base, throw
23
23
 
24
24
 
25
25
  __all__ = (
26
- 'DatabaseTableSchedule',
26
+ 'DatabaseORMTableSchedule',
27
27
  'Schedule'
28
28
  )
29
29
 
30
30
 
31
- class DatabaseTableSchedule(rorm.Model, table=True):
31
+ class DatabaseORMTableSchedule(rorm.Model, table=True):
32
32
  """
33
- Database `schedule` table model.
33
+ Database `schedule` table ORM model.
34
34
  """
35
35
 
36
36
  __name__ = 'schedule'
@@ -99,6 +99,10 @@ class Schedule(Base):
99
99
  ## Database.
100
100
  self.db = db
101
101
 
102
+ ### Build Database.
103
+ if self.db is not None:
104
+ self.build_db()
105
+
102
106
 
103
107
  def build_db(self) -> None:
104
108
  """
@@ -113,7 +117,7 @@ class Schedule(Base):
113
117
  database = self.db.database
114
118
 
115
119
  ## Table.
116
- tables = [DatabaseTableSchedule]
120
+ tables = [DatabaseORMTableSchedule]
117
121
 
118
122
  ## View stats.
119
123
  views_stats = [
reykit/rstdout.py CHANGED
@@ -35,10 +35,6 @@ __all__ = (
35
35
  class ConfigStdout(Base, metaclass=ConfigMeta):
36
36
  """
37
37
  Config standard output type.
38
-
39
- Attributes
40
- ----------
41
- force_print_ascii : Whether force methods print frame use ascii border.
42
38
  """
43
39
 
44
40
  # Module path.
@@ -55,6 +51,7 @@ class ConfigStdout(Base, metaclass=ConfigMeta):
55
51
 
56
52
  # Force print ascii.
57
53
  force_print_ascii: bool = False
54
+ 'Whether force methods print frame use ascii border.'
58
55
 
59
56
  # Added print position.
60
57
  _added_print_position: set = set()
reykit/rtask.py CHANGED
@@ -51,11 +51,6 @@ type CallableCoroutine = Coroutine | ATask | Callable[[], Coroutine]
51
51
  class ThreadPool(Base):
52
52
  """
53
53
  Thread pool type.
54
-
55
- Attributes
56
- ----------
57
- Queue : Thread queue type.
58
- Lock : Thread lock type.
59
54
  """
60
55
 
61
56
  Queue = QQueue
@@ -788,11 +783,6 @@ async def async_request(
788
783
  class AsyncPool(Base):
789
784
  """
790
785
  Asynchronous pool type.
791
-
792
- Attributes
793
- ----------
794
- Queue : asynchronous queue type.
795
- Lock : asynchronous lock type.
796
786
  """
797
787
 
798
788
  Queue = AQueue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.102
3
+ Version: 1.1.103
4
4
  Summary: Kit method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reykit/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -1,6 +1,6 @@
1
1
  reykit/__init__.py,sha256=V86CHqPAAVkooVx3_QIOKpDIFVneQCTTSwfJ-uWgBno,788
2
2
  reykit/rall.py,sha256=7Hip02YOkIDm3_xkoSDjvvYV2LhdBV2r4UKzWWnIfIo,628
3
- reykit/rbase.py,sha256=UCBNQb19cX4Hvy4zQHhi2Dm5q9qFFnJY5ZyQmGCTBlU,22335
3
+ reykit/rbase.py,sha256=nQWIODrCkrcNEWY0tNW5Gm894kfqKxkVlr3jsXQRnwI,22252
4
4
  reykit/rdata.py,sha256=JLdq6vAaHsMIV59GifWqb9J5WSuWJr313WtcKI_XvJY,11332
5
5
  reykit/remail.py,sha256=ybWJ2mXSgtIzr-p_OYyrijxjNxQXt5wEMtUUMbhQfLg,6702
6
6
  reykit/rimage.py,sha256=onM8cdkIY2L84nocvSyBoY9-JieIAJn0eWBh30WRPeg,6133
@@ -11,18 +11,18 @@ reykit/rnum.py,sha256=O8tFLAbDIGG25SvC3i_d9Jq8lRaR1JrzZe5WN0pqIiU,3612
11
11
  reykit/ros.py,sha256=0QIBlhDUv3BCeiuVRBZQbhS6wHLF1RWrLHW1Uq9nUw8,47723
12
12
  reykit/rrand.py,sha256=dcBVVzlRDmSsdWs9MH4SSNMZ_ORhnIBwLzLzX2yvKDk,8558
13
13
  reykit/rre.py,sha256=gNRM94qXWWdyha5kaXeDj03WFs4BGFirq_Orhgi18wY,6010
14
- reykit/rschedule.py,sha256=mbAEjnpA7hrVIP1JTRB0SWrHhvEDZHENR3HjfS2e5CQ,12112
15
- reykit/rstdout.py,sha256=ZGddn5w87jy5vI5RvnMvXravtp8sB7qdrsz4wdOnbYc,8172
14
+ reykit/rschedule.py,sha256=Uq3r0BwvypJ2ScGZgXCV41KZsmh1StcfCvfWADg4rwo,12218
15
+ reykit/rstdout.py,sha256=s2l8cpNrJjtLwRqVv2zPVKcPbIlIncSevK9jzqKmgUo,8120
16
16
  reykit/rsys.py,sha256=kmk20RozJxSFgqPuUOk7mo7YcKEF1u6irTULpVW4ZLA,24903
17
17
  reykit/rtable.py,sha256=e4Eh06p4XFXLDcIfKPVvFd56nMklvPpaff_pe6NhEIM,10596
18
- reykit/rtask.py,sha256=8LSxhfOiNTRMXK7mSWkFKfcFEnmCXuZhdRIf2MkO5PM,27745
18
+ reykit/rtask.py,sha256=iAd_ihPZTrdzb9c1ZzvTf_oEQILF-8IrcsGin5h6-mA,27541
19
19
  reykit/rtext.py,sha256=M92jCkmak5nELlue7YCFNXS02g_d2Uc1YQSjsdw3KA8,13236
20
20
  reykit/rtime.py,sha256=p6mcGqQZX7XRFOIv4VyOI7K8XWADoltXPT26b2ha2wY,17775
21
21
  reykit/rwrap.py,sha256=noJ_tNqAH95ZgXcFtyiLzKr4MCLkGXFPZvREM-4J068,15074
22
22
  reykit/rzip.py,sha256=kPSjz1hCgPFqmINn3qw_8yVCb6wAPbSq4-VIcan98z8,3442
23
23
  reykit/rdll/__init__.py,sha256=DUYGZzREGzhis36rKYGzI5JYCZJlUoKb80mkoXFfsV4,694
24
24
  reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
25
- reykit-1.1.102.dist-info/METADATA,sha256=ZrIzzpTfR-CUdYPWAjGNcMBIV63dLyTYnpgIavy4aRk,1861
26
- reykit-1.1.102.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.102.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.102.dist-info/RECORD,,
25
+ reykit-1.1.103.dist-info/METADATA,sha256=uHCLJBa65DCI0QuEIRTTzPVgpLf5v_WhFX-AFQ6kl-s,1861
26
+ reykit-1.1.103.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ reykit-1.1.103.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
+ reykit-1.1.103.dist-info/RECORD,,