msgcenterpy 0.0.5__tar.gz

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.
Files changed (42) hide show
  1. msgcenterpy-0.0.5/LICENSE +199 -0
  2. msgcenterpy-0.0.5/MANIFEST.in +6 -0
  3. msgcenterpy-0.0.5/PKG-INFO +330 -0
  4. msgcenterpy-0.0.5/README.md +83 -0
  5. msgcenterpy-0.0.5/msgcenterpy/__init__.py +97 -0
  6. msgcenterpy-0.0.5/msgcenterpy/__pycache__/__init__.cpython-310.pyc +0 -0
  7. msgcenterpy-0.0.5/msgcenterpy/core/__init__.py +0 -0
  8. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/__init__.cpython-310.pyc +0 -0
  9. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/envelope.cpython-310.pyc +0 -0
  10. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/field_accessor.cpython-310.pyc +0 -0
  11. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/message_center.cpython-310.pyc +0 -0
  12. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/message_instance.cpython-310.pyc +0 -0
  13. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/type_converter.cpython-310.pyc +0 -0
  14. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/type_info.cpython-310.pyc +0 -0
  15. msgcenterpy-0.0.5/msgcenterpy/core/__pycache__/types.cpython-310.pyc +0 -0
  16. msgcenterpy-0.0.5/msgcenterpy/core/envelope.py +54 -0
  17. msgcenterpy-0.0.5/msgcenterpy/core/field_accessor.py +406 -0
  18. msgcenterpy-0.0.5/msgcenterpy/core/message_center.py +69 -0
  19. msgcenterpy-0.0.5/msgcenterpy/core/message_instance.py +193 -0
  20. msgcenterpy-0.0.5/msgcenterpy/core/type_converter.py +411 -0
  21. msgcenterpy-0.0.5/msgcenterpy/core/type_info.py +400 -0
  22. msgcenterpy-0.0.5/msgcenterpy/core/types.py +25 -0
  23. msgcenterpy-0.0.5/msgcenterpy/instances/__init__.py +0 -0
  24. msgcenterpy-0.0.5/msgcenterpy/instances/__pycache__/__init__.cpython-310.pyc +0 -0
  25. msgcenterpy-0.0.5/msgcenterpy/instances/__pycache__/json_schema_instance.cpython-310.pyc +0 -0
  26. msgcenterpy-0.0.5/msgcenterpy/instances/__pycache__/ros2_instance.cpython-310.pyc +0 -0
  27. msgcenterpy-0.0.5/msgcenterpy/instances/json_schema_instance.py +303 -0
  28. msgcenterpy-0.0.5/msgcenterpy/instances/ros2_instance.py +242 -0
  29. msgcenterpy-0.0.5/msgcenterpy/utils/__init__.py +0 -0
  30. msgcenterpy-0.0.5/msgcenterpy/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  31. msgcenterpy-0.0.5/msgcenterpy/utils/__pycache__/decorator.cpython-310.pyc +0 -0
  32. msgcenterpy-0.0.5/msgcenterpy/utils/decorator.py +29 -0
  33. msgcenterpy-0.0.5/msgcenterpy.egg-info/PKG-INFO +330 -0
  34. msgcenterpy-0.0.5/msgcenterpy.egg-info/SOURCES.txt +40 -0
  35. msgcenterpy-0.0.5/msgcenterpy.egg-info/dependency_links.txt +1 -0
  36. msgcenterpy-0.0.5/msgcenterpy.egg-info/requires.txt +28 -0
  37. msgcenterpy-0.0.5/msgcenterpy.egg-info/top_level.txt +1 -0
  38. msgcenterpy-0.0.5/pyproject.toml +106 -0
  39. msgcenterpy-0.0.5/setup.cfg +4 -0
  40. msgcenterpy-0.0.5/tests/test_json_schema_instance.py +463 -0
  41. msgcenterpy-0.0.5/tests/test_ros2_instance.py +325 -0
  42. msgcenterpy-0.0.5/tests/test_ros_to_json_schema_conversion.py +384 -0
@@ -0,0 +1,199 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity granting the License.
13
+
14
+ "Legal Entity" shall mean the union of the acting entity and all
15
+ other entities that control, are controlled by, or are under common
16
+ control with that entity. For the purposes of this definition,
17
+ "control" means (i) the power, direct or indirect, to cause the
18
+ direction or management of such entity, whether by contract or
19
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity
23
+ exercising permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications,
26
+ including but not limited to software source code, documentation
27
+ source, and configuration files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical
30
+ transformation or translation of a Source form, including but
31
+ not limited to compiled object code, generated documentation,
32
+ and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship, whether in Source or
35
+ Object form, made available under the License, as indicated by a
36
+ copyright notice that is included in or attached to the work
37
+ (which shall not include communications that are merely
38
+ incorporated by reference without repeating their full text).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based upon (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and derivative works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control
57
+ systems, and issue tracking systems that are managed by, or on behalf
58
+ of, the Licensor for the purpose of discussing and improving the Work,
59
+ but excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to use, reproduce, modify, display, perform,
70
+ sublicense, and distribute the Work and such Derivative Works in
71
+ Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, trademark, patent,
102
+ attribution and other notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright notice to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Support. You may choose to offer and charge
166
+ a fee for, warranty, support, indemnity or other liability obligations
167
+ and/or rights consistent with this License. However, in accepting such
168
+ obligations, You may act only on Your own behalf and on Your sole
169
+ responsibility, not on behalf of any other Contributor, and only if
170
+ You agree to indemnify, defend, and hold each Contributor harmless for
171
+ any liability incurred by, or claims asserted against, such Contributor
172
+ by reason of your accepting any such warranty or support.
173
+
174
+ END OF TERMS AND CONDITIONS
175
+
176
+ APPENDIX: How to apply the Apache License to your work.
177
+
178
+ To apply the Apache License to your work, attach the following
179
+ boilerplate notice, with the fields enclosed by brackets "[]"
180
+ replaced with your own identifying information. (Don't include
181
+ the brackets!) The text should be enclosed in the appropriate
182
+ comment syntax for the file format. We also recommend that a
183
+ file or class name and description of purpose be included on the
184
+ same "printed page" as the copyright notice for easier
185
+ identification within third-party archives.
186
+
187
+ Copyright [yyyy] [name of copyright owner]
188
+
189
+ Licensed under the Apache License, Version 2.0 (the "License");
190
+ you may not use this file except in compliance with the License.
191
+ You may obtain a copy of the License at
192
+
193
+ http://www.apache.org/licenses/LICENSE-2.0
194
+
195
+ Unless required by applicable law or agreed to in writing, software
196
+ distributed under the License is distributed on an "AS IS" BASIS,
197
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198
+ See the License for the specific language governing permissions and
199
+ limitations under the License.
@@ -0,0 +1,6 @@
1
+ # Include important project files
2
+ include LICENSE
3
+ include README.md
4
+
5
+ # Include all msgcenterpy source files
6
+ recursive-include msgcenterpy *
@@ -0,0 +1,330 @@
1
+ Metadata-Version: 2.4
2
+ Name: msgcenterpy
3
+ Version: 0.0.5
4
+ Summary: Unified message conversion system supporting ROS2, Pydantic, Dataclass, JSON, YAML, Dict, and MCP schema inter-conversion
5
+ Author-email: MsgCenterPy Team <zgca@zgca.com>
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (which shall not include communications that are merely
43
+ incorporated by reference without repeating their full text).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based upon (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and derivative works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control
62
+ systems, and issue tracking systems that are managed by, or on behalf
63
+ of, the Licensor for the purpose of discussing and improving the Work,
64
+ but excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to use, reproduce, modify, display, perform,
75
+ sublicense, and distribute the Work and such Derivative Works in
76
+ Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, trademark, patent,
107
+ attribution and other notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright notice to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Support. You may choose to offer and charge
171
+ a fee for, warranty, support, indemnity or other liability obligations
172
+ and/or rights consistent with this License. However, in accepting such
173
+ obligations, You may act only on Your own behalf and on Your sole
174
+ responsibility, not on behalf of any other Contributor, and only if
175
+ You agree to indemnify, defend, and hold each Contributor harmless for
176
+ any liability incurred by, or claims asserted against, such Contributor
177
+ by reason of your accepting any such warranty or support.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
205
+
206
+ Project-URL: Homepage, https://github.com/ZGCA-Forge/MsgCenterPy
207
+ Project-URL: Documentation, https://zgca-forge.github.io/MsgCenterPy/
208
+ Project-URL: Repository, https://github.com/ZGCA-Forge/MsgCenterPy
209
+ Project-URL: Issues, https://github.com/ZGCA-Forge/MsgCenterPy/issues
210
+ Keywords: message,conversion,ros2,pydantic,dataclass,json,yaml,mcp
211
+ Classifier: Development Status :: 3 - Alpha
212
+ Classifier: Intended Audience :: Developers
213
+ Classifier: Programming Language :: Python :: 3
214
+ Classifier: Programming Language :: Python :: 3.10
215
+ Classifier: Programming Language :: Python :: 3.11
216
+ Classifier: Programming Language :: Python :: 3.12
217
+ Classifier: Programming Language :: Python :: 3.13
218
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
219
+ Classifier: Topic :: System :: Distributed Computing
220
+ Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
221
+ Requires-Python: >=3.10
222
+ Description-Content-Type: text/markdown
223
+ License-File: LICENSE
224
+ Requires-Dist: pydantic>=2.0.0
225
+ Requires-Dist: jsonschema>=4.25
226
+ Requires-Dist: PyYAML>=6.0
227
+ Requires-Dist: typing-extensions>=4.0.0; python_version < "3.11"
228
+ Provides-Extra: ros2
229
+ Requires-Dist: rosidl_runtime_py>=0.9.0; extra == "ros2"
230
+ Requires-Dist: rclpy>=3.0.0; extra == "ros2"
231
+ Provides-Extra: dev
232
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
233
+ Requires-Dist: black>=22.0.0; extra == "dev"
234
+ Requires-Dist: isort>=5.0.0; extra == "dev"
235
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
236
+ Requires-Dist: types-jsonschema>=4.0.0; extra == "dev"
237
+ Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
238
+ Requires-Dist: pre-commit>=2.20.0; extra == "dev"
239
+ Requires-Dist: bump2version>=1.0.0; extra == "dev"
240
+ Provides-Extra: docs
241
+ Requires-Dist: sphinx>=5.0.0; extra == "docs"
242
+ Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
243
+ Requires-Dist: myst-parser>=0.18.0; extra == "docs"
244
+ Provides-Extra: all
245
+ Requires-Dist: msgcenterpy[dev,docs,ros2]; extra == "all"
246
+ Dynamic: license-file
247
+
248
+ # MsgCenterPy
249
+
250
+ <div align="center">
251
+
252
+ [![PyPI version](https://badge.fury.io/py/msgcenterpy.svg)](https://badge.fury.io/py/msgcenterpy)
253
+ [![Python versions](https://img.shields.io/pypi/pyversions/msgcenterpy.svg)](https://pypi.org/project/msgcenterpy/)
254
+ [![Build Status](https://github.com/ZGCA-Forge/MsgCenterPy/actions/workflows/ci.yml/badge.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/actions)
255
+ [![Documentation](https://img.shields.io/badge/docs-GitHub%20Pages-brightgreen)](https://zgca-forge.github.io/MsgCenterPy/)
256
+
257
+ [![GitHub stars](https://img.shields.io/github/stars/ZGCA-Forge/MsgCenterPy.svg?style=social&label=Star)](https://github.com/ZGCA-Forge/MsgCenterPy)
258
+ [![GitHub forks](https://img.shields.io/github/forks/ZGCA-Forge/MsgCenterPy.svg?style=social&label=Fork)](https://github.com/ZGCA-Forge/MsgCenterPy/fork)
259
+ [![GitHub issues](https://img.shields.io/github/issues/ZGCA-Forge/MsgCenterPy.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/issues)
260
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/blob/main/LICENSE)
261
+
262
+ </div>
263
+
264
+ ---
265
+
266
+ MsgCenterPy is a multi-format message conversion system based on a unified instance manager architecture, supporting seamless conversion between **ROS2**, **Pydantic**, **Dataclass**, **JSON**, **Dict**, **YAML**, and **JSON Schema**.
267
+
268
+ ### Supported Formats
269
+
270
+ | Format | Read | Write | JSON Schema | Type Constraints |
271
+ | ----------- | ---- | ----- | ----------- | ---------------- |
272
+ | ROS2 | ✅ | ✅ | ✅ | ✅ |
273
+ | JSON Schema | ✅ | ✅ | ✅ | ✅ |
274
+ | Pydantic | 🚧 | 🚧 | 🚧 | 🚧 |
275
+ | Dataclass | 🚧 | 🚧 | 🚧 | 🚧 |
276
+ | JSON | 🚧 | 🚧 | 🚧 | 🚧 |
277
+ | Dict | 🚧 | 🚧 | 🚧 | 🚧 |
278
+ | YAML | 🚧 | 🚧 | 🚧 | 🚧 |
279
+
280
+ ## Installation
281
+
282
+ ### Basic Installation
283
+
284
+ ```bash
285
+ pip install msgcenterpy
286
+ ```
287
+
288
+ ### With Optional Dependencies
289
+
290
+ ```bash
291
+ # Install ROS2 support
292
+ conda install ros-humble-ros-core ros-humble-std-msgs ros-humble-geometry-msgs -c robostack-staging
293
+ ```
294
+
295
+ ### From Source
296
+
297
+ ```bash
298
+ git clone https://github.com/ZGCA-Forge/MsgCenterPy.git
299
+ cd MsgCenterPy
300
+ pip install -e .[dev]
301
+ ```
302
+
303
+ ## Quick Start
304
+
305
+ Please visit: [https://zgca-forge.github.io/MsgCenterPy/](https://zgca-forge.github.io/MsgCenterPy/)
306
+
307
+ ## Development
308
+
309
+ ### Development Environment Setup
310
+
311
+ ```bash
312
+ git clone https://github.com/ZGCA-Forge/MsgCenterPy.git
313
+ cd MsgCenterPy
314
+ pip install -e .[dev]
315
+ pre-commit install
316
+ ```
317
+
318
+ For API documentation, please refer to Quick Start
319
+
320
+ ## License
321
+
322
+ This project is licensed under Apache-2.0 License - see the [LICENSE](LICENSE) file for details.
323
+
324
+ ---
325
+
326
+ <div align="center">
327
+
328
+ Made with ❤️ by the MsgCenterPy Team
329
+
330
+ </div>
@@ -0,0 +1,83 @@
1
+ # MsgCenterPy
2
+
3
+ <div align="center">
4
+
5
+ [![PyPI version](https://badge.fury.io/py/msgcenterpy.svg)](https://badge.fury.io/py/msgcenterpy)
6
+ [![Python versions](https://img.shields.io/pypi/pyversions/msgcenterpy.svg)](https://pypi.org/project/msgcenterpy/)
7
+ [![Build Status](https://github.com/ZGCA-Forge/MsgCenterPy/actions/workflows/ci.yml/badge.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/actions)
8
+ [![Documentation](https://img.shields.io/badge/docs-GitHub%20Pages-brightgreen)](https://zgca-forge.github.io/MsgCenterPy/)
9
+
10
+ [![GitHub stars](https://img.shields.io/github/stars/ZGCA-Forge/MsgCenterPy.svg?style=social&label=Star)](https://github.com/ZGCA-Forge/MsgCenterPy)
11
+ [![GitHub forks](https://img.shields.io/github/forks/ZGCA-Forge/MsgCenterPy.svg?style=social&label=Fork)](https://github.com/ZGCA-Forge/MsgCenterPy/fork)
12
+ [![GitHub issues](https://img.shields.io/github/issues/ZGCA-Forge/MsgCenterPy.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/issues)
13
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/ZGCA-Forge/MsgCenterPy/blob/main/LICENSE)
14
+
15
+ </div>
16
+
17
+ ---
18
+
19
+ MsgCenterPy is a multi-format message conversion system based on a unified instance manager architecture, supporting seamless conversion between **ROS2**, **Pydantic**, **Dataclass**, **JSON**, **Dict**, **YAML**, and **JSON Schema**.
20
+
21
+ ### Supported Formats
22
+
23
+ | Format | Read | Write | JSON Schema | Type Constraints |
24
+ | ----------- | ---- | ----- | ----------- | ---------------- |
25
+ | ROS2 | ✅ | ✅ | ✅ | ✅ |
26
+ | JSON Schema | ✅ | ✅ | ✅ | ✅ |
27
+ | Pydantic | 🚧 | 🚧 | 🚧 | 🚧 |
28
+ | Dataclass | 🚧 | 🚧 | 🚧 | 🚧 |
29
+ | JSON | 🚧 | 🚧 | 🚧 | 🚧 |
30
+ | Dict | 🚧 | 🚧 | 🚧 | 🚧 |
31
+ | YAML | 🚧 | 🚧 | 🚧 | 🚧 |
32
+
33
+ ## Installation
34
+
35
+ ### Basic Installation
36
+
37
+ ```bash
38
+ pip install msgcenterpy
39
+ ```
40
+
41
+ ### With Optional Dependencies
42
+
43
+ ```bash
44
+ # Install ROS2 support
45
+ conda install ros-humble-ros-core ros-humble-std-msgs ros-humble-geometry-msgs -c robostack-staging
46
+ ```
47
+
48
+ ### From Source
49
+
50
+ ```bash
51
+ git clone https://github.com/ZGCA-Forge/MsgCenterPy.git
52
+ cd MsgCenterPy
53
+ pip install -e .[dev]
54
+ ```
55
+
56
+ ## Quick Start
57
+
58
+ Please visit: [https://zgca-forge.github.io/MsgCenterPy/](https://zgca-forge.github.io/MsgCenterPy/)
59
+
60
+ ## Development
61
+
62
+ ### Development Environment Setup
63
+
64
+ ```bash
65
+ git clone https://github.com/ZGCA-Forge/MsgCenterPy.git
66
+ cd MsgCenterPy
67
+ pip install -e .[dev]
68
+ pre-commit install
69
+ ```
70
+
71
+ For API documentation, please refer to Quick Start
72
+
73
+ ## License
74
+
75
+ This project is licensed under Apache-2.0 License - see the [LICENSE](LICENSE) file for details.
76
+
77
+ ---
78
+
79
+ <div align="center">
80
+
81
+ Made with ❤️ by the MsgCenterPy Team
82
+
83
+ </div>