stinger-python-utils 0.1.2__py3-none-any.whl → 0.1.3__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.
- stinger_python_utils/message_creator.py +4 -3
- {stinger_python_utils-0.1.2.dist-info → stinger_python_utils-0.1.3.dist-info}/METADATA +1 -1
- stinger_python_utils-0.1.3.dist-info/RECORD +7 -0
- stinger_python_utils-0.1.2.dist-info/RECORD +0 -7
- {stinger_python_utils-0.1.2.dist-info → stinger_python_utils-0.1.3.dist-info}/WHEEL +0 -0
- {stinger_python_utils-0.1.2.dist-info → stinger_python_utils-0.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -32,7 +32,7 @@ class MessageCreator:
|
|
|
32
32
|
cls,
|
|
33
33
|
topic: str,
|
|
34
34
|
return_code: int,
|
|
35
|
-
correlation_id: Union[str, bytes],
|
|
35
|
+
correlation_id: Union[str, bytes, None] = None,
|
|
36
36
|
debug_info: Optional[str] = None,
|
|
37
37
|
) -> Message:
|
|
38
38
|
"""
|
|
@@ -62,7 +62,7 @@ class MessageCreator:
|
|
|
62
62
|
response_topic: str,
|
|
63
63
|
response_obj: BaseModel | str | bytes,
|
|
64
64
|
return_code: int,
|
|
65
|
-
correlation_id: Union[str, bytes],
|
|
65
|
+
correlation_id: Union[str, bytes, None] = None,
|
|
66
66
|
) -> Message:
|
|
67
67
|
"""
|
|
68
68
|
This could be used for a successful response to a request.
|
|
@@ -99,6 +99,7 @@ class MessageCreator:
|
|
|
99
99
|
payload=state_obj.model_dump_json(by_alias=True).encode("utf-8"),
|
|
100
100
|
qos=1,
|
|
101
101
|
retain=True,
|
|
102
|
+
content_type="application/json",
|
|
102
103
|
)
|
|
103
104
|
if state_version is not None:
|
|
104
105
|
msg_obj.user_properties = {"PropertyVersion": str(state_version)}
|
|
@@ -138,7 +139,7 @@ class MessageCreator:
|
|
|
138
139
|
property_obj: BaseModel,
|
|
139
140
|
version: str,
|
|
140
141
|
return_code: int,
|
|
141
|
-
correlation_id: Union[str, bytes],
|
|
142
|
+
correlation_id: Union[str, bytes, None] = None,
|
|
142
143
|
debug_info: Optional[str] = None,
|
|
143
144
|
) -> Message:
|
|
144
145
|
"""
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
stinger_python_utils/__init__.py,sha256=IjHRV0k2DNwvFrEHebmsXiBvmITE8nQUnsR07h9tVkU,7
|
|
2
|
+
stinger_python_utils/message_creator.py,sha256=hTGXbVIuvc_7pzP73N0z2VzvRiNYFKNwNKLbvh4Kw14,6155
|
|
3
|
+
stinger_python_utils/return_codes.py,sha256=AAwshvHu3SBoctwMX35k3j666J4a7DQ3V8AnR7QBjC8,5114
|
|
4
|
+
stinger_python_utils-0.1.3.dist-info/METADATA,sha256=TKdZvY9ZQZ0X3j97eLRj_jpYV9L0eSp8a7tH6WaHbh8,364
|
|
5
|
+
stinger_python_utils-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
+
stinger_python_utils-0.1.3.dist-info/licenses/LICENSE,sha256=_T-8ExmblJbhv-1AxC6XDVEHg1JdJA-126NvRiMqS-I,1070
|
|
7
|
+
stinger_python_utils-0.1.3.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
stinger_python_utils/__init__.py,sha256=IjHRV0k2DNwvFrEHebmsXiBvmITE8nQUnsR07h9tVkU,7
|
|
2
|
-
stinger_python_utils/message_creator.py,sha256=ZR4FOhkmJ5R_X5QS-c-QAIpcN-7htIOiHtO40QUS35Y,6071
|
|
3
|
-
stinger_python_utils/return_codes.py,sha256=AAwshvHu3SBoctwMX35k3j666J4a7DQ3V8AnR7QBjC8,5114
|
|
4
|
-
stinger_python_utils-0.1.2.dist-info/METADATA,sha256=LxgDU_LYLjt9F5FMBkIsiK_XR61DL1tOEVOxI0glX78,364
|
|
5
|
-
stinger_python_utils-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
-
stinger_python_utils-0.1.2.dist-info/licenses/LICENSE,sha256=_T-8ExmblJbhv-1AxC6XDVEHg1JdJA-126NvRiMqS-I,1070
|
|
7
|
-
stinger_python_utils-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
{stinger_python_utils-0.1.2.dist-info → stinger_python_utils-0.1.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|