mloda-community 0.2.5__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.
@@ -0,0 +1,7 @@
1
+ """mloda-community-compute-frameworks-example: Example community compute framework plugin."""
2
+
3
+ from mloda.community.compute_frameworks.example.community_example_compute_framework import (
4
+ CommunityExampleComputeFramework,
5
+ )
6
+
7
+ __all__ = ["CommunityExampleComputeFramework"]
@@ -0,0 +1,22 @@
1
+ """Community 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 CommunityExampleComputeFramework(ComputeFramework):
12
+ """Community 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,7 @@
1
+ """mloda-community-extenders-example: Example community extender plugin."""
2
+
3
+ from mloda.community.extenders.example.community_example_extender import (
4
+ CommunityExampleExtender,
5
+ )
6
+
7
+ __all__ = ["CommunityExampleExtender"]
@@ -0,0 +1,17 @@
1
+ """Community 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 CommunityExampleExtender(Extender):
9
+ """Community Example Extender for demonstrating plugin structure."""
10
+
11
+ def wraps(self) -> Set[ExtenderHook]:
12
+ """Return the set of hooks this extender wraps."""
13
+ return set()
14
+
15
+ def __call__(self, func: Any, *args: Any, **kwargs: Any) -> Any:
16
+ """Execute the wrapped function without modification."""
17
+ return func(*args, **kwargs)
@@ -0,0 +1,5 @@
1
+ """mloda-community-example: Example community plugin."""
2
+
3
+ from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
4
+
5
+ __all__ = ["CommunityExampleFeatureGroup"]
@@ -0,0 +1,14 @@
1
+ """Community Example FeatureGroup implementation."""
2
+
3
+ from typing import Any
4
+
5
+ from mloda.provider import FeatureGroup
6
+
7
+
8
+ class CommunityExampleFeatureGroup(FeatureGroup):
9
+ """Community 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 {"community_example": "data"}
@@ -0,0 +1,5 @@
1
+ """Example A FeatureGroup package."""
2
+
3
+ from mloda.community.feature_groups.example.example_a.example_a_feature_group import ExampleAFeatureGroup
4
+
5
+ __all__ = ["ExampleAFeatureGroup"]
@@ -0,0 +1,14 @@
1
+ """Example A FeatureGroup implementation."""
2
+
3
+ from typing import Any
4
+
5
+ from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
6
+
7
+
8
+ class ExampleAFeatureGroup(CommunityExampleFeatureGroup):
9
+ """Example A FeatureGroup extending the community example base."""
10
+
11
+ @classmethod
12
+ def calculate_feature(cls, data: Any, features: Any) -> Any:
13
+ """Return example A specific data."""
14
+ return {"example_a": "data", "source": "community_example_base"}
@@ -0,0 +1,5 @@
1
+ """Example B FeatureGroup package."""
2
+
3
+ from mloda.community.feature_groups.example.example_b.example_b_feature_group import ExampleBFeatureGroup
4
+
5
+ __all__ = ["ExampleBFeatureGroup"]
@@ -0,0 +1,14 @@
1
+ """Example B FeatureGroup implementation."""
2
+
3
+ from typing import Any
4
+
5
+ from mloda.community.feature_groups.example.community_example_feature_group import CommunityExampleFeatureGroup
6
+
7
+
8
+ class ExampleBFeatureGroup(CommunityExampleFeatureGroup):
9
+ """Example B FeatureGroup extending the community example base."""
10
+
11
+ @classmethod
12
+ def calculate_feature(cls, data: Any, features: Any) -> Any:
13
+ """Return example B specific data."""
14
+ return {"example_b": "data", "source": "community_example_base"}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mloda-community
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: All community plugins for mloda
5
5
  Author-email: Tom Kaltofen <info@mloda.ai>
6
6
  License-Expression: Apache-2.0
@@ -0,0 +1,14 @@
1
+ mloda/community/compute_frameworks/example/__init__.py,sha256=CBAzkMLcK2XhTYaSZg0pC3ieX7aTkTPjw2xcsMMmNpQ,276
2
+ mloda/community/compute_frameworks/example/community_example_compute_framework.py,sha256=GhyPshAgHuGKFA_K2VYc4qPs9P_wymDvR04PWk9swSE,868
3
+ mloda/community/extenders/example/__init__.py,sha256=G8A1ng0lGIsp-f1wqknB00lq99QmOz02aLE6uUv_vZg,224
4
+ mloda/community/extenders/example/community_example_extender.py,sha256=v261UHV0FXeAJL-9PPnomUXWCg-6dWvYMNlWbaPqvPM,572
5
+ mloda/community/feature_groups/example/__init__.py,sha256=O1EXrDth7HrH8WrITgMJUHunjDtegC-UmMfFA1M-mDY,214
6
+ mloda/community/feature_groups/example/community_example_feature_group.py,sha256=YSUJbKsiQP-VaZ_47p_alS50oThNxGcofBDxYpsCdGo,408
7
+ mloda/community/feature_groups/example/example_a/__init__.py,sha256=4QdcyrlQS1U2LjXr37ddtucuuq-Nm8oqtcBMCv53dJY,181
8
+ mloda/community/feature_groups/example/example_a/example_a_feature_group.py,sha256=QtdMhJGDpu8vFSy5cU4c52i-qehoAQ04bm5WVbE8EP8,515
9
+ mloda/community/feature_groups/example/example_b/__init__.py,sha256=eeaVjQ06XlTtM9AeosAOpVJEbdofDVpDZMt-lWgk7P0,181
10
+ mloda/community/feature_groups/example/example_b/example_b_feature_group.py,sha256=UM7GZ4I4OlNtw72JUJ_aqYO2RbO82qi50THJakuQ5dg,515
11
+ mloda_community-0.2.6.dist-info/METADATA,sha256=_vuvshT1GIJYv7VMH27fitoZkD_3mH1bVcspAHlaa2Q,334
12
+ mloda_community-0.2.6.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
13
+ mloda_community-0.2.6.dist-info/top_level.txt,sha256=srwNjqzXpP1WfLRhbrVc9JLt8TdfsaQe-Th7cGcAvYY,6
14
+ mloda_community-0.2.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1 @@
1
+ mloda
@@ -1,4 +0,0 @@
1
- mloda_community-0.2.5.dist-info/METADATA,sha256=PLE6zL_ROTVMmN8tzjJ2U5gmhqck0bbNksiRaHrWDMs,334
2
- mloda_community-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3
- mloda_community-0.2.5.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
- mloda_community-0.2.5.dist-info/RECORD,,
@@ -1 +0,0 @@
1
-