scruby 0.17.0__py3-none-any.whl → 0.27.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/__init__.py +17 -9
- scruby/aggregation.py +4 -0
- scruby/db.py +100 -643
- scruby/errors.py +8 -2
- scruby/mixins/__init__.py +25 -0
- scruby/mixins/collection.py +50 -0
- scruby/mixins/count.py +62 -0
- scruby/mixins/custom_task.py +75 -0
- scruby/mixins/delete.py +96 -0
- scruby/mixins/docs.py +168 -0
- scruby/mixins/find.py +149 -0
- scruby/mixins/update.py +99 -0
- scruby/settings.py +44 -0
- {scruby-0.17.0.dist-info → scruby-0.27.2.dist-info}/METADATA +114 -96
- scruby-0.27.2.dist-info/RECORD +18 -0
- {scruby-0.17.0.dist-info → scruby-0.27.2.dist-info}/WHEEL +1 -1
- scruby/constants.py +0 -31
- scruby-0.17.0.dist-info/RECORD +0 -10
- {scruby-0.17.0.dist-info → scruby-0.27.2.dist-info}/licenses/LICENSE +0 -0
scruby/__init__.py
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
#
|
|
2
|
+
# .|'''| '||
|
|
3
|
+
# || ||
|
|
4
|
+
# `|'''|, .|'', '||''| '|| ||` ||''|, '|| ||`
|
|
5
|
+
# . || || || || || || || `|..||
|
|
6
|
+
# |...|' `|..' .||. `|..'|. .||..|' ||
|
|
7
|
+
# , |'
|
|
8
|
+
# ''
|
|
9
|
+
#
|
|
10
|
+
# Copyright (c) 2025 Gennady Kostyunin
|
|
11
|
+
# SPDX-License-Identifier: MIT
|
|
12
|
+
#
|
|
1
13
|
"""Asynchronous library for building and managing a hybrid database, by scheme of key-value.
|
|
2
14
|
|
|
3
15
|
The library uses fractal-tree addressing and
|
|
@@ -16,14 +28,10 @@ requires a large number of processor threads.
|
|
|
16
28
|
|
|
17
29
|
from __future__ import annotations
|
|
18
30
|
|
|
19
|
-
__all__ = (
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
__all__ = (
|
|
32
|
+
"settings",
|
|
33
|
+
"Scruby",
|
|
34
|
+
)
|
|
22
35
|
|
|
36
|
+
from scruby import settings
|
|
23
37
|
from scruby.db import Scruby
|
|
24
|
-
|
|
25
|
-
logging.basicConfig(
|
|
26
|
-
level=logging.INFO,
|
|
27
|
-
datefmt="%Y-%m-%d %H:%M:%S",
|
|
28
|
-
format="[%(asctime)s.%(msecs)03d] %(module)10s:%(lineno)-3d %(levelname)-7s - %(message)s",
|
|
29
|
-
)
|
scruby/aggregation.py
CHANGED