rosio 0.1.0__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.
- rosio-0.1.0/.gitignore +20 -0
- rosio-0.1.0/LICENSE +202 -0
- rosio-0.1.0/NOTICE +16 -0
- rosio-0.1.0/PKG-INFO +143 -0
- rosio-0.1.0/README.md +106 -0
- rosio-0.1.0/pyproject.toml +102 -0
- rosio-0.1.0/rosio/__init__.py +66 -0
- rosio-0.1.0/rosio/__main__.py +6 -0
- rosio-0.1.0/rosio/agent/__init__.py +32 -0
- rosio-0.1.0/rosio/agent/install.py +562 -0
- rosio-0.1.0/rosio/agent/platforms.py +417 -0
- rosio-0.1.0/rosio/agent/templates/core.md +53 -0
- rosio-0.1.0/rosio/agent/templates/instructions.md +3 -0
- rosio-0.1.0/rosio/agent/templates/rules.mdc +9 -0
- rosio-0.1.0/rosio/agent/templates/skill.md +8 -0
- rosio-0.1.0/rosio/bundle.py +598 -0
- rosio-0.1.0/rosio/cli.py +2331 -0
- rosio-0.1.0/rosio/collect/__init__.py +241 -0
- rosio-0.1.0/rosio/collect/_probe_child.py +714 -0
- rosio-0.1.0/rosio/collect/bag.py +1391 -0
- rosio-0.1.0/rosio/collect/cpp_code.py +6507 -0
- rosio-0.1.0/rosio/collect/entrypoints.py +1155 -0
- rosio-0.1.0/rosio/collect/interfaces.py +650 -0
- rosio-0.1.0/rosio/collect/launch_declared.py +2938 -0
- rosio-0.1.0/rosio/collect/params.py +3207 -0
- rosio-0.1.0/rosio/collect/plugins.py +1781 -0
- rosio-0.1.0/rosio/collect/probe.py +1224 -0
- rosio-0.1.0/rosio/collect/proc.py +546 -0
- rosio-0.1.0/rosio/collect/py_code.py +3572 -0
- rosio-0.1.0/rosio/collect/stamps.py +199 -0
- rosio-0.1.0/rosio/collect/urdf.py +1605 -0
- rosio-0.1.0/rosio/config.py +926 -0
- rosio-0.1.0/rosio/drift/__init__.py +17 -0
- rosio-0.1.0/rosio/drift/build.py +1661 -0
- rosio-0.1.0/rosio/drift/controllers.py +257 -0
- rosio-0.1.0/rosio/drift/engine.py +496 -0
- rosio-0.1.0/rosio/drift/frames.py +2408 -0
- rosio-0.1.0/rosio/drift/middleware.py +191 -0
- rosio-0.1.0/rosio/drift/nodes.py +570 -0
- rosio-0.1.0/rosio/drift/params.py +1561 -0
- rosio-0.1.0/rosio/drift/plugins.py +642 -0
- rosio-0.1.0/rosio/drift/rules.py +470 -0
- rosio-0.1.0/rosio/drift/time.py +269 -0
- rosio-0.1.0/rosio/drift/topics.py +1306 -0
- rosio-0.1.0/rosio/errors.py +86 -0
- rosio-0.1.0/rosio/extract.py +897 -0
- rosio-0.1.0/rosio/history.py +1450 -0
- rosio-0.1.0/rosio/ids.py +1021 -0
- rosio-0.1.0/rosio/join.py +3820 -0
- rosio-0.1.0/rosio/mergetool.py +595 -0
- rosio-0.1.0/rosio/migrate/__init__.py +160 -0
- rosio-0.1.0/rosio/migrate/cmake.py +183 -0
- rosio-0.1.0/rosio/migrate/data/defaults.json +620 -0
- rosio-0.1.0/rosio/migrate/data/distros.json +5992 -0
- rosio-0.1.0/rosio/migrate/data/rules.yaml +319 -0
- rosio-0.1.0/rosio/migrate/distros.py +117 -0
- rosio-0.1.0/rosio/migrate/report.py +51 -0
- rosio-0.1.0/rosio/migrate/rules.py +147 -0
- rosio-0.1.0/rosio/migrate/scan.py +976 -0
- rosio-0.1.0/rosio/migrate/verify.py +292 -0
- rosio-0.1.0/rosio/model.py +2522 -0
- rosio-0.1.0/rosio/query.py +2249 -0
- rosio-0.1.0/rosio/render/__init__.py +154 -0
- rosio-0.1.0/rosio/render/assets/atlas.css +208 -0
- rosio-0.1.0/rosio/render/assets/atlas.html +69 -0
- rosio-0.1.0/rosio/render/assets/atlas.js +838 -0
- rosio-0.1.0/rosio/render/drift_md.py +405 -0
- rosio-0.1.0/rosio/render/html.py +513 -0
- rosio-0.1.0/rosio/render/report.py +871 -0
- rosio-0.1.0/rosio/resolve/__init__.py +23 -0
- rosio-0.1.0/rosio/resolve/_launch_child.py +2373 -0
- rosio-0.1.0/rosio/resolve/identity.py +494 -0
- rosio-0.1.0/rosio/resolve/known_names.py +672 -0
- rosio-0.1.0/rosio/resolve/launch_exec.py +1325 -0
- rosio-0.1.0/rosio/resolve/merge.py +167 -0
- rosio-0.1.0/rosio/resolve/py_pipeline.py +1566 -0
- rosio-0.1.0/rosio/resolve/qos_presets.py +79 -0
- rosio-0.1.0/rosio/resolve/records.py +333 -0
- rosio-0.1.0/rosio/resolve/rewritten_yaml.py +333 -0
- rosio-0.1.0/rosio/resolve/ros_args.py +1466 -0
- rosio-0.1.0/rosio/resolve/substitutions.py +422 -0
- rosio-0.1.0/rosio/resolve/wrappers.py +906 -0
- rosio-0.1.0/rosio/resolve/yaml_lines.py +393 -0
- rosio-0.1.0/rosio/scaffold.py +652 -0
- rosio-0.1.0/rosio/schema.py +819 -0
- rosio-0.1.0/rosio/serve/__init__.py +13 -0
- rosio-0.1.0/rosio/serve/__main__.py +103 -0
- rosio-0.1.0/rosio/serve/server.py +586 -0
- rosio-0.1.0/rosio/serve/tools.py +1974 -0
- rosio-0.1.0/rosio/stamps/__init__.py +32 -0
- rosio-0.1.0/rosio/stamps/__main__.py +7 -0
- rosio-0.1.0/rosio/stamps/checks.py +32 -0
- rosio-0.1.0/rosio/stamps/cli.py +128 -0
- rosio-0.1.0/rosio/stamps/clock.py +243 -0
- rosio-0.1.0/rosio/stamps/fallback.py +213 -0
- rosio-0.1.0/rosio/stamps/model.py +18 -0
- rosio-0.1.0/rosio/stamps/mutate.py +381 -0
- rosio-0.1.0/rosio/stamps/read.py +137 -0
- rosio-0.1.0/rosio/stamps/stream.py +210 -0
- rosio-0.1.0/rosio/stamps/verdict.py +175 -0
- rosio-0.1.0/rosio/workspace.py +1467 -0
rosio-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
.venv/
|
|
4
|
+
venv/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.ruff_cache/
|
|
10
|
+
.mypy_cache/
|
|
11
|
+
.coverage
|
|
12
|
+
htmlcov/
|
|
13
|
+
rosio-out/
|
|
14
|
+
scratch/
|
|
15
|
+
bench/
|
|
16
|
+
/target/
|
|
17
|
+
editors/zed/target/
|
|
18
|
+
editors/zed/extension.wasm
|
|
19
|
+
corpus/stamps/data/
|
|
20
|
+
.taste-skill/
|
rosio-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 rosio contributors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
rosio-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
rosio
|
|
2
|
+
Copyright 2026 rosio contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed by the rosio contributors.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
you may not use this file except in compliance with the License.
|
|
8
|
+
You may obtain a copy of the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
See the License for the specific language governing permissions and
|
|
16
|
+
limitations under the License.
|
rosio-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: rosio
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Four layer atlas of a ROS 2 system, with drift between the layers
|
|
5
|
+
Author: rosio contributors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
License-File: NOTICE
|
|
9
|
+
Keywords: atlas,introspection,robotics,ros2,static-analysis
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering
|
|
17
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: pyyaml>=5.4
|
|
20
|
+
Provides-Extra: cpp
|
|
21
|
+
Requires-Dist: tree-sitter-cpp<0.24,>=0.23; extra == 'cpp'
|
|
22
|
+
Requires-Dist: tree-sitter<0.27,>=0.23; extra == 'cpp'
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: build>=1.0; extra == 'dev'
|
|
25
|
+
Requires-Dist: numpy; extra == 'dev'
|
|
26
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
27
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
28
|
+
Requires-Dist: rosbags<0.12,>=0.11.4; extra == 'dev'
|
|
29
|
+
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
30
|
+
Provides-Extra: mcp
|
|
31
|
+
Requires-Dist: mcp<3,>=1.14; extra == 'mcp'
|
|
32
|
+
Requires-Dist: uvicorn>=0.31.1; extra == 'mcp'
|
|
33
|
+
Provides-Extra: stamps
|
|
34
|
+
Requires-Dist: rosbags<0.12,>=0.11.4; extra == 'stamps'
|
|
35
|
+
Provides-Extra: viz
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<picture>
|
|
40
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/sa1ntsinner/rosio/main/docs/media/logo-dark.svg">
|
|
41
|
+
<img alt="rosio" src="https://raw.githubusercontent.com/sa1ntsinner/rosio/main/docs/media/logo-light.svg" width="260">
|
|
42
|
+
</picture>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<b>What your ROS 2 system really is, where its parts disagree, and which line to edit.</b><br>
|
|
47
|
+
<a href="https://sa1ntsinner.github.io/rosio-site/">Site</a> ·
|
|
48
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/commands.md">Commands</a> ·
|
|
49
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/configuration.md">Configuration</a> ·
|
|
50
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/examples.md">Examples</a> ·
|
|
51
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/assistants.md">Assistants</a>
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
A ROS 2 system is described four times: in launch files and yaml, in the C++ and Python
|
|
57
|
+
sources, in the running graph, and in the recordings. rosio reads all four into one atlas and
|
|
58
|
+
tells you where they disagree, with the file and line to change. There is no language model in
|
|
59
|
+
it, no network call and no API key, and two runs over the same inputs write the same bytes.
|
|
60
|
+
|
|
61
|
+
```mermaid
|
|
62
|
+
flowchart LR
|
|
63
|
+
D["declared<br/>launch, yaml, urdf, plugins"] --> A
|
|
64
|
+
C["coded<br/>C++ and Python sources"] --> A
|
|
65
|
+
O["observed<br/>a live probe"] --> A
|
|
66
|
+
R["recorded<br/>rosbag2"] --> A
|
|
67
|
+
A[("atlas.json")] --> F["drift findings<br/>file and line to edit"]
|
|
68
|
+
F --> CLI[command line and CI]
|
|
69
|
+
F --> ED[VS Code and Zed]
|
|
70
|
+
F --> AG[assistants over MCP]
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Quickstart
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install "rosio[cpp,stamps,mcp]" # in an environment made with --system-site-packages
|
|
77
|
+
source /opt/ros/jazzy/setup.bash
|
|
78
|
+
cd ~/ros2_ws
|
|
79
|
+
rosio init # writes rosio.yaml, one profile per launch file
|
|
80
|
+
rosio extract # reads the workspace into rosio-out/atlas.json
|
|
81
|
+
rosio drift # what is wrong, worst first
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
On `examples/rover_ws`, a small rover with five faults planted on purpose:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
$ rosio drift
|
|
88
|
+
5 findings: 1 error, 0 info, 4 warn
|
|
89
|
+
error qos.incompatible /safety_stop never receives /scan_filtered
|
|
90
|
+
warn frame.not_in_urdf /scan_filter looks up laser_frame, which no robot model has
|
|
91
|
+
warn param.orphan_block block odometry owns nothing in rover
|
|
92
|
+
warn param.set_undeclared stop_distnce is set for /safety_stop and never declared
|
|
93
|
+
warn param.shadowed max_range at rover_bringup/config/rover.yaml:4 is overridden
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Each finding also carries why it is true, the line to edit, a fix and a sentence an assistant
|
|
97
|
+
can quote. `rosio param`, `rosio path` and `rosio explain` answer one question each, and
|
|
98
|
+
`rosio render` writes a report and a single file graph. Profiles, roots and every other key
|
|
99
|
+
are in [docs/configuration.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/configuration.md); installing from a checkout and the
|
|
100
|
+
full command list are in [docs/commands.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/commands.md).
|
|
101
|
+
|
|
102
|
+
## What it finds
|
|
103
|
+
|
|
104
|
+
| | |
|
|
105
|
+
| --- | --- |
|
|
106
|
+
| **Effective parameters** | The chain behind one value, winner first, every shadowed value with its file and line, through `SetParameter`, rewritten yaml and launcher scripts. |
|
|
107
|
+
| **Real names** | A code literal plus a remap plus a namespace is the topic that exists. |
|
|
108
|
+
| **Drift** | Fifty seven rules with a committed vocabulary and stable waiver keys. |
|
|
109
|
+
| **Middleware and clocks** | Mixed RMW implementations, a missing Zenoh router, and header stamps that go backwards, freeze or carry a TAI offset. |
|
|
110
|
+
| **Blind spots** | What it could not work out is listed with the raw expression, never guessed. |
|
|
111
|
+
|
|
112
|
+
## In your editor
|
|
113
|
+
|
|
114
|
+

|
|
115
|
+
|
|
116
|
+
The VS Code extension in `editors/vscode` puts findings on the line they cite, hovers show
|
|
117
|
+
every layer that states a topic, parameter or frame, and code lenses name the other end of each
|
|
118
|
+
publisher and subscription. The editor side is `rosio-lsp`, a Rust language server any LSP
|
|
119
|
+
editor can use; `editors/zed` wires it into Zed. More screenshots are in
|
|
120
|
+
[docs/examples.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/examples.md).
|
|
121
|
+
|
|
122
|
+
## With your assistant
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
rosio install claude-code # or codex, cursor, gemini-cli, copilot, aider, ...
|
|
126
|
+
rosio serve # the MCP server, over stdio
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
`install` writes the skill, rules and MCP registration your assistant reads. Details, the tool
|
|
130
|
+
list and the privacy model are in [docs/assistants.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/assistants.md).
|
|
131
|
+
|
|
132
|
+
## More
|
|
133
|
+
|
|
134
|
+
- [Moving to another ROS 2 release](https://github.com/sa1ntsinner/rosio/blob/main/docs/migrate.md): `rosio migrate plan --to lyrical` lists
|
|
135
|
+
what the move asks of your packages, and `verify` builds them in the target.
|
|
136
|
+
- [Handing a problem over](https://github.com/sa1ntsinner/rosio/blob/main/docs/bundle.md): `rosio bundle create` packs the atlas and the cited
|
|
137
|
+
files so someone else sees the same findings.
|
|
138
|
+
- [Timestamp faults](https://github.com/sa1ntsinner/rosio/blob/main/docs/stamps-failure-zoo.md): what `rosio stamps` detects in a recording.
|
|
139
|
+
- `AGENTS.md` is the contract, `ARCHITECTURE.md` the map, `CONTEXT.md` the vocabulary.
|
|
140
|
+
|
|
141
|
+
Developed on ROS 2 jazzy with Fast DDS and `rmw_zenoh_cpp`; CI runs jazzy and humble on
|
|
142
|
+
Python 3.10 and newer. The most useful report is a workspace or a recording rosio reads wrongly.
|
|
143
|
+
Apache-2.0.
|
rosio-0.1.0/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/sa1ntsinner/rosio/main/docs/media/logo-dark.svg">
|
|
4
|
+
<img alt="rosio" src="https://raw.githubusercontent.com/sa1ntsinner/rosio/main/docs/media/logo-light.svg" width="260">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<b>What your ROS 2 system really is, where its parts disagree, and which line to edit.</b><br>
|
|
10
|
+
<a href="https://sa1ntsinner.github.io/rosio-site/">Site</a> ·
|
|
11
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/commands.md">Commands</a> ·
|
|
12
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/configuration.md">Configuration</a> ·
|
|
13
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/examples.md">Examples</a> ·
|
|
14
|
+
<a href="https://github.com/sa1ntsinner/rosio/blob/main/docs/assistants.md">Assistants</a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
A ROS 2 system is described four times: in launch files and yaml, in the C++ and Python
|
|
20
|
+
sources, in the running graph, and in the recordings. rosio reads all four into one atlas and
|
|
21
|
+
tells you where they disagree, with the file and line to change. There is no language model in
|
|
22
|
+
it, no network call and no API key, and two runs over the same inputs write the same bytes.
|
|
23
|
+
|
|
24
|
+
```mermaid
|
|
25
|
+
flowchart LR
|
|
26
|
+
D["declared<br/>launch, yaml, urdf, plugins"] --> A
|
|
27
|
+
C["coded<br/>C++ and Python sources"] --> A
|
|
28
|
+
O["observed<br/>a live probe"] --> A
|
|
29
|
+
R["recorded<br/>rosbag2"] --> A
|
|
30
|
+
A[("atlas.json")] --> F["drift findings<br/>file and line to edit"]
|
|
31
|
+
F --> CLI[command line and CI]
|
|
32
|
+
F --> ED[VS Code and Zed]
|
|
33
|
+
F --> AG[assistants over MCP]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Quickstart
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install "rosio[cpp,stamps,mcp]" # in an environment made with --system-site-packages
|
|
40
|
+
source /opt/ros/jazzy/setup.bash
|
|
41
|
+
cd ~/ros2_ws
|
|
42
|
+
rosio init # writes rosio.yaml, one profile per launch file
|
|
43
|
+
rosio extract # reads the workspace into rosio-out/atlas.json
|
|
44
|
+
rosio drift # what is wrong, worst first
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
On `examples/rover_ws`, a small rover with five faults planted on purpose:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ rosio drift
|
|
51
|
+
5 findings: 1 error, 0 info, 4 warn
|
|
52
|
+
error qos.incompatible /safety_stop never receives /scan_filtered
|
|
53
|
+
warn frame.not_in_urdf /scan_filter looks up laser_frame, which no robot model has
|
|
54
|
+
warn param.orphan_block block odometry owns nothing in rover
|
|
55
|
+
warn param.set_undeclared stop_distnce is set for /safety_stop and never declared
|
|
56
|
+
warn param.shadowed max_range at rover_bringup/config/rover.yaml:4 is overridden
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Each finding also carries why it is true, the line to edit, a fix and a sentence an assistant
|
|
60
|
+
can quote. `rosio param`, `rosio path` and `rosio explain` answer one question each, and
|
|
61
|
+
`rosio render` writes a report and a single file graph. Profiles, roots and every other key
|
|
62
|
+
are in [docs/configuration.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/configuration.md); installing from a checkout and the
|
|
63
|
+
full command list are in [docs/commands.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/commands.md).
|
|
64
|
+
|
|
65
|
+
## What it finds
|
|
66
|
+
|
|
67
|
+
| | |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| **Effective parameters** | The chain behind one value, winner first, every shadowed value with its file and line, through `SetParameter`, rewritten yaml and launcher scripts. |
|
|
70
|
+
| **Real names** | A code literal plus a remap plus a namespace is the topic that exists. |
|
|
71
|
+
| **Drift** | Fifty seven rules with a committed vocabulary and stable waiver keys. |
|
|
72
|
+
| **Middleware and clocks** | Mixed RMW implementations, a missing Zenoh router, and header stamps that go backwards, freeze or carry a TAI offset. |
|
|
73
|
+
| **Blind spots** | What it could not work out is listed with the raw expression, never guessed. |
|
|
74
|
+
|
|
75
|
+
## In your editor
|
|
76
|
+
|
|
77
|
+

|
|
78
|
+
|
|
79
|
+
The VS Code extension in `editors/vscode` puts findings on the line they cite, hovers show
|
|
80
|
+
every layer that states a topic, parameter or frame, and code lenses name the other end of each
|
|
81
|
+
publisher and subscription. The editor side is `rosio-lsp`, a Rust language server any LSP
|
|
82
|
+
editor can use; `editors/zed` wires it into Zed. More screenshots are in
|
|
83
|
+
[docs/examples.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/examples.md).
|
|
84
|
+
|
|
85
|
+
## With your assistant
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
rosio install claude-code # or codex, cursor, gemini-cli, copilot, aider, ...
|
|
89
|
+
rosio serve # the MCP server, over stdio
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`install` writes the skill, rules and MCP registration your assistant reads. Details, the tool
|
|
93
|
+
list and the privacy model are in [docs/assistants.md](https://github.com/sa1ntsinner/rosio/blob/main/docs/assistants.md).
|
|
94
|
+
|
|
95
|
+
## More
|
|
96
|
+
|
|
97
|
+
- [Moving to another ROS 2 release](https://github.com/sa1ntsinner/rosio/blob/main/docs/migrate.md): `rosio migrate plan --to lyrical` lists
|
|
98
|
+
what the move asks of your packages, and `verify` builds them in the target.
|
|
99
|
+
- [Handing a problem over](https://github.com/sa1ntsinner/rosio/blob/main/docs/bundle.md): `rosio bundle create` packs the atlas and the cited
|
|
100
|
+
files so someone else sees the same findings.
|
|
101
|
+
- [Timestamp faults](https://github.com/sa1ntsinner/rosio/blob/main/docs/stamps-failure-zoo.md): what `rosio stamps` detects in a recording.
|
|
102
|
+
- `AGENTS.md` is the contract, `ARCHITECTURE.md` the map, `CONTEXT.md` the vocabulary.
|
|
103
|
+
|
|
104
|
+
Developed on ROS 2 jazzy with Fast DDS and `rmw_zenoh_cpp`; CI runs jazzy and humble on
|
|
105
|
+
Python 3.10 and newer. The most useful report is a workspace or a recording rosio reads wrongly.
|
|
106
|
+
Apache-2.0.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rosio"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Four layer atlas of a ROS 2 system, with drift between the layers"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
keywords = ["ros2", "robotics", "static-analysis", "introspection", "atlas"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
22
|
+
"Topic :: Scientific/Engineering",
|
|
23
|
+
]
|
|
24
|
+
dependencies = ["pyyaml>=5.4"]
|
|
25
|
+
|
|
26
|
+
[[project.authors]]
|
|
27
|
+
name = "rosio contributors"
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
# The range stated by rosio.collect.cpp_code.TREE_SITTER_PIN, which is what the collector
|
|
31
|
+
# tells a user to install. 0.21 wants a compiled library path the collector never builds.
|
|
32
|
+
cpp = ["tree-sitter>=0.23,<0.27", "tree-sitter-cpp>=0.23,<0.24"]
|
|
33
|
+
# The server is built by passing plain functions to the mcp tool registrar, and this
|
|
34
|
+
# package uses postponed annotations, which mcp only resolves from 1.14 on. 1.13 and older
|
|
35
|
+
# raise TypeError while registering the first tool.
|
|
36
|
+
# uvicorn is imported directly by the http transport. mcp declares it too, so it arrives
|
|
37
|
+
# either way today, and a transitive dependency is not a contract.
|
|
38
|
+
mcp = ["mcp>=1.14,<3", "uvicorn>=0.31.1"]
|
|
39
|
+
viz = []
|
|
40
|
+
# The floor is the tested reader, the ceiling the next minor: reader behaviour is what the
|
|
41
|
+
# stamp checks depend on, and it must not change under a deployed robot without a test run.
|
|
42
|
+
stamps = ["rosbags>=0.11.4,<0.12"]
|
|
43
|
+
dev = ["build>=1.0", "pytest>=7.0", "pytest-cov>=4.0", "ruff>=0.5", "rosbags>=0.11.4,<0.12", "numpy"]
|
|
44
|
+
|
|
45
|
+
[project.scripts]
|
|
46
|
+
rosio = "rosio.cli:main"
|
|
47
|
+
rosio-bagmutate = "rosio.stamps.mutate:main"
|
|
48
|
+
|
|
49
|
+
[tool.hatch.build.targets.wheel]
|
|
50
|
+
packages = ["rosio"]
|
|
51
|
+
# The installer reads these at run time and the html renderer vendors those, so a wheel
|
|
52
|
+
# without them is an install that raises on every call. Declared rather than left to the
|
|
53
|
+
# default, which drops anything a future ignore rule happens to cover.
|
|
54
|
+
artifacts = [
|
|
55
|
+
"rosio/agent/templates/*.md",
|
|
56
|
+
"rosio/agent/templates/*.mdc",
|
|
57
|
+
"rosio/render/assets/*",
|
|
58
|
+
"rosio/migrate/data/*",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.build.targets.sdist]
|
|
62
|
+
include = ["/rosio", "/LICENSE", "/NOTICE", "/README.md", "/pyproject.toml"]
|
|
63
|
+
|
|
64
|
+
[tool.ruff]
|
|
65
|
+
line-length = 100
|
|
66
|
+
target-version = "py310"
|
|
67
|
+
# The example workspaces are ROS packages written the way ROS packages are written.
|
|
68
|
+
extend-exclude = ["examples"]
|
|
69
|
+
|
|
70
|
+
[tool.ruff.lint]
|
|
71
|
+
select = [
|
|
72
|
+
"E",
|
|
73
|
+
"F",
|
|
74
|
+
"W",
|
|
75
|
+
"I",
|
|
76
|
+
"N",
|
|
77
|
+
"UP",
|
|
78
|
+
"B",
|
|
79
|
+
"A",
|
|
80
|
+
"C4",
|
|
81
|
+
"SIM",
|
|
82
|
+
"PTH",
|
|
83
|
+
"RET",
|
|
84
|
+
"ARG",
|
|
85
|
+
"TID",
|
|
86
|
+
"RUF",
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
[tool.ruff.lint.per-file-ignores]
|
|
90
|
+
"tests/**" = ["ARG001", "ARG002", "ARG005"]
|
|
91
|
+
"ros/*/test/*" = ["ARG001", "ARG002", "ARG005"]
|
|
92
|
+
|
|
93
|
+
[tool.pytest.ini_options]
|
|
94
|
+
testpaths = ["tests"]
|
|
95
|
+
addopts = "-ra --strict-markers --strict-config"
|
|
96
|
+
markers = [
|
|
97
|
+
"ros: needs a sourced ROS 2 environment",
|
|
98
|
+
"cpp: needs the cpp extra (tree-sitter)",
|
|
99
|
+
"slow: takes more than a second",
|
|
100
|
+
"join_refused: expects the extract to record a refused join pass",
|
|
101
|
+
"unreadable: makes a file unreadable, which root reads anyway",
|
|
102
|
+
]
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""rosio: a four layer atlas of a ROS 2 system, and the drift between the layers."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
|
|
5
|
+
ATLAS_SCHEMA_VERSION = "1"
|
|
6
|
+
|
|
7
|
+
LAYERS = ("declared", "coded", "observed", "recorded")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def extra_line(extra: str) -> str:
|
|
11
|
+
"""How to add an optional extra, the same on every machine, because the sentence can
|
|
12
|
+
land in an atlas. rosio is installed from a checkout until it is released."""
|
|
13
|
+
return (
|
|
14
|
+
f"pip install '<checkout>[{extra}]' from a rosio checkout, "
|
|
15
|
+
f"or 'rosio[{extra}]' once released"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def extra_command(extra: str) -> str:
|
|
20
|
+
"""The line that adds an optional extra to the environment this process runs in: the
|
|
21
|
+
path rosio was installed from, and uv when uv made the environment, which has no pip."""
|
|
22
|
+
import sys
|
|
23
|
+
from pathlib import Path
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
config = (Path(sys.prefix) / "pyvenv.cfg").read_text(encoding="utf-8")
|
|
27
|
+
except OSError:
|
|
28
|
+
config = ""
|
|
29
|
+
tool = "uv pip" if any(line.startswith("uv ") for line in config.splitlines()) else "pip"
|
|
30
|
+
return f"{tool} install '{origin()}[{extra}]'"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def here(text: str) -> str:
|
|
34
|
+
"""Text an atlas stored with the machine independent install line, as this machine runs
|
|
35
|
+
it: the atlas keeps `extra_line`, the terminal shows `extra_command`."""
|
|
36
|
+
for extra in ("cpp", "mcp", "stamps"):
|
|
37
|
+
stored = extra_line(extra)
|
|
38
|
+
if stored in text:
|
|
39
|
+
text = text.replace(stored, extra_command(extra))
|
|
40
|
+
return text
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def origin() -> str:
|
|
44
|
+
"""Where rosio was installed from: the checkout path, or `rosio` for a release."""
|
|
45
|
+
import json
|
|
46
|
+
from importlib.metadata import PackageNotFoundError, distribution
|
|
47
|
+
from urllib.parse import unquote, urlparse
|
|
48
|
+
|
|
49
|
+
try:
|
|
50
|
+
url = json.loads(distribution("rosio").read_text("direct_url.json") or "{}").get("url")
|
|
51
|
+
except (PackageNotFoundError, ValueError, AttributeError):
|
|
52
|
+
url = None
|
|
53
|
+
if isinstance(url, str) and url.startswith("file://"):
|
|
54
|
+
return unquote(urlparse(url).path)
|
|
55
|
+
return "rosio"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
__all__ = [
|
|
59
|
+
"ATLAS_SCHEMA_VERSION",
|
|
60
|
+
"LAYERS",
|
|
61
|
+
"__version__",
|
|
62
|
+
"extra_command",
|
|
63
|
+
"extra_line",
|
|
64
|
+
"here",
|
|
65
|
+
"origin",
|
|
66
|
+
]
|