scruby 2.2.2__py3-none-any.whl → 2.2.3__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/cache.py +8 -5
- {scruby-2.2.2.dist-info → scruby-2.2.3.dist-info}/METADATA +1 -1
- {scruby-2.2.2.dist-info → scruby-2.2.3.dist-info}/RECORD +6 -6
- {scruby-2.2.2.dist-info → scruby-2.2.3.dist-info}/WHEEL +0 -0
- {scruby-2.2.2.dist-info → scruby-2.2.3.dist-info}/licenses/GPL-3.0-LICENSE +0 -0
- {scruby-2.2.2.dist-info → scruby-2.2.3.dist-info}/licenses/MIT-LICENSE +0 -0
scruby/cache.py
CHANGED
|
@@ -38,8 +38,6 @@ class DocCache:
|
|
|
38
38
|
cls.cache[collection_name] = {
|
|
39
39
|
key: {key: {key: {} for key in hexdigits} for key in hexdigits} for key in hexdigits
|
|
40
40
|
}
|
|
41
|
-
case 0:
|
|
42
|
-
pass
|
|
43
41
|
case _ as unreachable:
|
|
44
42
|
assert_never(Never(unreachable)) # pyrefly: ignore[not-callable]
|
|
45
43
|
|
|
@@ -58,9 +56,16 @@ class DocCache:
|
|
|
58
56
|
if not db_root.exists():
|
|
59
57
|
return
|
|
60
58
|
|
|
59
|
+
# Get a list of created directories for collections
|
|
60
|
+
db_directory = Path(db_root)
|
|
61
|
+
all_entries = Path.iterdir(db_directory)
|
|
62
|
+
directory_names: list[str] = [entry.name for entry in all_entries if entry.name != ".env.meta"]
|
|
63
|
+
|
|
61
64
|
for subclass in subclasses:
|
|
62
65
|
collection_name = subclass.__name__
|
|
63
|
-
|
|
66
|
+
|
|
67
|
+
if collection_name in directory_names:
|
|
68
|
+
cls.create_structure(collection_name)
|
|
64
69
|
|
|
65
70
|
for branch_number in branch_numbers:
|
|
66
71
|
branch_number_as_hash: str = f"{branch_number:08x}"[HASH_REDUCE_LEFT:]
|
|
@@ -90,7 +95,5 @@ class DocCache:
|
|
|
90
95
|
cls.cache[collection_name][branch_number_as_hash[0]][branch_number_as_hash[1]][
|
|
91
96
|
branch_number_as_hash[2]
|
|
92
97
|
][key] = doc
|
|
93
|
-
case 0:
|
|
94
|
-
pass
|
|
95
98
|
case _ as unreachable:
|
|
96
99
|
assert_never(Never(unreachable)) # pyrefly: ignore[not-callable]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scruby
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
scruby/__init__.py,sha256=DEtbZThadMKpKcGGjWyAFGu4IADg9ZYTb8WjfO_3Dqg,1300
|
|
2
2
|
scruby/aggregation.py,sha256=NBFxQqyRqUG2KIuD9fbl4uzSHJWTaskjiZ1YNBa-Zbo,3575
|
|
3
|
-
scruby/cache.py,sha256=
|
|
3
|
+
scruby/cache.py,sha256=krqvIhtbvhCFDjqOg1eg2uZFa4eGDRYI9ELTe6eJbpc,3961
|
|
4
4
|
scruby/config.py,sha256=INAFqNAeF8BifIywjElC97rawfTLuqpRfieUdAO7A6k,5122
|
|
5
5
|
scruby/db.py,sha256=OtAwHtXoHaF_obqMwxn157EtVppO0tO6Dx2lWGFBEiA,9999
|
|
6
6
|
scruby/errors.py,sha256=lTWiHzyO5Es9Nkf7quODJjONGn6ifcL95qlpA4epQQM,1386
|
|
@@ -14,8 +14,8 @@ scruby/mixins/delete.py,sha256=InKVIud_ZYx9-CchUz_IygQDXMynNi4jQ0HKYeHC_R8,4328
|
|
|
14
14
|
scruby/mixins/find.py,sha256=oEZRE6RqIBdwvNr8iSYyod8hI6ibi_egJP0pyXmJiss,9169
|
|
15
15
|
scruby/mixins/keys.py,sha256=MvBy_8fQGROaQATK2qse2V8wR-xodPQG0KKZ2PK_t9U,10790
|
|
16
16
|
scruby/mixins/update.py,sha256=TyxvxB-gNijlfzTmhwrq0ydvu0C3R-RihW5h5tJ96bM,4964
|
|
17
|
-
scruby-2.2.
|
|
18
|
-
scruby-2.2.
|
|
19
|
-
scruby-2.2.
|
|
20
|
-
scruby-2.2.
|
|
21
|
-
scruby-2.2.
|
|
17
|
+
scruby-2.2.3.dist-info/METADATA,sha256=5HaLAyfWIbGGgRBZv79_f4Q0TKTe_RsIY_2uAswYEn8,13447
|
|
18
|
+
scruby-2.2.3.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
19
|
+
scruby-2.2.3.dist-info/licenses/GPL-3.0-LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
20
|
+
scruby-2.2.3.dist-info/licenses/MIT-LICENSE,sha256=mS0Wz0yGNB63gEcWEnuIb_lldDYV0sjRaO-o_GL6CWE,1074
|
|
21
|
+
scruby-2.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|