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 CHANGED
@@ -153,36 +153,55 @@ class ConfigMeta(StaticMeta):
153
153
 
154
154
  def __getitem__(cls, name: str) -> Any:
155
155
  """
156
- Get item.
156
+ Get config value.
157
157
 
158
158
  Parameters
159
159
  ----------
160
- name : Item name.
160
+ name : Config name.
161
161
 
162
162
  Returns
163
163
  -------
164
- Item value.
164
+ Config value.
165
165
  """
166
166
 
167
167
  # Get.
168
- item = getattr(cls, name)
168
+ value = getattr(cls, name)
169
169
 
170
- return item
170
+ return value
171
171
 
172
172
 
173
173
  def __setitem__(cls, name: str, value: Any) -> None:
174
174
  """
175
- Set item.
175
+ Set config value.
176
176
 
177
177
  Parameters
178
178
  ----------
179
- name : Item 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
  Metadata-Version: 2.4
2
2
  Name: reykit
3
- Version: 1.1.107
3
+ Version: 1.1.108
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=5oKzVHvTmotJB08LhrMFQO3tFVFy7JuqXMn9PqnJEH8,779
2
2
  reykit/rall.py,sha256=-gxGRcEcK7zTcA66DgGLw46QuDsJcdda6NQA_Xuyq8w,619
3
- reykit/rbase.py,sha256=HceNnyn_pDikZxd5jdWM9AP8Z2y6zYFhZ3pVG9rRoUo,22243
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.107.dist-info/METADATA,sha256=3aiGxp4u63VpBj6V6ebkZANs-XSdz8TA3Xo2GDFesok,1882
26
- reykit-1.1.107.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- reykit-1.1.107.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
28
- reykit-1.1.107.dist-info/RECORD,,
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,,