rats-apps 0.11.0.dev20250521180658__py3-none-any.whl → 0.11.1.dev20250527164358__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.
@@ -53,11 +53,7 @@ This is the companion type to [rats.apps.ContainerPlugin][].
53
53
 
54
54
  ContainerPlugin = _ContainerPluginType | Callable[[Container], Container]
55
55
  """
56
- Main interface for a function that returns an [rats.apps.Container][] instance.
57
-
58
- Containers that implement this type—for example, by using the [rats.apps.PluginMixin][] mixin—can
59
- be used easily in functions that need to defer the construction of an application container. See
60
- [rats.apps.AppBundle][] for additional examples.
56
+ Factory function protocol that returns an [rats.apps.Container][] instance.
61
57
  """
62
58
 
63
59
 
@@ -155,7 +151,7 @@ class AppBundle(AppContainer):
155
151
  context: Container = EMPTY_CONTEXT,
156
152
  ):
157
153
  """
158
- Create an instance by providing the [rats.apps.AppPlugin] type and any additional context.
154
+ Create an instance by providing the [rats.apps.AppPlugin][] type and any additional context.
159
155
 
160
156
  Example:
161
157
  ```python
@@ -164,17 +160,22 @@ class AppBundle(AppContainer):
164
160
 
165
161
  class ExamplePlugin(apps.Container, apps.PluginMixin):
166
162
  @apps.service(apps.ServiceId[str]("some-value"))
167
- def _some_value() -> str:
163
+ def _some_value(self) -> str:
168
164
  return "hello, world!"
169
165
 
170
166
 
171
167
  class ExampleApplication(apps.AppContainer, apps.PluginMixin):
172
- def execute() -> None:
168
+ def execute(self) -> None:
173
169
  print(self._app.get(apps.ServiceId[str]("some-value")))
174
170
 
175
171
 
176
172
  if __name__ == "__main__":
177
- apps.run(apps.AppBundle(ExampleApplication, ExamplePlugin))
173
+ apps.run(
174
+ apps.AppBundle(
175
+ app_plugin=ExampleApplication,
176
+ container_plugin=ExamplePlugin,
177
+ )
178
+ )
178
179
  ```
179
180
 
180
181
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rats-apps
3
- Version: 0.11.0.dev20250521180658
3
+ Version: 0.11.1.dev20250527164358
4
4
  Summary: research analysis tools for building applications
5
5
  License: MIT
6
6
  Keywords: pipelines,machine learning,research
@@ -9,7 +9,7 @@ rats/app_context/_context.py,sha256=S7D8NLefZJI4MDEpYKdenfNsemus4bUlQCG-gd3U3g8,
9
9
  rats/app_context/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  rats/apps/__init__.py,sha256=6B5qQvzx1xlRrNRY4QJi6GEywuQ1MoW454kC4nO2Yqg,2084
11
11
  rats/apps/_annotations.py,sha256=6M_M7K8haNVda0Tx02EpFf3s9EjnWYacNMjTIkNEdRU,4617
12
- rats/apps/_app_containers.py,sha256=Wen5nMJdhOVa6mGHeEm7paXo1RXsNrgNRUbS0SWd9X0,7026
12
+ rats/apps/_app_containers.py,sha256=1rtq92rOGvCbroQmDgOM24jxxcNNFQHy65fBLO5LIXo,6920
13
13
  rats/apps/_composite_container.py,sha256=FdpmH_xIly6LxNZrA_nZCznukptjVLXttXTMtf_tnv8,695
14
14
  rats/apps/_container.py,sha256=sYISCG-qVzl-bsBwX_CAWEP9gtXCnG-Jls3l8IKb4DQ,7208
15
15
  rats/apps/_executables.py,sha256=hXExNmAnuPU1KJXihNw1jEDAQpMlQ9E9_aPV8tpGbOY,1347
@@ -54,7 +54,7 @@ rats_e2e/runtime/_data.py,sha256=3d1F_JO2gEOPUjBp_KYMP3TefyneiG_ktlJjdIIYUy8,125
54
54
  rats_e2e/runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  rats_resources/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  rats_resources/runtime/example-context.yaml,sha256=eiLsNFquFfkIpUhxUCQLzLigH21QF2F00fzA_e_aOKk,215
57
- rats_apps-0.11.0.dev20250521180658.dist-info/METADATA,sha256=dcJpnIbCfQHHsWtD0bjxHQ26671OecfVVNeISRUoJYg,889
58
- rats_apps-0.11.0.dev20250521180658.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
59
- rats_apps-0.11.0.dev20250521180658.dist-info/entry_points.txt,sha256=Gf6bPwxIVjWd3Xx71upZo7eDJA5cujniLew6fxJMgA4,117
60
- rats_apps-0.11.0.dev20250521180658.dist-info/RECORD,,
57
+ rats_apps-0.11.1.dev20250527164358.dist-info/METADATA,sha256=pxkR1NF65RfrYcBemvO87N8bYjEdLprXgvi0NQ9ygYw,889
58
+ rats_apps-0.11.1.dev20250527164358.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
59
+ rats_apps-0.11.1.dev20250527164358.dist-info/entry_points.txt,sha256=Gf6bPwxIVjWd3Xx71upZo7eDJA5cujniLew6fxJMgA4,117
60
+ rats_apps-0.11.1.dev20250527164358.dist-info/RECORD,,