mloda-enterprise 0.2.4__py3-none-any.whl → 0.2.6__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.
- mloda/enterprise/compute_frameworks/example/__init__.py +7 -0
- mloda/enterprise/compute_frameworks/example/enterprise_example_compute_framework.py +22 -0
- mloda/enterprise/extenders/example/__init__.py +5 -0
- mloda/enterprise/extenders/example/enterprise_example_extender.py +17 -0
- mloda/enterprise/feature_groups/example/__init__.py +5 -0
- mloda/enterprise/feature_groups/example/enterprise_example_feature_group.py +14 -0
- {mloda_enterprise-0.2.4.dist-info → mloda_enterprise-0.2.6.dist-info}/METADATA +3 -5
- mloda_enterprise-0.2.6.dist-info/RECORD +10 -0
- {mloda_enterprise-0.2.4.dist-info → mloda_enterprise-0.2.6.dist-info}/WHEEL +1 -1
- mloda_enterprise-0.2.6.dist-info/top_level.txt +1 -0
- mloda_enterprise-0.2.4.dist-info/RECORD +0 -4
- mloda_enterprise-0.2.4.dist-info/top_level.txt +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"""mloda-enterprise-compute-frameworks-example: Example enterprise compute framework plugin."""
|
|
2
|
+
|
|
3
|
+
from mloda.enterprise.compute_frameworks.example.enterprise_example_compute_framework import (
|
|
4
|
+
EnterpriseExampleComputeFramework,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
__all__ = ["EnterpriseExampleComputeFramework"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Enterprise Example ComputeFramework implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Optional, Set
|
|
4
|
+
from uuid import UUID, uuid4
|
|
5
|
+
|
|
6
|
+
from mloda.core.abstract_plugins.components.parallelization_modes import ParallelizationMode
|
|
7
|
+
from mloda.core.abstract_plugins.function_extender import Extender
|
|
8
|
+
from mloda.provider import ComputeFramework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class EnterpriseExampleComputeFramework(ComputeFramework):
|
|
12
|
+
"""Enterprise Example ComputeFramework for demonstrating plugin structure."""
|
|
13
|
+
|
|
14
|
+
def __init__(
|
|
15
|
+
self,
|
|
16
|
+
mode: ParallelizationMode = ParallelizationMode.SYNC,
|
|
17
|
+
children_if_root: frozenset[UUID] = frozenset(),
|
|
18
|
+
uuid: UUID = uuid4(),
|
|
19
|
+
function_extender: Optional[Set[Extender]] = None,
|
|
20
|
+
) -> None:
|
|
21
|
+
"""Initialize with default values for minimal instantiation."""
|
|
22
|
+
super().__init__(mode, children_if_root, uuid, function_extender)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Enterprise Example Extender implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Set
|
|
4
|
+
|
|
5
|
+
from mloda.core.abstract_plugins.function_extender import Extender, ExtenderHook
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnterpriseExampleExtender(Extender):
|
|
9
|
+
"""An example enterprise extender that demonstrates the Extender pattern."""
|
|
10
|
+
|
|
11
|
+
def wraps(self) -> Set[ExtenderHook]:
|
|
12
|
+
"""Return the hooks this extender wraps."""
|
|
13
|
+
return set()
|
|
14
|
+
|
|
15
|
+
def __call__(self, func: Any, *args: Any, **kwargs: Any) -> Any:
|
|
16
|
+
"""Execute the wrapped function."""
|
|
17
|
+
return func(*args, **kwargs)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Enterprise Example FeatureGroup implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from mloda.provider import FeatureGroup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnterpriseExampleFeatureGroup(FeatureGroup):
|
|
9
|
+
"""Enterprise Example FeatureGroup for demonstrating plugin structure."""
|
|
10
|
+
|
|
11
|
+
@classmethod
|
|
12
|
+
def calculate_feature(cls, data: Any, features: Any) -> Any:
|
|
13
|
+
"""Return dummy data."""
|
|
14
|
+
return {"enterprise_example": "data"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mloda-enterprise
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: All enterprise plugins for mloda
|
|
3
|
+
Version: 0.2.6
|
|
4
|
+
Summary: All enterprise plugins for mloda
|
|
5
5
|
Author-email: Tom Kaltofen <info@mloda.ai>
|
|
6
6
|
License-Expression: LicenseRef-Proprietary
|
|
7
7
|
Project-URL: Homepage, https://mloda.ai
|
|
8
8
|
Project-URL: Repository, https://github.com/mloda-ai/mloda-registry
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
|
-
Requires-Dist: mloda
|
|
11
|
-
Requires-Dist: mloda-enterprise-compute-frameworks-example>=0.2.0
|
|
12
|
-
Requires-Dist: mloda-enterprise-extenders-example>=0.2.0
|
|
10
|
+
Requires-Dist: mloda>=0.4.3
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
mloda/enterprise/compute_frameworks/example/__init__.py,sha256=Z90u2CvunrxgkBRfgH2WjGoM9B0L8sMc1BGL2-amdL0,282
|
|
2
|
+
mloda/enterprise/compute_frameworks/example/enterprise_example_compute_framework.py,sha256=rXuX5VLp3VcMcbo-Ck86Q5x21FRf2UDm9UdY7-rXsNk,871
|
|
3
|
+
mloda/enterprise/extenders/example/__init__.py,sha256=FRvuCP4KJ7gWh8deoPQu6xucTu3JJD34rYBvApjSAqY,186
|
|
4
|
+
mloda/enterprise/extenders/example/enterprise_example_extender.py,sha256=2yMR1dPB_3iWEPwOuY6JEcOmV0-FzryIBSAMO6I0Q9k,554
|
|
5
|
+
mloda/enterprise/feature_groups/example/__init__.py,sha256=FOIUG4bXJiKqWulh_M-uIqCXqkOx-T2yLzjWjRs0yF0,220
|
|
6
|
+
mloda/enterprise/feature_groups/example/enterprise_example_feature_group.py,sha256=6uKqUcLna-JFpYHeRgiHgJDnhDp9Ly_wWCYzvSZ7aqY,412
|
|
7
|
+
mloda_enterprise-0.2.6.dist-info/METADATA,sha256=ez88SJwasus1tdQT87y8NcvIM7vMEnMoAbjrSuSi6Ps,348
|
|
8
|
+
mloda_enterprise-0.2.6.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
9
|
+
mloda_enterprise-0.2.6.dist-info/top_level.txt,sha256=srwNjqzXpP1WfLRhbrVc9JLt8TdfsaQe-Th7cGcAvYY,6
|
|
10
|
+
mloda_enterprise-0.2.6.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mloda
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
mloda_enterprise-0.2.4.dist-info/METADATA,sha256=0AtWR-xVU6IMq9QhYEbru4TUsCWMoMEBKFk-Ydui2AQ,505
|
|
2
|
-
mloda_enterprise-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
3
|
-
mloda_enterprise-0.2.4.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
|
-
mloda_enterprise-0.2.4.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|