scruby 0.6.2__py3-none-any.whl → 0.6.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.
Potentially problematic release.
This version of scruby might be problematic. Click here for more details.
scruby/constants.py
CHANGED
|
@@ -2,12 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
The module contains the following variables:
|
|
4
4
|
|
|
5
|
-
- `DB_ROOT` - Path to root directory of database. By default = "ScrubyDB" (in root of project).
|
|
5
|
+
- `DB_ROOT` - Path to root directory of database. `By default = "ScrubyDB"` (*in root of project*).
|
|
6
6
|
- `LENGTH_SEPARATED_HASH` - Length of separated hash for create path inside collection.
|
|
7
|
+
- `2` - 256 branches (main purpose is tests).
|
|
8
|
+
- `4` - 65536 branches.
|
|
9
|
+
- `6` - 16777216 branches.
|
|
10
|
+
- `8` - 4294967296 branches (by default).
|
|
7
11
|
"""
|
|
8
12
|
|
|
9
13
|
from __future__ import annotations
|
|
10
14
|
|
|
15
|
+
__all__ = (
|
|
16
|
+
"DB_ROOT",
|
|
17
|
+
"LENGTH_SEPARATED_HASH",
|
|
18
|
+
)
|
|
19
|
+
|
|
11
20
|
from typing import Literal
|
|
12
21
|
|
|
13
22
|
# Path to root directory of database
|
|
@@ -16,8 +25,8 @@ DB_ROOT: str = "ScrubyDB"
|
|
|
16
25
|
|
|
17
26
|
# Length of separated hash for create path inside collection.
|
|
18
27
|
# By default = 8
|
|
19
|
-
# 2 = 256
|
|
20
|
-
# 4 = 65536
|
|
21
|
-
# 6 = 16777216
|
|
22
|
-
# 8 = 4294967296
|
|
28
|
+
# 2 = 256 branches (main purpose is tests).
|
|
29
|
+
# 4 = 65536 branches.
|
|
30
|
+
# 6 = 16777216 branches.
|
|
31
|
+
# 8 = 4294967296 branches (by default).
|
|
23
32
|
LENGTH_SEPARATED_HASH: Literal[2, 4, 6, 8] = 8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scruby
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.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
|
|
@@ -36,7 +36,7 @@ Description-Content-Type: text/markdown
|
|
|
36
36
|
<p align="center">
|
|
37
37
|
<a href="https://github.com/kebasyaty/scruby">
|
|
38
38
|
<img
|
|
39
|
-
height="
|
|
39
|
+
height="80"
|
|
40
40
|
alt="Logo"
|
|
41
41
|
src="https://raw.githubusercontent.com/kebasyaty/scruby/main/assets/logo.svg">
|
|
42
42
|
</a>
|
|
@@ -83,6 +83,10 @@ Description-Content-Type: text/markdown
|
|
|
83
83
|
</p>
|
|
84
84
|
</div>
|
|
85
85
|
|
|
86
|
+
##
|
|
87
|
+
|
|
88
|
+
<br>
|
|
89
|
+
|
|
86
90
|
## Documentation
|
|
87
91
|
|
|
88
92
|
Online browsable documentation is available at [https://kebasyaty.github.io/scruby/](https://kebasyaty.github.io/scruby/ "Documentation").
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
scruby/__init__.py,sha256=myX7sG-7oAQZGdgfZtTGXYCCraTeuwi7SjBoltftpnM,648
|
|
2
|
+
scruby/constants.py,sha256=7Px7BDQozlvfSKSAN4Rme4uJHLY_OsT3H0Wq6A_810k,942
|
|
3
|
+
scruby/db.py,sha256=Rt9YDe0lSJwtREHFiqdQ6CQ664FL6YRyczbgKFhpsa4,4871
|
|
4
|
+
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
scruby-0.6.3.dist-info/METADATA,sha256=8TTKyS4FsDr9PEvL7U5DKtAuRSxUR-s_cMiJ9F7Wwzw,6813
|
|
6
|
+
scruby-0.6.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
scruby-0.6.3.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
+
scruby-0.6.3.dist-info/RECORD,,
|
scruby-0.6.2.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
scruby/__init__.py,sha256=myX7sG-7oAQZGdgfZtTGXYCCraTeuwi7SjBoltftpnM,648
|
|
2
|
-
scruby/constants.py,sha256=fQ9fHGkx1GwYWOdTCdwopYIVtwYWDi8evLOJtQcTtWg,711
|
|
3
|
-
scruby/db.py,sha256=Rt9YDe0lSJwtREHFiqdQ6CQ664FL6YRyczbgKFhpsa4,4871
|
|
4
|
-
scruby/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
scruby-0.6.2.dist-info/METADATA,sha256=Xql1qXX22lzjh67vvN63EoTOxdaUzn4sz99lTGalSy0,6803
|
|
6
|
-
scruby-0.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
scruby-0.6.2.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
|
|
8
|
-
scruby-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|