scruby 2.7.2__py3-none-any.whl → 2.7.4__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.
@@ -63,6 +63,9 @@ class CryptModel(BaseModel):
63
63
 
64
64
  Returns:
65
65
  None
66
+
67
+ Raises:
68
+ ValueError: If the password already exists.
66
69
  """
67
70
  assert isinstance(password, (str, SecretStr)), "Valid type: str | SecretStr."
68
71
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scruby
3
- Version: 2.7.2
3
+ Version: 2.7.4
4
4
  Summary: Asynchronous library for building and managing a hybrid database, by scheme of key-value.
5
5
  Project-URL: Bug Tracker, https://github.com/kebasyaty/scruby/issues
6
6
  Project-URL: Changelog, https://github.com/kebasyaty/scruby/blob/v2/CHANGELOG.md
@@ -295,6 +295,7 @@ async def main() -> None:
295
295
  user_details.password_is_valid(test_pass) # True
296
296
 
297
297
  # Update existing password
298
+ new_test_pass = "new_user_pass_123"
298
299
  user_details.update_password(test_pass, new_test_pass)
299
300
 
300
301
  # Update user data in a collection
@@ -17,10 +17,10 @@ scruby/mixins/find.py,sha256=YlK8L5R5qnjooDR_WDkd6ckPgE8dNTTee31S4P8-Wuo,10504
17
17
  scruby/mixins/keys.py,sha256=sd8vcM0YXouVwwgsQwtYFaV3RyAEfygpPf4a77_hN6A,11305
18
18
  scruby/mixins/update.py,sha256=TyxvxB-gNijlfzTmhwrq0ydvu0C3R-RihW5h5tJ96bM,4964
19
19
  scruby/models/__init__.py,sha256=Xqk48ZYWzmrygqoi7R9O8dJdd40ochwTg-vmCDkZUY8,418
20
- scruby/models/crypt_model.py,sha256=6ia-fZzvPh0fxDIkBXp1m3E538xtjeI0OoxaY25tnNE,4564
20
+ scruby/models/crypt_model.py,sha256=WvjUUz_JUdOSCG2PNtfAnfnb3hzuhVZ7dAClpDS1EBg,4637
21
21
  scruby/models/scruby_model.py,sha256=u9uAF1_aBvaooSeKPzQRmVYHPy4XWusLX85xfzc6oVM,608
22
- scruby-2.7.2.dist-info/METADATA,sha256=2thGMIKe3ytqOQgHERbvC5ef74T_0JDozEjpJ8QgX1I,15272
23
- scruby-2.7.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
24
- scruby-2.7.2.dist-info/licenses/GPL-3.0-LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
25
- scruby-2.7.2.dist-info/licenses/MIT-LICENSE,sha256=mS0Wz0yGNB63gEcWEnuIb_lldDYV0sjRaO-o_GL6CWE,1074
26
- scruby-2.7.2.dist-info/RECORD,,
22
+ scruby-2.7.4.dist-info/METADATA,sha256=FXzyFsR_OHPkJLel62p520E0kBxUfg81rYuvH9Qbe3E,15312
23
+ scruby-2.7.4.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
24
+ scruby-2.7.4.dist-info/licenses/GPL-3.0-LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
25
+ scruby-2.7.4.dist-info/licenses/MIT-LICENSE,sha256=mS0Wz0yGNB63gEcWEnuIb_lldDYV0sjRaO-o_GL6CWE,1074
26
+ scruby-2.7.4.dist-info/RECORD,,
File without changes