fred-oss 0.22.0__tar.gz → 0.23.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.22.0/src/main/fred_oss.egg-info → fred_oss-0.23.0}/PKG-INFO +1 -1
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/future/impl.py +11 -2
- fred_oss-0.23.0/src/main/fred/version +1 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0/src/main/fred_oss.egg-info}/PKG-INFO +1 -1
- fred_oss-0.22.0/src/main/fred/version +0 -1
- {fred_oss-0.22.0 → fred_oss-0.23.0}/MANIFEST.in +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/NOTICE.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/README.md +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/requirements.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/setup.cfg +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/setup.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/cli/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/cli/__main__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/cli/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/cli/main.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/comp/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/comp/_keyval.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/comp/_queue.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/comp/catalog.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/comp/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/_redis.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/_stdlib.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/catalog.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/dao/service/utils.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/future/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/future/result.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/future/settings.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/cli_ext.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtime.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtimes/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtimes/scanner.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtimes/sync.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/wrappers/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/wrappers/dbutils.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/runpod/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/runpod/cli_ext.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/runpod/helper.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/maturity.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/monad/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/monad/_either.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/monad/catalog.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/monad/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/settings.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/utils/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/utils/dateops.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/utils/runtime.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/version.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/client.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/handler.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/info.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/plugins/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/plugins/_local.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/plugins/catalog.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/plugins/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/cli_ext.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/routers/__init__.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/routers/_runner.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/routers/catalog.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/routers/interface.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/rest/server.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/worker/runner/utils.py +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred_oss.egg-info/SOURCES.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred_oss.egg-info/dependency_links.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred_oss.egg-info/entry_points.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred_oss.egg-info/requires.txt +0 -0
- {fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred_oss.egg-info/top_level.txt +0 -0
|
@@ -55,15 +55,24 @@ class Future(MonadInterface[A]):
|
|
|
55
55
|
TODO: Consider using more advanced concurrency primitives for better control and efficiency.
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
|
-
def __init__(
|
|
58
|
+
def __init__(
|
|
59
|
+
self,
|
|
60
|
+
function: Callable[..., A],
|
|
61
|
+
**kwargs
|
|
62
|
+
):
|
|
59
63
|
"""Initializes a Future with the provided function to be executed asynchronously.
|
|
60
64
|
The function is executed in a separate thread, allowing for non-blocking operations.
|
|
65
|
+
|
|
61
66
|
Args:
|
|
62
67
|
function (Callable[..., A]): The function to be executed asynchronously.
|
|
68
|
+
future_id (Optional[str], keyword-only): A reserved keyword-only parameter used to
|
|
69
|
+
uniquely identify this Future instance. This value is consumed by the Future
|
|
70
|
+
infrastructure and is not passed to the target function.
|
|
63
71
|
**kwargs: Additional keyword arguments to be passed to the function when executed.
|
|
72
|
+
All keyword arguments except 'future_id' are forwarded to the target function.
|
|
64
73
|
"""
|
|
65
74
|
# Create a new available future
|
|
66
|
-
future = FutureUndefinedPending.auto()
|
|
75
|
+
future = FutureUndefinedPending.auto(future_id=kwargs.pop("future_id", None))
|
|
67
76
|
# Register the Future-ID and define the available future via the provided function.
|
|
68
77
|
# Note: The 'apply' method is blocking by itself; thus, we run it in a separate thread.
|
|
69
78
|
# Note: The thread is a daemon to ensure it does not block program exit.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.23.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.22.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtimes/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/runtimes/scanner.py
RENAMED
|
File without changes
|
|
File without changes
|
{fred_oss-0.22.0 → fred_oss-0.23.0}/src/main/fred/integrations/databricks/wrappers/__init__.py
RENAMED
|
File without changes
|
{fred_oss-0.22.0 → fred_oss-0.23.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|