fred-oss 0.17.0__tar.gz → 0.18.0__tar.gz
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.
- {fred_oss-0.17.0/src/main/fred_oss.egg-info → fred_oss-0.18.0}/PKG-INFO +1 -1
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/_keyval.py +7 -3
- fred_oss-0.18.0/src/main/fred/version +1 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
- fred_oss-0.17.0/src/main/fred/version +0 -1
- {fred_oss-0.17.0 → fred_oss-0.18.0}/MANIFEST.in +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/NOTICE.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/README.md +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/requirements.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/setup.cfg +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/setup.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/__main__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/main.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/_queue.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/catalog.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/_redis.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/catalog.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/utils.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/helper.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/maturity.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/settings.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/dateops.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/runtime.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/version.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/client.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/handler.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/info.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/_local.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/catalog.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/cli_ext.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/__init__.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/_runner.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/catalog.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/interface.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/server.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/utils.py +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
- {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
|
@@ -12,8 +12,9 @@ class FredKeyVal(ComponentInterface):
|
|
|
12
12
|
getting, and deleting key-value pairs. The actual implementation of these methods
|
|
13
13
|
depends on the underlying service being used (e.g., Redis).
|
|
14
14
|
"""
|
|
15
|
+
key: str
|
|
15
16
|
|
|
16
|
-
def set(self,
|
|
17
|
+
def set(self, value: str, key: Optional[str] = None, **kwargs) -> None:
|
|
17
18
|
"""Sets a key-value pair in the store.
|
|
18
19
|
The implementation of this method depends on the underlying service.
|
|
19
20
|
For example, if the service is Redis, it uses the SET command to store the
|
|
@@ -26,6 +27,7 @@ class FredKeyVal(ComponentInterface):
|
|
|
26
27
|
Raises:
|
|
27
28
|
NotImplementedError: If the method is not implemented for the current service.
|
|
28
29
|
"""
|
|
30
|
+
key = key or self.key
|
|
29
31
|
match self._cat:
|
|
30
32
|
case ServiceCatalog.REDIS:
|
|
31
33
|
self._srv.client.set(key, value)
|
|
@@ -35,7 +37,7 @@ class FredKeyVal(ComponentInterface):
|
|
|
35
37
|
case _:
|
|
36
38
|
raise NotImplementedError(f"Set method not implemented for service {self._nme}")
|
|
37
39
|
|
|
38
|
-
def get(self, key: str, fail: bool = False) -> Optional[str]:
|
|
40
|
+
def get(self, key: Optional[str] = None, fail: bool = False) -> Optional[str]:
|
|
39
41
|
"""Gets the value associated with a key from the store.
|
|
40
42
|
The implementation of this method depends on the underlying service.
|
|
41
43
|
For example, if the service is Redis, it uses the GET command to retrieve the
|
|
@@ -50,6 +52,7 @@ class FredKeyVal(ComponentInterface):
|
|
|
50
52
|
KeyError: If the key is not found and fail is True.
|
|
51
53
|
NotImplementedError: If the method is not implemented for the current service.
|
|
52
54
|
"""
|
|
55
|
+
key = key or self.key
|
|
53
56
|
match self._cat:
|
|
54
57
|
case ServiceCatalog.REDIS:
|
|
55
58
|
result = self._srv.client.get(key)
|
|
@@ -59,7 +62,7 @@ class FredKeyVal(ComponentInterface):
|
|
|
59
62
|
case _:
|
|
60
63
|
raise NotImplementedError(f"Get method not implemented for service {self._nme}")
|
|
61
64
|
|
|
62
|
-
def delete(self, key: str) -> None:
|
|
65
|
+
def delete(self, key: Optional[str] = None) -> None:
|
|
63
66
|
"""Deletes a key-value pair from the store.
|
|
64
67
|
The implementation of this method depends on the underlying service.
|
|
65
68
|
For example, if the service is Redis, it uses the DEL command to remove the
|
|
@@ -69,6 +72,7 @@ class FredKeyVal(ComponentInterface):
|
|
|
69
72
|
Raises:
|
|
70
73
|
NotImplementedError: If the method is not implemented for the current service.
|
|
71
74
|
"""
|
|
75
|
+
key = key or self.key
|
|
72
76
|
match self._cat:
|
|
73
77
|
case ServiceCatalog.REDIS:
|
|
74
78
|
self._srv.client.delete(key)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.18.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.17.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
{fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|