reykit 1.1.107__py3-none-any.whl → 1.1.108__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 +26 -7
- {reykit-1.1.107.dist-info → reykit-1.1.108.dist-info}/METADATA +1 -1
- {reykit-1.1.107.dist-info → reykit-1.1.108.dist-info}/RECORD +5 -5
- {reykit-1.1.107.dist-info → reykit-1.1.108.dist-info}/WHEEL +0 -0
- {reykit-1.1.107.dist-info → reykit-1.1.108.dist-info}/licenses/LICENSE +0 -0
reykit/rbase.py
CHANGED
@@ -153,36 +153,55 @@ class ConfigMeta(StaticMeta):
|
|
153
153
|
|
154
154
|
def __getitem__(cls, name: str) -> Any:
|
155
155
|
"""
|
156
|
-
Get
|
156
|
+
Get config value.
|
157
157
|
|
158
158
|
Parameters
|
159
159
|
----------
|
160
|
-
name :
|
160
|
+
name : Config name.
|
161
161
|
|
162
162
|
Returns
|
163
163
|
-------
|
164
|
-
|
164
|
+
Config value.
|
165
165
|
"""
|
166
166
|
|
167
167
|
# Get.
|
168
|
-
|
168
|
+
value = getattr(cls, name)
|
169
169
|
|
170
|
-
return
|
170
|
+
return value
|
171
171
|
|
172
172
|
|
173
173
|
def __setitem__(cls, name: str, value: Any) -> None:
|
174
174
|
"""
|
175
|
-
Set
|
175
|
+
Set config value.
|
176
176
|
|
177
177
|
Parameters
|
178
178
|
----------
|
179
|
-
name :
|
179
|
+
name : Config name.
|
180
180
|
"""
|
181
181
|
|
182
182
|
# Set.
|
183
183
|
setattr(cls, name, value)
|
184
184
|
|
185
185
|
|
186
|
+
def __contains__(cls, name: str) -> bool:
|
187
|
+
"""
|
188
|
+
Whether the exist this config value.
|
189
|
+
|
190
|
+
Parameters
|
191
|
+
----------
|
192
|
+
name : Config name.
|
193
|
+
|
194
|
+
Returns
|
195
|
+
-------
|
196
|
+
Result.
|
197
|
+
"""
|
198
|
+
|
199
|
+
# Judge.
|
200
|
+
result = hasattr(cls, name)
|
201
|
+
|
202
|
+
return result
|
203
|
+
|
204
|
+
|
186
205
|
type NullType = Type['Null']
|
187
206
|
|
188
207
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
reykit/__init__.py,sha256=5oKzVHvTmotJB08LhrMFQO3tFVFy7JuqXMn9PqnJEH8,779
|
2
2
|
reykit/rall.py,sha256=-gxGRcEcK7zTcA66DgGLw46QuDsJcdda6NQA_Xuyq8w,619
|
3
|
-
reykit/rbase.py,sha256=
|
3
|
+
reykit/rbase.py,sha256=pmfsU5GyAUQkMxsk2-g8Zf-dELb4ixAO4uG5DWzKrQE,22596
|
4
4
|
reykit/rdata.py,sha256=j3BBeWKMIwowjC-W_5wkJxIWvVlZsqt1mYMKuQbaPG0,11323
|
5
5
|
reykit/remail.py,sha256=DE4sxfJEXNu6MiBJKUsWXqvBrIOJNmnm_1lnGL0tZec,6693
|
6
6
|
reykit/rimage.py,sha256=z-cjI_MgEbUhuKgIbvDS_e2fy2CrnBhr_FS6D8XuAg0,6124
|
@@ -22,7 +22,7 @@ reykit/rwrap.py,sha256=lOKBhSqx8V_PcsdipPP4SaiGXXcpfaEhO_qEGSySEkw,15065
|
|
22
22
|
reykit/rzip.py,sha256=vYw17toqg-DbMjvycluohU9zVX73uYYqQGAp_b21pA8,3433
|
23
23
|
reykit/rdll/__init__.py,sha256=mewj06HHIzzW6oreQAz-6in2zYwNJ4-d1eWWL7CPQgc,685
|
24
24
|
reykit/rdll/rdll_core.py,sha256=zBmOyxD6LkbNIadXmFHLJinj-6UFko8D6w5d7hYA7vU,5077
|
25
|
-
reykit-1.1.
|
26
|
-
reykit-1.1.
|
27
|
-
reykit-1.1.
|
28
|
-
reykit-1.1.
|
25
|
+
reykit-1.1.108.dist-info/METADATA,sha256=-l4-TfoQ-xENjRaQF3fVABA1VOVvPzIVku289w1az7w,1882
|
26
|
+
reykit-1.1.108.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.108.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.108.dist-info/RECORD,,
|
File without changes
|
File without changes
|