scruby 2.6.0__py3-none-any.whl → 2.6.2__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.
scruby/db.py CHANGED
@@ -197,9 +197,12 @@ class Scruby(
197
197
  None.
198
198
  """
199
199
  subclasses: list[Any] = ScrubyModel.__subclasses__()
200
+
200
201
  if __debug__:
202
+ # Raise an exception if no models were created
201
203
  if len(subclasses) == 0:
202
204
  raise AssertionError("Create least one model of document for your project.")
205
+ # Raise an exception if the plugin does not match the Scruby version
203
206
  if plugins is not None:
204
207
  for plugin in plugins:
205
208
  if plugin.SCRUBY_VERSION != 2:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scruby
3
- Version: 2.6.0
3
+ Version: 2.6.2
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
@@ -2,7 +2,7 @@ scruby/__init__.py,sha256=mmGcJxMtgcoJ4UD7u_NhiFnbgDCG6Kv13rNeiWkW_LY,1369
2
2
  scruby/aggregation.py,sha256=NBFxQqyRqUG2KIuD9fbl4uzSHJWTaskjiZ1YNBa-Zbo,3575
3
3
  scruby/cache.py,sha256=DRcTdQbh1DhTQDGK5oC_mZrjcQg6g06vJ1e61RfNX94,3864
4
4
  scruby/config.py,sha256=clGj5_CyHEejmQUvtV0fD9PoQoPeYoh0Wge_i2BIMsg,5255
5
- scruby/db.py,sha256=prkls6O14c6G1iyQCo9jMIIpSlpTaeZin8u-_z7mb-U,7675
5
+ scruby/db.py,sha256=N5TzJg77rp7WfJVBC1aIIpc6ybjrYr6-I5XWKcnoWyM,7816
6
6
  scruby/errors.py,sha256=lTWiHzyO5Es9Nkf7quODJjONGn6ifcL95qlpA4epQQM,1386
7
7
  scruby/meta.py,sha256=6HPgqqlKH7Vo6ibyGzxR3DzNcnc_DmjaP5q8s6kl4yA,1230
8
8
  scruby/migration.py,sha256=mmJkqVBd_eoufWD8YsRq09VCZFZzEwfxsU1gtvJnjvU,1730
@@ -17,8 +17,8 @@ scruby/mixins/delete.py,sha256=InKVIud_ZYx9-CchUz_IygQDXMynNi4jQ0HKYeHC_R8,4328
17
17
  scruby/mixins/find.py,sha256=oEZRE6RqIBdwvNr8iSYyod8hI6ibi_egJP0pyXmJiss,9169
18
18
  scruby/mixins/keys.py,sha256=MvBy_8fQGROaQATK2qse2V8wR-xodPQG0KKZ2PK_t9U,10790
19
19
  scruby/mixins/update.py,sha256=TyxvxB-gNijlfzTmhwrq0ydvu0C3R-RihW5h5tJ96bM,4964
20
- scruby-2.6.0.dist-info/METADATA,sha256=RkYk5CVHps3rS-vxZEsHo2RiMTjkr_Y2hxDT-nSqoR4,13317
21
- scruby-2.6.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
22
- scruby-2.6.0.dist-info/licenses/GPL-3.0-LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
23
- scruby-2.6.0.dist-info/licenses/MIT-LICENSE,sha256=mS0Wz0yGNB63gEcWEnuIb_lldDYV0sjRaO-o_GL6CWE,1074
24
- scruby-2.6.0.dist-info/RECORD,,
20
+ scruby-2.6.2.dist-info/METADATA,sha256=wY8DdpOxNi_7cnChSYlg3IFu-IzU6IKp9WtW7aCNyRM,13317
21
+ scruby-2.6.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
22
+ scruby-2.6.2.dist-info/licenses/GPL-3.0-LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
23
+ scruby-2.6.2.dist-info/licenses/MIT-LICENSE,sha256=mS0Wz0yGNB63gEcWEnuIb_lldDYV0sjRaO-o_GL6CWE,1074
24
+ scruby-2.6.2.dist-info/RECORD,,
File without changes