scruby 0.9.1__py3-none-any.whl → 0.9.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/db.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scruby
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: A fast key-value storage library.
|
|
5
5
|
Project-URL: Homepage, https://github.com/kebasyaty/scruby
|
|
6
6
|
Project-URL: Repository, https://github.com/kebasyaty/scruby
|
|
@@ -159,7 +159,7 @@ if __name__ == "__main__":
|
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
```python
|
|
162
|
-
"""Find a single document.
|
|
162
|
+
"""Find a single document matching the filter.
|
|
163
163
|
|
|
164
164
|
The search is based on the effect of a quantum loop.
|
|
165
165
|
The search effectiveness depends on the number of processor threads.
|
|
@@ -230,7 +230,7 @@ if __name__ == "__main__":
|
|
|
230
230
|
```
|
|
231
231
|
|
|
232
232
|
```python
|
|
233
|
-
"""Find documents.
|
|
233
|
+
"""Find one or more documents matching the filter.
|
|
234
234
|
|
|
235
235
|
The search is based on the effect of a quantum loop.
|
|
236
236
|
The search effectiveness depends on the number of processor threads.
|
|
@@ -274,7 +274,7 @@ async def main() -> None:
|
|
|
274
274
|
await db.set_key(f"+44798612345{num}", user)
|
|
275
275
|
|
|
276
276
|
# Find users by email.
|
|
277
|
-
users: list[User] | None = user_coll.
|
|
277
|
+
users: list[User] | None = user_coll.find(
|
|
278
278
|
filter_fn=lambda doc: doc.email == "John_Smith_5@gmail.com" or doc.email == "John_Smith_8@gmail.com",
|
|
279
279
|
)
|
|
280
280
|
if users is not None:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
scruby/__init__.py,sha256=wFwUS1KcLxfIopXOVS8gPue9fNzIIU2cVj_RgK5drz4,849
|
|
2
|
+
scruby/constants.py,sha256=GbB-O0qaVdi5EHUp-zRAppFXLR-oHxpXUFVAOCpS0C8,1022
|
|
3
|
+
scruby/db.py,sha256=reYCZduh4GAycS17oPw8BWoFd-M9A8N7BW_uPFwUd_w,10941
|
|
4
|
+
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
scruby-0.9.3.dist-info/METADATA,sha256=YBlk8IR3bDVRV-XKLKEHkpd3Bir97OF0wyOe0jFDpR0,10828
|
|
6
|
+
scruby-0.9.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
scruby-0.9.3.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
+
scruby-0.9.3.dist-info/RECORD,,
|
scruby-0.9.1.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
scruby/__init__.py,sha256=wFwUS1KcLxfIopXOVS8gPue9fNzIIU2cVj_RgK5drz4,849
|
|
2
|
-
scruby/constants.py,sha256=GbB-O0qaVdi5EHUp-zRAppFXLR-oHxpXUFVAOCpS0C8,1022
|
|
3
|
-
scruby/db.py,sha256=W3VvC3ss1NXonQnFI6Yw2MobBARMgus5Acw-k5uL3TE,10946
|
|
4
|
-
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
scruby-0.9.1.dist-info/METADATA,sha256=jBb7hXf3Ho3y0MGtsTc-3d4ip7xEse9I27XjPspFnbg,10781
|
|
6
|
-
scruby-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
scruby-0.9.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
-
scruby-0.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|