oplnk-python-utils 1.2.6__py3-none-any.whl → 1.5.0__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.
- oplnk_python_utils/__init__.py +14 -13
- oplnk_python_utils/cache/__init__.py +35 -29
- oplnk_python_utils/cache/cache_utils.py +1959 -278
- oplnk_python_utils/core/__init__.py +9 -13
- oplnk_python_utils/core/data.py +82 -58
- oplnk_python_utils/core/parsing.py +402 -193
- oplnk_python_utils/core/serialization.py +74 -32
- oplnk_python_utils/py.typed +0 -0
- oplnk_python_utils/query/__init__.py +12 -4
- oplnk_python_utils/query/adapter.py +72 -0
- oplnk_python_utils/query/compiler.py +813 -0
- oplnk_python_utils/query/constants.py +118 -0
- oplnk_python_utils/query/errors.py +42 -0
- oplnk_python_utils/query/executor.py +238 -0
- oplnk_python_utils/query/query_builder.py +585 -1156
- oplnk_python_utils/query/sql/__init__.py +15 -0
- oplnk_python_utils/query/sql/adapter.py +47 -0
- oplnk_python_utils/query/sql/compiler.py +371 -0
- oplnk_python_utils/query/sql/mapping.py +111 -0
- oplnk_python_utils/query/support.py +200 -0
- oplnk_python_utils-1.5.0.dist-info/METADATA +1039 -0
- oplnk_python_utils-1.5.0.dist-info/RECORD +25 -0
- {oplnk_python_utils-1.2.6.dist-info → oplnk_python_utils-1.5.0.dist-info}/WHEEL +1 -1
- {oplnk_python_utils-1.2.6.dist-info → oplnk_python_utils-1.5.0.dist-info}/licenses/LICENSE +21 -21
- oplnk_python_utils/reports/__init__.py +0 -3
- oplnk_python_utils-1.2.6.dist-info/METADATA +0 -806
- oplnk_python_utils-1.2.6.dist-info/RECORD +0 -15
- {oplnk_python_utils-1.2.6.dist-info → oplnk_python_utils-1.5.0.dist-info}/top_level.txt +0 -0
oplnk_python_utils/__init__.py
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
"""
|
|
2
|
-
OpenLink Python Utils - Reusable utilities for caching, data manipulation, parsing, and MongoDB query building
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
# Import modules only - no function re-exports
|
|
6
|
-
from . import core
|
|
7
|
-
from . import cache
|
|
8
|
-
from . import query
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"""
|
|
2
|
+
OpenLink Python Utils - Reusable utilities for caching, data manipulation, parsing, and MongoDB query building
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# Import modules only - no function re-exports
|
|
6
|
+
from . import core
|
|
7
|
+
from . import cache
|
|
8
|
+
from . import query
|
|
9
|
+
|
|
10
|
+
# The only place the version is set: pyproject.toml reads it for the package metadata
|
|
11
|
+
__version__ = "1.5.0"
|
|
12
|
+
__author__ = "OpenLink SpA"
|
|
13
|
+
|
|
14
|
+
__all__ = ["core", "cache", "query", "__version__"]
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Cache utilities module - Reusable caching functionality
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from .cache_utils import (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
1
|
+
"""
|
|
2
|
+
Cache utilities module - Reusable caching functionality
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .cache_utils import (
|
|
6
|
+
aget_or_set_cache,
|
|
7
|
+
ainvalidate_cache_keys,
|
|
8
|
+
ainvalidate_tag,
|
|
9
|
+
generate_cache_id,
|
|
10
|
+
get_or_set_cache,
|
|
11
|
+
invalidate_cache_keys,
|
|
12
|
+
build_cache_key,
|
|
13
|
+
cache_response,
|
|
14
|
+
invalidate_tag,
|
|
15
|
+
cache_factory,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# Re-export core utilities for convenience in this domain
|
|
19
|
+
from ..core.data import normalize
|
|
20
|
+
from ..core.serialization import datetime_serializer
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"aget_or_set_cache",
|
|
24
|
+
"ainvalidate_cache_keys",
|
|
25
|
+
"ainvalidate_tag",
|
|
26
|
+
"generate_cache_id",
|
|
27
|
+
"datetime_serializer",
|
|
28
|
+
"get_or_set_cache",
|
|
29
|
+
"invalidate_cache_keys",
|
|
30
|
+
"normalize",
|
|
31
|
+
"build_cache_key",
|
|
32
|
+
"cache_response",
|
|
33
|
+
"invalidate_tag",
|
|
34
|
+
"cache_factory",
|
|
35
|
+
]
|