retriever-core 0.0.1__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 (123) hide show
  1. retriever_core-0.0.1/.gitignore +78 -0
  2. retriever_core-0.0.1/LICENSE +202 -0
  3. retriever_core-0.0.1/PKG-INFO +326 -0
  4. retriever_core-0.0.1/README.md +255 -0
  5. retriever_core-0.0.1/THIRD_PARTY_NOTICES.md +46 -0
  6. retriever_core-0.0.1/pyproject.toml +198 -0
  7. retriever_core-0.0.1/src/retriever/__init__.py +196 -0
  8. retriever_core-0.0.1/src/retriever/_internal/__init__.py +5 -0
  9. retriever_core-0.0.1/src/retriever/_internal/helpers.py +113 -0
  10. retriever_core-0.0.1/src/retriever/cli.py +718 -0
  11. retriever_core-0.0.1/src/retriever/config.py +149 -0
  12. retriever_core-0.0.1/src/retriever/context/__init__.py +6 -0
  13. retriever_core-0.0.1/src/retriever/context/client.py +118 -0
  14. retriever_core-0.0.1/src/retriever/context/config.py +61 -0
  15. retriever_core-0.0.1/src/retriever/context/flow.py +110 -0
  16. retriever_core-0.0.1/src/retriever/error.py +398 -0
  17. retriever_core-0.0.1/src/retriever/flow/__init__.py +70 -0
  18. retriever_core-0.0.1/src/retriever/flow/adapter.py +496 -0
  19. retriever_core-0.0.1/src/retriever/flow/base.py +490 -0
  20. retriever_core-0.0.1/src/retriever/flow/builder.py +1222 -0
  21. retriever_core-0.0.1/src/retriever/flow/clock.py +493 -0
  22. retriever_core-0.0.1/src/retriever/flow/config.py +231 -0
  23. retriever_core-0.0.1/src/retriever/flow/functional.py +21 -0
  24. retriever_core-0.0.1/src/retriever/flow/graph.py +530 -0
  25. retriever_core-0.0.1/src/retriever/flow/io.py +239 -0
  26. retriever_core-0.0.1/src/retriever/flow/pipeline.py +1092 -0
  27. retriever_core-0.0.1/src/retriever/flow/service.py +164 -0
  28. retriever_core-0.0.1/src/retriever/flow/sync.py +108 -0
  29. retriever_core-0.0.1/src/retriever/flow/temporal.py +424 -0
  30. retriever_core-0.0.1/src/retriever/flow/types.py +661 -0
  31. retriever_core-0.0.1/src/retriever/hub/__init__.py +167 -0
  32. retriever_core-0.0.1/src/retriever/hub/_cache.py +75 -0
  33. retriever_core-0.0.1/src/retriever/hub/_check.py +116 -0
  34. retriever_core-0.0.1/src/retriever/hub/_fetch.py +85 -0
  35. retriever_core-0.0.1/src/retriever/hub/_http.py +64 -0
  36. retriever_core-0.0.1/src/retriever/hub/_index.py +77 -0
  37. retriever_core-0.0.1/src/retriever/hub/_loader.py +454 -0
  38. retriever_core-0.0.1/src/retriever/hub/_ref.py +51 -0
  39. retriever_core-0.0.1/src/retriever/hub/_resolve.py +84 -0
  40. retriever_core-0.0.1/src/retriever/ir/__init__.py +35 -0
  41. retriever_core-0.0.1/src/retriever/ir/assets/cytoscape-dagre.min.js +8 -0
  42. retriever_core-0.0.1/src/retriever/ir/assets/cytoscape.min.js +32 -0
  43. retriever_core-0.0.1/src/retriever/ir/assets/dagre.min.js +3809 -0
  44. retriever_core-0.0.1/src/retriever/ir/core.py +805 -0
  45. retriever_core-0.0.1/src/retriever/ir/execution.py +269 -0
  46. retriever_core-0.0.1/src/retriever/ir/resources.py +242 -0
  47. retriever_core-0.0.1/src/retriever/ir/rules.py +308 -0
  48. retriever_core-0.0.1/src/retriever/ir/temporal.py +363 -0
  49. retriever_core-0.0.1/src/retriever/ir/viz.py +888 -0
  50. retriever_core-0.0.1/src/retriever/lib/__init__.py +1 -0
  51. retriever_core-0.0.1/src/retriever/lib/gym.py +97 -0
  52. retriever_core-0.0.1/src/retriever/lib/hf.py +107 -0
  53. retriever_core-0.0.1/src/retriever/lib/jax.py +192 -0
  54. retriever_core-0.0.1/src/retriever/lib/mcap.py +592 -0
  55. retriever_core-0.0.1/src/retriever/lib/rerun.py +901 -0
  56. retriever_core-0.0.1/src/retriever/lib/torch.py +130 -0
  57. retriever_core-0.0.1/src/retriever/lib/wrapper.py +80 -0
  58. retriever_core-0.0.1/src/retriever/recording.py +750 -0
  59. retriever_core-0.0.1/src/retriever/registry/__init__.py +77 -0
  60. retriever_core-0.0.1/src/retriever/registry/flow.py +262 -0
  61. retriever_core-0.0.1/src/retriever/registry/pipeline.py +676 -0
  62. retriever_core-0.0.1/src/retriever/registry/types.py +387 -0
  63. retriever_core-0.0.1/src/retriever/rt/__init__.py +29 -0
  64. retriever_core-0.0.1/src/retriever/rt/backend/__init__.py +44 -0
  65. retriever_core-0.0.1/src/retriever/rt/backend/dora/__init__.py +120 -0
  66. retriever_core-0.0.1/src/retriever/rt/backend/dora/benchmarks.py +215 -0
  67. retriever_core-0.0.1/src/retriever/rt/backend/dora/channel.py +131 -0
  68. retriever_core-0.0.1/src/retriever/rt/backend/dora/compiler.py +429 -0
  69. retriever_core-0.0.1/src/retriever/rt/backend/dora/engine.py +571 -0
  70. retriever_core-0.0.1/src/retriever/rt/backend/dora/executor.py +689 -0
  71. retriever_core-0.0.1/src/retriever/rt/backend/dora/scheduler.py +232 -0
  72. retriever_core-0.0.1/src/retriever/rt/backend/dora/serde.py +346 -0
  73. retriever_core-0.0.1/src/retriever/rt/backend/dora/telemetry.py +75 -0
  74. retriever_core-0.0.1/src/retriever/rt/backend/factory.py +166 -0
  75. retriever_core-0.0.1/src/retriever/rt/backend/in_process.py +204 -0
  76. retriever_core-0.0.1/src/retriever/rt/backend/interface.py +342 -0
  77. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/__init__.py +41 -0
  78. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/channel.py +161 -0
  79. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/engine.py +259 -0
  80. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/executor.py +420 -0
  81. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/mp_context.py +17 -0
  82. retriever_core-0.0.1/src/retriever/rt/backend/multiprocessing/scheduler.py +294 -0
  83. retriever_core-0.0.1/src/retriever/rt/buffer_engine.py +110 -0
  84. retriever_core-0.0.1/src/retriever/rt/control/__init__.py +79 -0
  85. retriever_core-0.0.1/src/retriever/rt/control/channel.py +260 -0
  86. retriever_core-0.0.1/src/retriever/rt/control/controllable.py +255 -0
  87. retriever_core-0.0.1/src/retriever/rt/control/controller.py +294 -0
  88. retriever_core-0.0.1/src/retriever/rt/control/dashboard.html +778 -0
  89. retriever_core-0.0.1/src/retriever/rt/control/keyboard.py +166 -0
  90. retriever_core-0.0.1/src/retriever/rt/control/output_capture.py +178 -0
  91. retriever_core-0.0.1/src/retriever/rt/control/web.py +384 -0
  92. retriever_core-0.0.1/src/retriever/rt/fused.py +219 -0
  93. retriever_core-0.0.1/src/retriever/rt/lifecycle.py +109 -0
  94. retriever_core-0.0.1/src/retriever/rt/logging/__init__.py +7 -0
  95. retriever_core-0.0.1/src/retriever/rt/logging/config.py +32 -0
  96. retriever_core-0.0.1/src/retriever/rt/logging/handlers/__init__.py +14 -0
  97. retriever_core-0.0.1/src/retriever/rt/logging/handlers/console.py +77 -0
  98. retriever_core-0.0.1/src/retriever/rt/logging/handlers/file.py +50 -0
  99. retriever_core-0.0.1/src/retriever/rt/logging/handlers/otel.py +92 -0
  100. retriever_core-0.0.1/src/retriever/rt/logging/manager.py +143 -0
  101. retriever_core-0.0.1/src/retriever/rt/logging/worker.py +86 -0
  102. retriever_core-0.0.1/src/retriever/rt/runtime.py +237 -0
  103. retriever_core-0.0.1/src/retriever/rt/step.py +547 -0
  104. retriever_core-0.0.1/src/retriever/rt/stepper.py +484 -0
  105. retriever_core-0.0.1/src/retriever/types/__init__.py +50 -0
  106. retriever_core-0.0.1/src/retriever/types/core.py +80 -0
  107. retriever_core-0.0.1/src/retriever/types/data/__init__.py +55 -0
  108. retriever_core-0.0.1/src/retriever/types/data/dataset.py +135 -0
  109. retriever_core-0.0.1/src/retriever/types/data/events.py +368 -0
  110. retriever_core-0.0.1/src/retriever/types/data/interop.py +185 -0
  111. retriever_core-0.0.1/src/retriever/types/data/streams.py +304 -0
  112. retriever_core-0.0.1/src/retriever/types/data/v1.py +42 -0
  113. retriever_core-0.0.1/src/retriever/types/language/__init__.py +35 -0
  114. retriever_core-0.0.1/src/retriever/types/language/v1.py +200 -0
  115. retriever_core-0.0.1/src/retriever/types/perception/__init__.py +43 -0
  116. retriever_core-0.0.1/src/retriever/types/perception/v1.py +310 -0
  117. retriever_core-0.0.1/src/retriever/types/schema.py +80 -0
  118. retriever_core-0.0.1/src/retriever/types/spatial/__init__.py +35 -0
  119. retriever_core-0.0.1/src/retriever/types/spatial/v1.py +186 -0
  120. retriever_core-0.0.1/src/retriever/types/symbolic/__init__.py +27 -0
  121. retriever_core-0.0.1/src/retriever/types/symbolic/objects.py +208 -0
  122. retriever_core-0.0.1/src/retriever/types/symbolic/options.py +126 -0
  123. retriever_core-0.0.1/src/retriever/types/symbolic/skills.py +68 -0
@@ -0,0 +1,78 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+ # Distribution
6
+ /dist/
7
+ build/
8
+ *.egg-info/
9
+
10
+ # Virtual environments
11
+ .venv/
12
+ venv/
13
+
14
+ # Testing
15
+ .pytest_cache/
16
+ .coverage
17
+
18
+ # IDEs
19
+ .vscode/
20
+ .idea/
21
+
22
+ # Lock
23
+ uv.lock
24
+
25
+ # Agent
26
+ .claude/
27
+ .specify/
28
+
29
+ # Artifacts
30
+ logs/
31
+ out/
32
+ artifacts/
33
+ _ssl/
34
+
35
+ # Rust
36
+ target/
37
+
38
+ # C++
39
+ compile_commands.json
40
+ .cache/
41
+ *.so
42
+ *.dylib
43
+ *.dll
44
+ *.o
45
+ *.a
46
+
47
+ # Data
48
+ *.mcap
49
+ TWIST2/
50
+ viz-*.html
51
+
52
+ # Private notes
53
+ docs/notes/
54
+ references/
55
+
56
+
57
+ # Public release hygiene: keep large/private/generated artifacts out of core.
58
+ /data/
59
+ /external/
60
+ /dist/
61
+ /website/
62
+ /docs/temp_notes/
63
+ /docs/reports/
64
+ /.vscode/
65
+ *.egg-info/
66
+ /site/
67
+
68
+ # Astro Starlight docs prototype
69
+ /docs-site/.astro/
70
+ /docs-site/dist/
71
+ /docs-site/node_modules/
72
+
73
+ # Cloudflare local deploy state
74
+ /.wrangler/
75
+
76
+ # Interactive graph artifacts embedded in the docs site are tracked
77
+ !docs-site/public/artifacts/
78
+ !docs-site/public/artifacts/**
@@ -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 [yyyy] [name of copyright owner]
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.
@@ -0,0 +1,326 @@
1
+ Metadata-Version: 2.4
2
+ Name: retriever-core
3
+ Version: 0.0.1
4
+ Summary: A Python programming model and runtime for closed-loop robot agents whose perception, planning, and control run at different rates.
5
+ Project-URL: Homepage, https://github.com/openretriever/retriever
6
+ Project-URL: Documentation, https://retriever.build/
7
+ Project-URL: Bug Tracker, https://github.com/openretriever/retriever/issues
8
+ Author: Linfeng Zhao
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: bilevel-planning,foundation-models,planning,robotics,skill-learning,task-and-motion-planning
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Requires-Python: >=3.11
19
+ Requires-Dist: packaging>=23
20
+ Provides-Extra: demo
21
+ Requires-Dist: matplotlib; extra == 'demo'
22
+ Requires-Dist: numpy; extra == 'demo'
23
+ Requires-Dist: opencv-python>=4.10; extra == 'demo'
24
+ Requires-Dist: pandas; extra == 'demo'
25
+ Requires-Dist: pynput; extra == 'demo'
26
+ Provides-Extra: dev
27
+ Requires-Dist: black; extra == 'dev'
28
+ Requires-Dist: lark; extra == 'dev'
29
+ Requires-Dist: mypy; extra == 'dev'
30
+ Requires-Dist: pre-commit; extra == 'dev'
31
+ Requires-Dist: pygments; extra == 'dev'
32
+ Requires-Dist: pytest-asyncio; extra == 'dev'
33
+ Requires-Dist: pytest-cov; extra == 'dev'
34
+ Requires-Dist: pytest>=7.2.2; extra == 'dev'
35
+ Requires-Dist: ruff; extra == 'dev'
36
+ Requires-Dist: twine; extra == 'dev'
37
+ Requires-Dist: typing-extensions; extra == 'dev'
38
+ Provides-Extra: docs
39
+ Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
40
+ Requires-Dist: mkdocs>=1.6; extra == 'docs'
41
+ Requires-Dist: pymdown-extensions>=10; extra == 'docs'
42
+ Provides-Extra: dora
43
+ Requires-Dist: dora-rs-cli>=0.3.12; extra == 'dora'
44
+ Requires-Dist: dora-rs>=0.3.12; extra == 'dora'
45
+ Requires-Dist: psutil; extra == 'dora'
46
+ Requires-Dist: pyarrow; extra == 'dora'
47
+ Requires-Dist: pyyaml; extra == 'dora'
48
+ Provides-Extra: jax
49
+ Requires-Dist: flax; extra == 'jax'
50
+ Requires-Dist: jax; extra == 'jax'
51
+ Requires-Dist: jaxlib; extra == 'jax'
52
+ Requires-Dist: optax; extra == 'jax'
53
+ Provides-Extra: mcp
54
+ Requires-Dist: mcp<2,>=1.25.0; extra == 'mcp'
55
+ Provides-Extra: otel
56
+ Requires-Dist: opentelemetry-api; extra == 'otel'
57
+ Requires-Dist: opentelemetry-sdk; extra == 'otel'
58
+ Requires-Dist: uptrace; extra == 'otel'
59
+ Provides-Extra: recording
60
+ Requires-Dist: mcap>=1.0.0; extra == 'recording'
61
+ Requires-Dist: numpy; extra == 'recording'
62
+ Requires-Dist: rerun-sdk<0.24,>=0.21.0; extra == 'recording'
63
+ Provides-Extra: vision
64
+ Requires-Dist: pillow; extra == 'vision'
65
+ Requires-Dist: torch>=2.0.0; extra == 'vision'
66
+ Requires-Dist: transformers; extra == 'vision'
67
+ Provides-Extra: web
68
+ Requires-Dist: fastapi; extra == 'web'
69
+ Requires-Dist: uvicorn[standard]; extra == 'web'
70
+ Description-Content-Type: text/markdown
71
+
72
+ <div align="center">
73
+
74
+ <a href="https://openretriever.org/"><img width="200" height="auto" src="assets/retriever-illustrative.jpeg" alt="Retriever logo"></a>
75
+
76
+ <br>
77
+
78
+ <a href="https://openretriever.org/"><img src="assets/retriever-wordmark.svg" alt="Retriever" width="300"></a>
79
+
80
+ ### Programming Closed-Loop Modular Robot Agents
81
+
82
+ <p>A Python programming model and runtime for robot agents whose perception, planning, and control run at different rates. You write down how often each part runs and how it handles data that arrives out of sync, so the timing lives in the graph instead of in hand-written glue code — and any run can be recorded and replayed exactly.</p>
83
+
84
+ <p>
85
+ <a href="https://retriever.build/"><img alt="Docs" src="https://img.shields.io/badge/Docs-open-0f766e?style=for-the-badge"></a>
86
+ <a href="https://openretriever.org/"><img alt="Website" src="https://img.shields.io/badge/Website-openretriever.org-111827?style=for-the-badge"></a>
87
+ <a href="https://github.com/openretriever/retriever"><img alt="Source" src="https://img.shields.io/badge/Source-GitHub-111827?style=for-the-badge&logo=github"></a>
88
+ <br>
89
+ <a href="https://golden.retriever.build/examples/"><img alt="GoldenRetriever examples" src="https://img.shields.io/badge/GoldenRetriever-examples-f97316?style=for-the-badge"></a>
90
+ <a href="https://golden.retriever.build/hub/"><img alt="Hub packs" src="https://img.shields.io/badge/Hub-packs-9333ea?style=for-the-badge"></a>
91
+ <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-3b82f6?style=for-the-badge"></a>
92
+ </p>
93
+
94
+ </div>
95
+
96
+ ---
97
+
98
+ Retriever is the **core/runtime** package for typed, multi-rate robot pipelines. Robot applications rarely run as one neat synchronous loop: cameras, state estimators, planners, VLMs, VLAs, controllers, operators, and logs all update at different rates. Retriever makes those timing boundaries explicit while keeping the authoring model close to normal Python.
99
+
100
+ Use Retriever when a robot system needs:
101
+
102
+ - **Closed loops**: perception, memory, planning, control, monitoring, and even environment wrappers can live in one cyclic graph.
103
+ - **Explicit timing**: each `Flow` declares when it runs, and each edge declares how data is sampled before `step(...)` executes.
104
+ - **Debuggable execution**: run the graph on a backend, or step it in-process with normal Python breakpoints.
105
+ - **Portable backends**: author one typed graph, then run it in-process, with multiprocessing, or on a distributed backend.
106
+ - **Reusable components**: typed payloads, registries, and Hub surfaces make robot software easier to publish and compose.
107
+
108
+ System-level robot integrations, simulator stacks, and heavier model packages belong in the maintained reference examples layer: [GoldenRetriever](https://golden.retriever.build/examples/) and Retriever Hub packs. This repository stays focused on the runtime core.
109
+
110
+ The authoring style is intentionally close to functional reactive programming: compose small stateful stream functions, make time explicit, and put the sampling rule on the edge. In day-to-day code, `.then(...)` is the fluent composition surface; `retriever.connect(...)` is the same edge written as a standalone function.
111
+
112
+ ## Canonical Runtime Workflow
113
+
114
+ ```python
115
+ from retriever import Flow, Latest, Pipeline, Rate, Trigger, io
116
+
117
+
118
+ @io
119
+ class Number:
120
+ value: int
121
+
122
+
123
+ @io
124
+ class Doubled:
125
+ value: int
126
+
127
+
128
+ class Source(Flow[None, Number]):
129
+ def __init__(self) -> None:
130
+ super().__init__()
131
+ self.count = 0
132
+
133
+ def step(self, _): # type: ignore[override]
134
+ self.count += 1
135
+ return Number(value=self.count)
136
+
137
+
138
+ class Double(Flow[Number, Doubled]):
139
+ def step(self, input: Number) -> Doubled:
140
+ return Doubled(value=input.value * 2)
141
+
142
+
143
+ pipe = Pipeline("quickstart")
144
+ with pipe:
145
+ source = Source() @ Rate(hz=2)
146
+ double = Double() @ Trigger("value")
147
+ source.then(double, sync=Latest())
148
+
149
+ pipe.run(backend="multiprocessing", duration=1.0)
150
+ ```
151
+
152
+ The important pieces are small:
153
+
154
+ - `@io` defines typed message envelopes.
155
+ - `Flow[I, O]` defines node logic.
156
+ - `flow @ clock` declares when a node runs.
157
+ - `source.then(target, sync=...)` wires a Flow-to-Flow edge in the fluent style.
158
+ - `retriever.connect(source, target, sync=...)` is the explicit equivalent when chaining is not the clearest shape.
159
+ - `Pipeline.run(...)` executes on a backend.
160
+ - `Pipeline.step(...)` runs in-process for debugging and replay.
161
+
162
+ ## Install
163
+
164
+ Use Python 3.11 or newer.
165
+
166
+ The public package target is `retriever-core`; the Python import package and executable command are both `retriever`:
167
+
168
+ ```bash
169
+ python -m pip install retriever-core
170
+ retriever --version
171
+ retriever init my-retriever-app --bootstrap-pixi
172
+ cd my-retriever-app
173
+ retriever run hello
174
+ ```
175
+
176
+ For repository demos, clone the source checkout because the example files, graph renderers, and visualization assets live in the repository. With `retriever-core` installed, run everything through the `retriever` command:
177
+
178
+ ```bash
179
+ git clone https://github.com/openretriever/retriever
180
+ cd retriever
181
+ retriever install --bootstrap-pixi
182
+ retriever run webcam-mock
183
+ retriever run webcam
184
+ ```
185
+
186
+ `retriever run webcam-mock` runs `camera -> color detector -> display` with
187
+ synthetic frames and stdout, so it works on headless machines and in agent
188
+ runs. `retriever run webcam` requests a real webcam and uses `--visualize auto`
189
+ so Rerun is used when available and stdout is used otherwise. Hold red or blue
190
+ paper/objects in front of the camera to see detections.
191
+
192
+ Useful follow-up commands from the source checkout:
193
+
194
+ ```bash
195
+ retriever run basic-flow
196
+ retriever run rt-execution
197
+ retriever run stepper
198
+ retriever run record
199
+ retriever tasks
200
+ ```
201
+
202
+ `retriever run <name>` is the stable command surface for examples and diagnostics. Curated names (`webcam-mock`, `stepper`, `record`, …) are the public path; raw repository task names still work with `retriever run <task>` as a source-checkout escape hatch.
203
+
204
+ ## Step And Checkpoint Graphs
205
+
206
+ Checkpointable graph debugging is a Python API, not a separate CLI namespace. Define the graph in Python, inspect or render its IR, then step it in-process with normal breakpoints and your own checkpoint artifact:
207
+
208
+ ```python
209
+ import json
210
+ from pathlib import Path
211
+
212
+ pipe.validate()
213
+
214
+ for i in range(10):
215
+ result = pipe.step(dt=0.1)
216
+ checkpoint = {"now": result.now, "executed": result.executed}
217
+ Path(f"checkpoint-{i:03d}.json").write_text(json.dumps(checkpoint, indent=2))
218
+
219
+ pipe.close_stepper()
220
+ ```
221
+
222
+ Python is the executable source of truth. Saved IR/HTML is the portable graph description for inspection and reproducibility; executing directly from saved IR should remain a future, versioned contract rather than the default promise.
223
+
224
+ ## Retriever Hub
225
+
226
+ Hub loads a module by name from a public repo — no clone, no checkout. Install the
227
+ runtime package plus Rerun, then run a 60-second live webcam demo in one line:
228
+
229
+ ```bash
230
+ python -m pip install "retriever-core[demo]" rerun-sdk && retriever demo webcam --seconds 60 --visualize rerun --refresh
231
+ ```
232
+
233
+ `hub.use(...)` fetches the [`openretriever/webcam-demo`](https://github.com/openretriever/webcam-demo)
234
+ pack, checks its dependencies, and drives a `Camera -> ColorDetector -> Rerun`
235
+ closed loop over your webcam with image and bounding-box overlays. Use
236
+ `--visualize stdout` for terminal-only output or `--visualize both` for Rerun plus
237
+ stdout.
238
+
239
+ Hub refs are ordinary strings: `{org}/{name}[:Export][@version]`. Use the CLI to validate the ref shape offline, inspect a module through the same loader as `hub.use(...)`, and locate the local cache:
240
+
241
+ ```bash
242
+ retriever hub parse openretriever/hello-world:HelloFlow
243
+ retriever hub inspect openretriever/hello-world --json
244
+ retriever hub cache-dir
245
+ ```
246
+
247
+ `hub inspect` may fetch from the Hub index and GitHub unless the module is already cached. Use `retriever --dry-run hub inspect <ref>` when you only want to check the ref shape without network access. In Python, load the same export with `from retriever import hub; hub.use("openretriever/hello-world:HelloFlow")`.
248
+
249
+ ## Documentation Path
250
+
251
+ The hosted Starlight docs are the public docs front door:
252
+
253
+ - [Overview](https://retriever.build/) — recommended path.
254
+ - [Install](https://retriever.build/getting-started/install/) — package target and source-checkout commands.
255
+ - [Visual Quickstart](https://retriever.build/getting-started/visual-quickstart/) — mock smoke, webcam color detection, and Rerun.
256
+ - [Examples and Results](https://retriever.build/tutorials/examples-and-results/) — commands paired with expected output.
257
+ - [Debug and Visualize](https://retriever.build/tutorials/debug-and-visualize/) — graph render, stepper, record, and replay.
258
+ - [GoldenRetriever Overview](https://golden.retriever.build/) — GoldenRetriever as the applied examples and reference-pack layer.
259
+ - [GoldenRetriever Example Catalog](https://golden.retriever.build/examples/) — applied perception, memory, language, composition, simulation, visualization, and typing guides.
260
+
261
+ The repository `docs/` tree remains available for deeper source-local reference
262
+ and release maintenance.
263
+
264
+ Source code lives at [github.com/openretriever/retriever](https://github.com/openretriever/retriever). GoldenRetriever source lives at [github.com/openretriever/golden-retriever](https://github.com/openretriever/golden-retriever), but most users should start from the hosted [GoldenRetriever example catalog](https://golden.retriever.build/examples/).
265
+
266
+ ## Runtime Surfaces
267
+
268
+ Retriever has two execution modes on purpose:
269
+
270
+ ```python
271
+ # Backend execution
272
+ pipe.run(backend="multiprocessing", duration=3.0)
273
+ pipe.run(backend="dora", duration=3.0)
274
+
275
+ # In-process debugging
276
+ result = pipe.step(dt=0.1)
277
+ print(result.executed)
278
+ pipe.close_stepper()
279
+ ```
280
+
281
+ Backend execution is for realistic scheduling, process boundaries, and deployment behavior. In-process stepping is for debugging logic, replaying incidents, and making timing bugs inspectable with normal Python tools.
282
+
283
+ ## Ecosystem Boundary
284
+
285
+ The intended public split is:
286
+
287
+ - **Core runtime**: this repository, published as `retriever-core` and imported as `retriever`.
288
+ - **GoldenRetriever examples**: [GoldenRetriever](https://golden.retriever.build/examples/) for robot-facing examples and pack candidates.
289
+ - **Project website**: [openretriever.org](https://openretriever.org/).
290
+
291
+ ## Development
292
+
293
+ Contributor tasks run through the same `retriever` command from a source
294
+ checkout:
295
+
296
+ ```bash
297
+ retriever install # set up the environment
298
+ retriever run test # full test suite
299
+ retriever run p0-release-readiness
300
+ retriever run public-surface-check # external launch check before announcing
301
+ ```
302
+
303
+ The source checkout uses [Pixi](https://pixi.sh) as its environment and task
304
+ backend, and `retriever run <task>` wraps it. For focused test subsets, run
305
+ pytest in the environment directly:
306
+
307
+ ```bash
308
+ pixi run python -m pytest tests/core/test_public_surface_rt.py -q
309
+ pixi run python -m pytest tests/core/test_hub_ref_rt.py tests/core/test_hub_check_rt.py tests/core/test_hub_loader_rt.py tests/core/test_hub_use_rt.py -q
310
+ ```
311
+
312
+ See [docs/contributing.md](docs/contributing.md) for the full development workflow.
313
+
314
+ ## Clone and Stay in Sync
315
+
316
+ ```bash
317
+ git clone https://github.com/openretriever/retriever
318
+ cd retriever
319
+ git pull # normal pulls fast-forward
320
+ ```
321
+
322
+ `main` is the canonical branch; a fresh clone and ordinary `git pull` are all you need.
323
+
324
+ ## License
325
+
326
+ Retriever is licensed under the Apache License 2.0 (`Apache-2.0`). See [LICENSE](LICENSE) for the full license text and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for bundled third-party JavaScript notices.