rats-apps 0.11.0.dev20250522161150__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.
- rats/apps/_app_containers.py +9 -4
- {rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/METADATA +1 -1
- {rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/RECORD +5 -5
- {rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/WHEEL +0 -0
- {rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/entry_points.txt +0 -0
rats/apps/_app_containers.py
CHANGED
@@ -151,7 +151,7 @@ class AppBundle(AppContainer):
|
|
151
151
|
context: Container = EMPTY_CONTEXT,
|
152
152
|
):
|
153
153
|
"""
|
154
|
-
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.
|
155
155
|
|
156
156
|
Example:
|
157
157
|
```python
|
@@ -160,17 +160,22 @@ class AppBundle(AppContainer):
|
|
160
160
|
|
161
161
|
class ExamplePlugin(apps.Container, apps.PluginMixin):
|
162
162
|
@apps.service(apps.ServiceId[str]("some-value"))
|
163
|
-
def _some_value() -> str:
|
163
|
+
def _some_value(self) -> str:
|
164
164
|
return "hello, world!"
|
165
165
|
|
166
166
|
|
167
167
|
class ExampleApplication(apps.AppContainer, apps.PluginMixin):
|
168
|
-
def execute() -> None:
|
168
|
+
def execute(self) -> None:
|
169
169
|
print(self._app.get(apps.ServiceId[str]("some-value")))
|
170
170
|
|
171
171
|
|
172
172
|
if __name__ == "__main__":
|
173
|
-
apps.run(
|
173
|
+
apps.run(
|
174
|
+
apps.AppBundle(
|
175
|
+
app_plugin=ExampleApplication,
|
176
|
+
container_plugin=ExamplePlugin,
|
177
|
+
)
|
178
|
+
)
|
174
179
|
```
|
175
180
|
|
176
181
|
Args:
|
{rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/RECORD
RENAMED
@@ -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=
|
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.
|
58
|
-
rats_apps-0.11.
|
59
|
-
rats_apps-0.11.
|
60
|
-
rats_apps-0.11.
|
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,,
|
{rats_apps-0.11.0.dev20250522161150.dist-info → rats_apps-0.11.1.dev20250527164358.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|