scruby 0.7.1__py3-none-any.whl → 0.7.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.
Potentially problematic release.
This version of scruby might be problematic. Click here for more details.
- scruby/constants.py +8 -8
- scruby/db.py +1 -1
- {scruby-0.7.1.dist-info → scruby-0.7.2.dist-info}/METADATA +4 -3
- scruby-0.7.2.dist-info/RECORD +8 -0
- scruby-0.7.1.dist-info/RECORD +0 -8
- {scruby-0.7.1.dist-info → scruby-0.7.2.dist-info}/WHEEL +0 -0
- {scruby-0.7.1.dist-info → scruby-0.7.2.dist-info}/licenses/LICENSE +0 -0
scruby/constants.py
CHANGED
|
@@ -4,10 +4,10 @@ The module contains the following variables:
|
|
|
4
4
|
|
|
5
5
|
- `DB_ROOT` - Path to root directory of database. `By default = "ScrubyDB"` (*in root of project*).
|
|
6
6
|
- `LENGTH_REDUCTION_HASH` - The length of the hash reduction on the left side.
|
|
7
|
-
- `0` - 4294967296
|
|
8
|
-
- `2` - 16777216
|
|
9
|
-
- `4` - 65536
|
|
10
|
-
- `6` - 256
|
|
7
|
+
- `0` - 4294967296 branches in collection (by default).
|
|
8
|
+
- `2` - 16777216 branches in collectionю
|
|
9
|
+
- `4` - 65536 branches in collectionю
|
|
10
|
+
- `6` - 256 branches in collection (main purpose is tests).
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
from __future__ import annotations
|
|
@@ -24,8 +24,8 @@ from typing import Literal
|
|
|
24
24
|
DB_ROOT: str = "ScrubyDB"
|
|
25
25
|
|
|
26
26
|
# The length of the hash reduction on the left side.
|
|
27
|
-
# 0 = 4294967296
|
|
28
|
-
# 2 = 16777216
|
|
29
|
-
# 4 = 65536
|
|
30
|
-
# 6 = 256
|
|
27
|
+
# 0 = 4294967296 branches in collection (by default).
|
|
28
|
+
# 2 = 16777216 branches in collectionю
|
|
29
|
+
# 4 = 65536 branches in collectionю
|
|
30
|
+
# 6 = 256 branches in collection (main purpose is tests).
|
|
31
31
|
LENGTH_REDUCTION_HASH: Literal[0, 2, 4, 6] = 0
|
scruby/db.py
CHANGED
|
@@ -204,7 +204,7 @@ class Scruby[T]:
|
|
|
204
204
|
|
|
205
205
|
The search is based on the effect of a quantum loop.
|
|
206
206
|
The search effectiveness depends on the number of processor threads.
|
|
207
|
-
Ideally, hundreds and even thousands of
|
|
207
|
+
Ideally, hundreds and even thousands of threads are required.
|
|
208
208
|
|
|
209
209
|
Args:
|
|
210
210
|
filter_fn: A function that execute the conditions of filtering.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scruby
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
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
|
|
@@ -160,7 +160,7 @@ if __name__ == "__main__":
|
|
|
160
160
|
|
|
161
161
|
The search is based on the effect of a quantum loop.
|
|
162
162
|
The search effectiveness depends on the number of processor threads.
|
|
163
|
-
Ideally, hundreds and even thousands of
|
|
163
|
+
Ideally, hundreds and even thousands of threads are required.
|
|
164
164
|
"""
|
|
165
165
|
|
|
166
166
|
import anyio
|
|
@@ -171,7 +171,8 @@ from scruby import Scruby, constants
|
|
|
171
171
|
from pprint import pprint as pp
|
|
172
172
|
|
|
173
173
|
constants.DB_ROOT = "ScrubyDB" # By default = "ScrubyDB"
|
|
174
|
-
constants.LENGTH_REDUCTION_HASH = 6 # 256
|
|
174
|
+
constants.LENGTH_REDUCTION_HASH = 6 # 256 branches in collection
|
|
175
|
+
# (main purpose is tests).
|
|
175
176
|
|
|
176
177
|
class User(BaseModel):
|
|
177
178
|
"""Model of User."""
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
scruby/__init__.py,sha256=myX7sG-7oAQZGdgfZtTGXYCCraTeuwi7SjBoltftpnM,648
|
|
2
|
+
scruby/constants.py,sha256=GbB-O0qaVdi5EHUp-zRAppFXLR-oHxpXUFVAOCpS0C8,1022
|
|
3
|
+
scruby/db.py,sha256=84DRrw21jiAmEsxjOOJnAfFvfE8hNdaJ-TB9BQtM0CQ,8114
|
|
4
|
+
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
scruby-0.7.2.dist-info/METADATA,sha256=b_02kOWP7dScGNwKtvVwQrv7CPiIHHIJ33OxMMz5Ink,8673
|
|
6
|
+
scruby-0.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
scruby-0.7.2.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
+
scruby-0.7.2.dist-info/RECORD,,
|
scruby-0.7.1.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
scruby/__init__.py,sha256=myX7sG-7oAQZGdgfZtTGXYCCraTeuwi7SjBoltftpnM,648
|
|
2
|
-
scruby/constants.py,sha256=XcBbK_gkDC0makWE34M8gUotwj3smi2sWY4mMnfzUt4,874
|
|
3
|
-
scruby/db.py,sha256=FkYBsVYERtauTlWjl8b8cDTTIaH1w7lOzAneWUtNLDE,8114
|
|
4
|
-
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
scruby-0.7.1.dist-info/METADATA,sha256=qkiNaSRnF2pnWMImFLsAz16MMRD_amaDImy9DbFwNoM,8616
|
|
6
|
-
scruby-0.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
scruby-0.7.1.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
-
scruby-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|