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.
Files changed (65) hide show
  1. {fred_oss-0.17.0/src/main/fred_oss.egg-info → fred_oss-0.18.0}/PKG-INFO +1 -1
  2. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/_keyval.py +7 -3
  3. fred_oss-0.18.0/src/main/fred/version +1 -0
  4. {fred_oss-0.17.0 → fred_oss-0.18.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
  5. fred_oss-0.17.0/src/main/fred/version +0 -1
  6. {fred_oss-0.17.0 → fred_oss-0.18.0}/MANIFEST.in +0 -0
  7. {fred_oss-0.17.0 → fred_oss-0.18.0}/NOTICE.txt +0 -0
  8. {fred_oss-0.17.0 → fred_oss-0.18.0}/README.md +0 -0
  9. {fred_oss-0.17.0 → fred_oss-0.18.0}/requirements.txt +0 -0
  10. {fred_oss-0.17.0 → fred_oss-0.18.0}/setup.cfg +0 -0
  11. {fred_oss-0.17.0 → fred_oss-0.18.0}/setup.py +0 -0
  12. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/__init__.py +0 -0
  13. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/__main__.py +0 -0
  14. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/interface.py +0 -0
  15. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/cli/main.py +0 -0
  16. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/__init__.py +0 -0
  17. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/__init__.py +0 -0
  18. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/_queue.py +0 -0
  19. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/catalog.py +0 -0
  20. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/comp/interface.py +0 -0
  21. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/__init__.py +0 -0
  22. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/_redis.py +0 -0
  23. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/catalog.py +0 -0
  24. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/interface.py +0 -0
  25. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/dao/service/utils.py +0 -0
  26. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
  27. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
  28. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
  29. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
  30. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
  31. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
  32. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
  33. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
  34. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
  35. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
  36. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/integrations/runpod/helper.py +0 -0
  37. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/maturity.py +0 -0
  38. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/settings.py +0 -0
  39. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/__init__.py +0 -0
  40. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/dateops.py +0 -0
  41. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/utils/runtime.py +0 -0
  42. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/version.py +0 -0
  43. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/__init__.py +0 -0
  44. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/interface.py +0 -0
  45. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/__init__.py +0 -0
  46. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/client.py +0 -0
  47. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/handler.py +0 -0
  48. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/info.py +0 -0
  49. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/__init__.py +0 -0
  50. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/_local.py +0 -0
  51. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/catalog.py +0 -0
  52. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/plugins/interface.py +0 -0
  53. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/__init__.py +0 -0
  54. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/cli_ext.py +0 -0
  55. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/__init__.py +0 -0
  56. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/_runner.py +0 -0
  57. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/catalog.py +0 -0
  58. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/routers/interface.py +0 -0
  59. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/rest/server.py +0 -0
  60. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred/worker/runner/utils.py +0 -0
  61. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
  62. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
  63. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
  64. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
  65. {fred_oss-0.17.0 → fred_oss-0.18.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fred-oss
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: FREDOSS
5
5
  Home-page: https://fred.fahera.mx
6
6
  Author: Fahera Research, Education, and Development
@@ -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, key: str, value: str, **kwargs) -> None:
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fred-oss
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: FREDOSS
5
5
  Home-page: https://fred.fahera.mx
6
6
  Author: Fahera Research, Education, and Development
@@ -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