rats-apps 0.7.0.dev20250314224701__py3-none-any.whl → 0.8.0__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/app_context/__init__.py +2 -0
- rats/app_context/_collection.py +4 -0
- {rats_apps-0.7.0.dev20250314224701.dist-info → rats_apps-0.8.0.dist-info}/METADATA +1 -1
- {rats_apps-0.7.0.dev20250314224701.dist-info → rats_apps-0.8.0.dist-info}/RECORD +5 -5
- {rats_apps-0.7.0.dev20250314224701.dist-info → rats_apps-0.8.0.dist-info}/WHEEL +0 -0
rats/app_context/__init__.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Application context package to help share [apps.Container][] state across machines."""
|
2
2
|
|
3
3
|
from ._collection import (
|
4
|
+
EMPTY_COLLECTION,
|
4
5
|
Collection,
|
5
6
|
dumps,
|
6
7
|
loads,
|
@@ -9,6 +10,7 @@ from ._container import GroupContainer, ServiceContainer
|
|
9
10
|
from ._context import Context, T_ContextType
|
10
11
|
|
11
12
|
__all__ = [
|
13
|
+
"EMPTY_COLLECTION",
|
12
14
|
"Collection",
|
13
15
|
"Context",
|
14
16
|
"GroupContainer",
|
rats/app_context/_collection.py
CHANGED
@@ -74,6 +74,10 @@ class Collection(Generic[T_ContextType]):
|
|
74
74
|
)
|
75
75
|
|
76
76
|
|
77
|
+
EMPTY_COLLECTION = Collection[Any].empty()
|
78
|
+
"""Empty collection constant usable as default method values."""
|
79
|
+
|
80
|
+
|
77
81
|
def loads(context: str) -> Collection[Any]:
|
78
82
|
"""
|
79
83
|
Transforms a json string into a [rats.app_context.Collection][] instance.
|
@@ -2,8 +2,8 @@ rats/annotations/__init__.py,sha256=YmydaopUSlpoX6MvQ-3p18sgEC_DB_y683wVICD-jnU,
|
|
2
2
|
rats/annotations/__main__.py,sha256=vlzQOM9y82P0OL5tYcmSM_4jTg0s8jayAcvEoi9cBvI,1065
|
3
3
|
rats/annotations/_functions.py,sha256=UkHh3zdBivluE7dBeGQ17zoIfGdyIokMAkFmpWaIlDc,4284
|
4
4
|
rats/annotations/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
rats/app_context/__init__.py,sha256=
|
6
|
-
rats/app_context/_collection.py,sha256=
|
5
|
+
rats/app_context/__init__.py,sha256=WHFPJXl7WHHIgfQxzmDbGHIW8YTbDsCrusLlFctGW_o,447
|
6
|
+
rats/app_context/_collection.py,sha256=5-Nog2Du2v0tAZbhsbpg3vMjMcZ--hSZ4acWM2HTlMY,3717
|
7
7
|
rats/app_context/_container.py,sha256=YkNG25jngfN_064jv8fZmKW1FSuL6RRJAp9F_hm2NZg,2954
|
8
8
|
rats/app_context/_context.py,sha256=VUm-cg2WKtFU2VvIJI8OmTdRRoDLXeWPBYu_ynpUjlY,1599
|
9
9
|
rats/app_context/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -40,6 +40,6 @@ rats_e2e/apps/inputs/_app.py,sha256=FiaLgOZc-d1ryKSwKnL5XBNGcOP1bHbxxeMJqoU_RJg,
|
|
40
40
|
rats_e2e/apps/minimal/__init__.py,sha256=bUR6Oexx6Jsouxor0cL9emXoVha4cm3WqyhU1pgchsI,521
|
41
41
|
rats_e2e/apps/minimal/__main__.py,sha256=Mf-a2iQKTTgh9hMd6AeuzmU9araMIyf1AtdWkh_L07E,117
|
42
42
|
rats_e2e/apps/minimal/_app.py,sha256=CQ09LVTNRarz7Pb1wiSuNHrZ_2KGcgH8nUqy4BjxMUY,849
|
43
|
-
rats_apps-0.
|
44
|
-
rats_apps-0.
|
45
|
-
rats_apps-0.
|
43
|
+
rats_apps-0.8.0.dist-info/METADATA,sha256=ZLdfdrXM4hRIFBWb1Js6ExxdTLYBTYEHiF5sSNEcZYY,848
|
44
|
+
rats_apps-0.8.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
45
|
+
rats_apps-0.8.0.dist-info/RECORD,,
|
File without changes
|