lucen-cli 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.
- lucen_cli-0.1.0/LICENSE +202 -0
- lucen_cli-0.1.0/PKG-INFO +113 -0
- lucen_cli-0.1.0/README.md +77 -0
- lucen_cli-0.1.0/pyproject.toml +116 -0
- lucen_cli-0.1.0/src/lucen/__init__.py +72 -0
- lucen_cli-0.1.0/src/lucen/errors.py +141 -0
- lucen_cli-0.1.0/src/lucen/hub.py +889 -0
- lucen_cli-0.1.0/src/lucen/progress.py +96 -0
- lucen_cli-0.1.0/src/lucen/py.typed +0 -0
- lucen_cli-0.1.0/src/lucen/results.py +885 -0
- lucen_cli-0.1.0/src/lucen_cli/__init__.py +3 -0
- lucen_cli-0.1.0/src/lucen_cli/checkpoint_dir.py +226 -0
- lucen_cli-0.1.0/src/lucen_cli/checkpoint_publisher.py +269 -0
- lucen_cli-0.1.0/src/lucen_cli/client.py +1730 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_auth.py +256 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_datasets.py +190 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_holds.py +76 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_hub.py +245 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_model.py +175 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_org.py +154 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_quickstart.py +320 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_repo.py +87 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_robot.py +784 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_rollout.py +576 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_runs.py +615 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_serve.py +438 -0
- lucen_cli-0.1.0/src/lucen_cli/cmd_worker.py +135 -0
- lucen_cli-0.1.0/src/lucen_cli/config.py +268 -0
- lucen_cli-0.1.0/src/lucen_cli/context.py +43 -0
- lucen_cli-0.1.0/src/lucen_cli/contract_derive.py +491 -0
- lucen_cli-0.1.0/src/lucen_cli/embodiment.py +522 -0
- lucen_cli-0.1.0/src/lucen_cli/errors.py +210 -0
- lucen_cli-0.1.0/src/lucen_cli/gate_scorer.py +168 -0
- lucen_cli-0.1.0/src/lucen_cli/group.py +104 -0
- lucen_cli-0.1.0/src/lucen_cli/hf_dataset.py +696 -0
- lucen_cli-0.1.0/src/lucen_cli/live.py +189 -0
- lucen_cli-0.1.0/src/lucen_cli/local.py +160 -0
- lucen_cli-0.1.0/src/lucen_cli/main.py +277 -0
- lucen_cli-0.1.0/src/lucen_cli/model_card.py +523 -0
- lucen_cli-0.1.0/src/lucen_cli/offscreen.py +52 -0
- lucen_cli-0.1.0/src/lucen_cli/onnx_manifest.py +121 -0
- lucen_cli-0.1.0/src/lucen_cli/onnx_writer.py +313 -0
- lucen_cli-0.1.0/src/lucen_cli/ort_quiet.py +75 -0
- lucen_cli-0.1.0/src/lucen_cli/output.py +868 -0
- lucen_cli-0.1.0/src/lucen_cli/progress.py +133 -0
- lucen_cli-0.1.0/src/lucen_cli/pull.py +158 -0
- lucen_cli-0.1.0/src/lucen_cli/push.py +384 -0
- lucen_cli-0.1.0/src/lucen_cli/rl/__init__.py +8 -0
- lucen_cli-0.1.0/src/lucen_cli/rl/ppo.py +316 -0
- lucen_cli-0.1.0/src/lucen_cli/rl/tasks.py +298 -0
- lucen_cli-0.1.0/src/lucen_cli/rl/vecenv.py +246 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/__init__.py +66 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/checks.py +1416 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/confine.py +176 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/draft.py +523 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/hf.py +218 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/hub.py +227 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/intake.py +590 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/model.py +334 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/pose.py +132 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/publish.py +197 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/refs.py +212 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/thumbnail.py +586 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/urdf.py +435 -0
- lucen_cli-0.1.0/src/lucen_cli/robot/worker.py +599 -0
- lucen_cli-0.1.0/src/lucen_cli/robot_assets.py +127 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/__init__.py +12 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/assets.py +135 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/conditions.py +486 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/contract.py +314 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/engine.py +1808 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/harness.py +201 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/obs.py +262 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/plant.py +456 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/posture.py +96 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/video.py +548 -0
- lucen_cli-0.1.0/src/lucen_cli/rollout/worker.py +505 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/__init__.py +22 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/lerobot_backend.py +337 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/msgpack_numpy.py +59 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/policy.py +276 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/server.py +474 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/session.py +142 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/stub_skill.py +264 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/vla.py +788 -0
- lucen_cli-0.1.0/src/lucen_cli/serve/worker.py +578 -0
- lucen_cli-0.1.0/src/lucen_cli/sim_words.py +55 -0
- lucen_cli-0.1.0/src/lucen_cli/state.py +237 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/__init__.py +94 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/ppo_isaac.py +914 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/ppo_mujoco.py +664 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/smolvla_lora.py +986 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/stub_ppo.py +597 -0
- lucen_cli-0.1.0/src/lucen_cli/templates/stub_skill.py +180 -0
- lucen_cli-0.1.0/src/lucen_cli/tfevents.py +323 -0
- lucen_cli-0.1.0/src/lucen_cli/training_curve.py +70 -0
- lucen_cli-0.1.0/src/lucen_cli/transfer.py +209 -0
- lucen_cli-0.1.0/src/lucen_cli/vla_manifest.py +322 -0
- lucen_cli-0.1.0/src/lucen_cli/worker.py +1433 -0
lucen_cli-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 [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.
|
lucen_cli-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lucen-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MouseMouse CLI (`lucen`): push robot data, train and sim-test policies, hand them to a robot through a consent gate
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Dist: typer>=0.20
|
|
8
|
+
Requires-Dist: rich>=14.0
|
|
9
|
+
Requires-Dist: httpx>=0.28
|
|
10
|
+
Requires-Dist: lucen-sdk>=0.1.0,<0.2
|
|
11
|
+
Requires-Dist: pyyaml>=6.0
|
|
12
|
+
Requires-Dist: huggingface-hub>=1.0,<2
|
|
13
|
+
Requires-Dist: mujoco==3.12.0 ; extra == 'rl'
|
|
14
|
+
Requires-Dist: onnxruntime==1.30.0 ; extra == 'rl'
|
|
15
|
+
Requires-Dist: numpy>=2.0,<3 ; extra == 'rl'
|
|
16
|
+
Requires-Dist: defusedxml>=0.7 ; extra == 'rl'
|
|
17
|
+
Requires-Dist: mujoco==3.12.0 ; extra == 'rollout'
|
|
18
|
+
Requires-Dist: onnxruntime==1.30.0 ; extra == 'rollout'
|
|
19
|
+
Requires-Dist: numpy>=2.0,<3 ; extra == 'rollout'
|
|
20
|
+
Requires-Dist: defusedxml>=0.7 ; extra == 'rollout'
|
|
21
|
+
Requires-Dist: onnxruntime==1.30.0 ; extra == 'serve'
|
|
22
|
+
Requires-Dist: numpy>=2.0,<3 ; extra == 'serve'
|
|
23
|
+
Requires-Dist: websockets>=14,<16 ; extra == 'serve'
|
|
24
|
+
Requires-Dist: msgpack>=1.0 ; extra == 'serve'
|
|
25
|
+
Requires-Dist: pyjwt[crypto]>=2.10 ; extra == 'serve'
|
|
26
|
+
Requires-Dist: lerobot[smolvla,peft,dataset]>=0.4,<0.7 ; extra == 'vla'
|
|
27
|
+
Requires-Python: >=3.12
|
|
28
|
+
Project-URL: Homepage, https://mousemouse.ai
|
|
29
|
+
Project-URL: Documentation, https://mousemouse.ai/docs/from-a-terminal
|
|
30
|
+
Project-URL: Repository, https://github.com/ICE-CUBA/lucen-hub
|
|
31
|
+
Provides-Extra: rl
|
|
32
|
+
Provides-Extra: rollout
|
|
33
|
+
Provides-Extra: serve
|
|
34
|
+
Provides-Extra: vla
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# `lucen-cli` — the MouseMouse command line
|
|
38
|
+
|
|
39
|
+
[MouseMouse](https://mousemouse.ai) is a hub for robots: datasets, models and
|
|
40
|
+
robot descriptions with the provenance between them, training and sim tests in
|
|
41
|
+
the cloud or on your own machine, hosted inference for the skill layer, and a
|
|
42
|
+
consent gate — a person approves before a policy reaches a robot. This package
|
|
43
|
+
is its command line, `lucen`, and its Python API, `from lucen import Hub`.
|
|
44
|
+
|
|
45
|
+
The distribution is **`lucen-cli`**; the command is **`lucen`**. The PyPI
|
|
46
|
+
project named `lucen` is an unrelated library.
|
|
47
|
+
[`mousemouse`](https://pypi.org/project/mousemouse/) is the same CLI under the
|
|
48
|
+
product's name.
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
uv tool install lucen-cli # or: pipx install lucen-cli
|
|
54
|
+
lucen version
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Extras bring the engines some commands need; everything else stays a few MB:
|
|
58
|
+
|
|
59
|
+
| Install | What it adds | Used by |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| `uv tool install "lucen-cli[rollout]"` | MuJoCo 3.12.0, ONNX Runtime | `lucen rollout` (sim tests), `lucen robot init\|validate\|publish` |
|
|
62
|
+
| `uv tool install "lucen-cli[rl]"` | the same wheels | `lucen worker run` with the built-in `ppo_mujoco` trainer |
|
|
63
|
+
| `uv tool install "lucen-cli[serve]"` | ONNX Runtime, websockets, msgpack | `lucen serve` (a hosted-endpoint server on your GPU box) |
|
|
64
|
+
| `uv tool install "lucen-cli[vla]"` | LeRobot, torch, PEFT | the `smolvla_lora` template |
|
|
65
|
+
|
|
66
|
+
A MouseMouse hub also serves its own copy of these wheels, built from the hub's
|
|
67
|
+
own commit: `curl -fsSL <hub API>/install.sh | sh -s -- cli` installs from
|
|
68
|
+
there and points the CLI at that hub.
|
|
69
|
+
|
|
70
|
+
## First steps
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
lucen auth login # asks for an API key; stores it in ~/.config/lucen/credentials (0600)
|
|
74
|
+
lucen quickstart --robot lucen/laika
|
|
75
|
+
lucen pull lucen/laika-demo ./laika-demo
|
|
76
|
+
lucen push you/my-dataset ./my-dataset --kind dataset --public
|
|
77
|
+
lucen train -f recipe.yaml --follow
|
|
78
|
+
lucen rollout you/my-policy --robot lucen/laika --battery smoke --local
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
`lucen --help` is grouped by task (get started, robots, data and models, train
|
|
82
|
+
and test, run on a robot). The key is read from `LUCEN_API_KEY` or the
|
|
83
|
+
credentials file, never from a flag; the hub from `LUCEN_API_URL` or the same
|
|
84
|
+
file. Every command has `--json`; stdout is the answer, stderr the progress.
|
|
85
|
+
|
|
86
|
+
## From Python
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from lucen import Hub
|
|
90
|
+
|
|
91
|
+
hub = Hub() # LUCEN_API_URL / LUCEN_API_KEY, else the credentials file
|
|
92
|
+
hub.pull("lucen/laika", "./laika") # every sha256 verified
|
|
93
|
+
run = hub.runs.create({"template": "ppo_mujoco", "robot": "lucen/laika"}, follow=True)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The same credentials rules, push/pull/follow code and refusal sentences as the
|
|
97
|
+
commands, as records and exceptions instead of lines and exit codes.
|
|
98
|
+
|
|
99
|
+
## Docs
|
|
100
|
+
|
|
101
|
+
- [Work from a terminal](https://mousemouse.ai/docs/from-a-terminal)
|
|
102
|
+
- [Train on your machine](https://mousemouse.ai/docs/train-on-your-machine)
|
|
103
|
+
- [Add your robot](https://mousemouse.ai/docs/add-your-robot)
|
|
104
|
+
- [The Python API](https://mousemouse.ai/docs/python)
|
|
105
|
+
- [API reference](https://mousemouse.ai/docs/api) — the CLI is a thin surface
|
|
106
|
+
over the hub's REST API, through the generated client
|
|
107
|
+
[`lucen-sdk`](https://pypi.org/project/lucen-sdk/)
|
|
108
|
+
|
|
109
|
+
The robot side of the consent gate is
|
|
110
|
+
[`lucen-device`](https://pypi.org/project/lucen-device/); the hub's tools for an
|
|
111
|
+
AI agent are [`lucen-mcp`](https://pypi.org/project/lucen-mcp/).
|
|
112
|
+
|
|
113
|
+
Apache-2.0. © 2026 Lucen Robotics.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# `lucen-cli` — the MouseMouse command line
|
|
2
|
+
|
|
3
|
+
[MouseMouse](https://mousemouse.ai) is a hub for robots: datasets, models and
|
|
4
|
+
robot descriptions with the provenance between them, training and sim tests in
|
|
5
|
+
the cloud or on your own machine, hosted inference for the skill layer, and a
|
|
6
|
+
consent gate — a person approves before a policy reaches a robot. This package
|
|
7
|
+
is its command line, `lucen`, and its Python API, `from lucen import Hub`.
|
|
8
|
+
|
|
9
|
+
The distribution is **`lucen-cli`**; the command is **`lucen`**. The PyPI
|
|
10
|
+
project named `lucen` is an unrelated library.
|
|
11
|
+
[`mousemouse`](https://pypi.org/project/mousemouse/) is the same CLI under the
|
|
12
|
+
product's name.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
uv tool install lucen-cli # or: pipx install lucen-cli
|
|
18
|
+
lucen version
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Extras bring the engines some commands need; everything else stays a few MB:
|
|
22
|
+
|
|
23
|
+
| Install | What it adds | Used by |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| `uv tool install "lucen-cli[rollout]"` | MuJoCo 3.12.0, ONNX Runtime | `lucen rollout` (sim tests), `lucen robot init\|validate\|publish` |
|
|
26
|
+
| `uv tool install "lucen-cli[rl]"` | the same wheels | `lucen worker run` with the built-in `ppo_mujoco` trainer |
|
|
27
|
+
| `uv tool install "lucen-cli[serve]"` | ONNX Runtime, websockets, msgpack | `lucen serve` (a hosted-endpoint server on your GPU box) |
|
|
28
|
+
| `uv tool install "lucen-cli[vla]"` | LeRobot, torch, PEFT | the `smolvla_lora` template |
|
|
29
|
+
|
|
30
|
+
A MouseMouse hub also serves its own copy of these wheels, built from the hub's
|
|
31
|
+
own commit: `curl -fsSL <hub API>/install.sh | sh -s -- cli` installs from
|
|
32
|
+
there and points the CLI at that hub.
|
|
33
|
+
|
|
34
|
+
## First steps
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
lucen auth login # asks for an API key; stores it in ~/.config/lucen/credentials (0600)
|
|
38
|
+
lucen quickstart --robot lucen/laika
|
|
39
|
+
lucen pull lucen/laika-demo ./laika-demo
|
|
40
|
+
lucen push you/my-dataset ./my-dataset --kind dataset --public
|
|
41
|
+
lucen train -f recipe.yaml --follow
|
|
42
|
+
lucen rollout you/my-policy --robot lucen/laika --battery smoke --local
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`lucen --help` is grouped by task (get started, robots, data and models, train
|
|
46
|
+
and test, run on a robot). The key is read from `LUCEN_API_KEY` or the
|
|
47
|
+
credentials file, never from a flag; the hub from `LUCEN_API_URL` or the same
|
|
48
|
+
file. Every command has `--json`; stdout is the answer, stderr the progress.
|
|
49
|
+
|
|
50
|
+
## From Python
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
from lucen import Hub
|
|
54
|
+
|
|
55
|
+
hub = Hub() # LUCEN_API_URL / LUCEN_API_KEY, else the credentials file
|
|
56
|
+
hub.pull("lucen/laika", "./laika") # every sha256 verified
|
|
57
|
+
run = hub.runs.create({"template": "ppo_mujoco", "robot": "lucen/laika"}, follow=True)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The same credentials rules, push/pull/follow code and refusal sentences as the
|
|
61
|
+
commands, as records and exceptions instead of lines and exit codes.
|
|
62
|
+
|
|
63
|
+
## Docs
|
|
64
|
+
|
|
65
|
+
- [Work from a terminal](https://mousemouse.ai/docs/from-a-terminal)
|
|
66
|
+
- [Train on your machine](https://mousemouse.ai/docs/train-on-your-machine)
|
|
67
|
+
- [Add your robot](https://mousemouse.ai/docs/add-your-robot)
|
|
68
|
+
- [The Python API](https://mousemouse.ai/docs/python)
|
|
69
|
+
- [API reference](https://mousemouse.ai/docs/api) — the CLI is a thin surface
|
|
70
|
+
over the hub's REST API, through the generated client
|
|
71
|
+
[`lucen-sdk`](https://pypi.org/project/lucen-sdk/)
|
|
72
|
+
|
|
73
|
+
The robot side of the consent gate is
|
|
74
|
+
[`lucen-device`](https://pypi.org/project/lucen-device/); the hub's tools for an
|
|
75
|
+
AI agent are [`lucen-mcp`](https://pypi.org/project/lucen-mcp/).
|
|
76
|
+
|
|
77
|
+
Apache-2.0. © 2026 Lucen Robotics.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "lucen-cli"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "MouseMouse CLI (`lucen`): push robot data, train and sim-test policies, hand them to a robot through a consent gate"
|
|
5
|
+
# R1: `readme`, `license`, `license-files` and `[project.urls]` are what PyPI
|
|
6
|
+
# renders; the LICENSE beside this file is Apache-2.0 verbatim (docs/DECISIONS.md "R1").
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
license = "Apache-2.0"
|
|
9
|
+
license-files = ["LICENSE"]
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"typer>=0.20",
|
|
13
|
+
"rich>=14.0",
|
|
14
|
+
# Presigned blob transfers go straight to R2 and are not an SDK concern,
|
|
15
|
+
# so the CLI streams those with httpx itself (same httpx the SDK uses).
|
|
16
|
+
"httpx>=0.28",
|
|
17
|
+
# R1: a RANGE, not a bare name. `uv build` copies this line into the wheel's
|
|
18
|
+
# Requires-Dist, where `[tool.uv.sources]` below does not reach, and PyPI has
|
|
19
|
+
# to resolve it. The generated client is 0.x, so a minor bump is its breaking
|
|
20
|
+
# signal: the CLI follows the SDK within one minor.
|
|
21
|
+
"lucen-sdk>=0.1.0,<0.2",
|
|
22
|
+
# M7-RL: `lucen runs create -f recipe.yaml`. The stub template stays stdlib
|
|
23
|
+
# only and emits its own YAML; only the recipe *reader* needs a parser.
|
|
24
|
+
"pyyaml>=6.0",
|
|
25
|
+
# H1: `lucen datasets import hf://…` reads a LeRobot dataset off the Hugging
|
|
26
|
+
# Face Hub with the Hub's own client (`hf_hub_download` for meta/info.json,
|
|
27
|
+
# `snapshot_download` for the files, resumable, HF_TOKEN / HF_HOME honoured).
|
|
28
|
+
# Pure Python plus `hf-xet` (the Hub's transfer accelerator, a small native
|
|
29
|
+
# wheel) — no numpy, no torch; the lock stays on the version the `vla` extra
|
|
30
|
+
# already resolved. Imported lazily, so `lucen --help` does not pay for it.
|
|
31
|
+
"huggingface_hub>=1.0,<2",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
# M8: `lucen rollout` runs a policy in MuJoCo on this machine. The engine is an
|
|
36
|
+
# extra so the plain CLI install (push/pull/auth) stays a few MB: MuJoCo and
|
|
37
|
+
# onnxruntime are native wheels and nothing else in the CLI needs them.
|
|
38
|
+
# uv tool install --from "./packages/cli[rollout]" --with ./packages/sdk/py lucen-cli
|
|
39
|
+
# Pinned: `mujoco` is the same 3.12.0 the browser Sim tab vendors (M9), so a
|
|
40
|
+
# model that compiles in one compiles in the other.
|
|
41
|
+
rollout = [
|
|
42
|
+
"mujoco==3.12.0",
|
|
43
|
+
"onnxruntime==1.30.0",
|
|
44
|
+
"numpy>=2.0,<3",
|
|
45
|
+
# The MJCF is user-uploaded XML: parsed with defusedxml and nothing else,
|
|
46
|
+
# on every surface that parses it in Python (docs/API.md, "Robot model").
|
|
47
|
+
"defusedxml>=0.7",
|
|
48
|
+
]
|
|
49
|
+
# M17b: `ppo_mujoco`, the built-in RL trainer — numpy PPO over MuJoCo envs.
|
|
50
|
+
# The same pins as `rollout`, on purpose: the trainer and the sim gate compile
|
|
51
|
+
# ONE plant (`lucen_cli.rollout.plant`), so an install that can train can gate
|
|
52
|
+
# what it trained. It is a separate name because "can train" and "can gate" are
|
|
53
|
+
# different promises that happen to need the same wheels today. No torch:
|
|
54
|
+
# docs/DECISIONS.md, "M17b". onnxruntime is how the trainer re-runs its own
|
|
55
|
+
# export against the trained policy before publishing it.
|
|
56
|
+
# uv tool install --from "./packages/cli[rl]" --with ./packages/sdk/py lucen-cli
|
|
57
|
+
rl = [
|
|
58
|
+
"mujoco==3.12.0",
|
|
59
|
+
"onnxruntime==1.30.0",
|
|
60
|
+
"numpy>=2.0,<3",
|
|
61
|
+
"defusedxml>=0.7",
|
|
62
|
+
]
|
|
63
|
+
# M7-RL ③: `smolvla_lora` wraps LeRobot's own trainer (`lerobot-train`) —
|
|
64
|
+
# it never reimplements SmolVLA. LeRobot pulls torch, transformers and the
|
|
65
|
+
# SmolVLM weights' loader, which is why this is an extra and why the template
|
|
66
|
+
# itself refuses to run without it, naming this install line:
|
|
67
|
+
# uv tool install --from "./packages/cli[vla]" --with ./packages/sdk/py lucen-cli
|
|
68
|
+
# `peft` is the LoRA half (`--peft.method_type=LORA`, lerobot[peft]);
|
|
69
|
+
# `dataset` is the HF `datasets` package `lerobot-train` refuses to start
|
|
70
|
+
# without (found by the M7-RL ③ smoke on lerobot 0.6.1).
|
|
71
|
+
vla = [
|
|
72
|
+
"lerobot[smolvla,peft,dataset]>=0.4,<0.7",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
# M15: `lucen serve` — a self-hosted inference endpoint speaking openpi's
|
|
76
|
+
# policy-server protocol (msgpack + numpy over a websocket). An extra for the
|
|
77
|
+
# same reason `rollout` is: onnxruntime is a native wheel a laptop that only
|
|
78
|
+
# pushes and pulls has no use for. The GPU box installs:
|
|
79
|
+
# uv tool install --from "./packages/cli[serve]" --with ./packages/sdk/py lucen-cli
|
|
80
|
+
# `websockets` >= 14 for the asyncio server API; `msgpack` is what openpi uses.
|
|
81
|
+
serve = [
|
|
82
|
+
"onnxruntime==1.30.0",
|
|
83
|
+
"numpy>=2.0,<3",
|
|
84
|
+
"websockets>=14,<16",
|
|
85
|
+
"msgpack>=1.0",
|
|
86
|
+
# M17e found this missing: `lucen_cli.serve.session` verifies session tokens
|
|
87
|
+
# (EdDSA) with PyJWT, which the workspace venv has through apps/api — so every
|
|
88
|
+
# test passed while a standalone `lucen-cli[serve]` install died at
|
|
89
|
+
# `import jwt` before it could claim anything. Same pin as the API and the driver.
|
|
90
|
+
"pyjwt[crypto]>=2.10",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[project.scripts]
|
|
94
|
+
lucen = "lucen_cli.main:app"
|
|
95
|
+
|
|
96
|
+
[project.urls]
|
|
97
|
+
Homepage = "https://mousemouse.ai"
|
|
98
|
+
Documentation = "https://mousemouse.ai/docs/from-a-terminal"
|
|
99
|
+
Repository = "https://github.com/ICE-CUBA/lucen-hub"
|
|
100
|
+
|
|
101
|
+
[build-system]
|
|
102
|
+
requires = ["uv_build>=0.9.0,<0.10.0"]
|
|
103
|
+
build-backend = "uv_build"
|
|
104
|
+
|
|
105
|
+
[tool.uv.build-backend]
|
|
106
|
+
module-name = ["lucen_cli", "lucen"]
|
|
107
|
+
|
|
108
|
+
[tool.uv]
|
|
109
|
+
# See root pyproject.toml: conda site.py breaks underscore .pth files.
|
|
110
|
+
python-preference = "only-managed"
|
|
111
|
+
|
|
112
|
+
[tool.uv.sources]
|
|
113
|
+
# In this checkout the generated client is the workspace member (packages/sdk/py);
|
|
114
|
+
# on PyPI it is `lucen-sdk` within the range above (R1). Sources never reach a
|
|
115
|
+
# built wheel, which is why the range has to be in `dependencies`.
|
|
116
|
+
lucen-sdk = { workspace = true }
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""`from lucen import Hub` — MouseMouse from a Python script.
|
|
2
|
+
|
|
3
|
+
from lucen import Hub
|
|
4
|
+
|
|
5
|
+
hub = Hub() # LUCEN_API_URL / LUCEN_API_KEY, else ~/.config/lucen/credentials
|
|
6
|
+
hub.pull("lucen/laika", "./laika") # every sha256 verified
|
|
7
|
+
hub.push("./my-dataset", "you/my-dataset", kind="dataset", public=True)
|
|
8
|
+
run = hub.runs.create({"template": "ppo_mujoco", "robot": "lucen/laika"}, follow=True)
|
|
9
|
+
gate = hub.rollouts.create(run.output_model_repo, "lucen/laika", battery="smoke", local=True)
|
|
10
|
+
print(gate.scorecard)
|
|
11
|
+
|
|
12
|
+
A thin, typed surface over the `lucen` CLI's own engine (P5): the same
|
|
13
|
+
credentials rules, the same push/pull/follow code, the same sentence for
|
|
14
|
+
every refusal — as records and exceptions instead of lines and exit codes.
|
|
15
|
+
It ships inside the `lucen-cli` distribution: installing `lucen-cli` (from
|
|
16
|
+
the hub's own index or a checkout) is all it takes.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
21
|
+
from lucen.errors import Conflict, Forbidden, HubError, HubUnreachable, NotFound, NotSignedIn
|
|
22
|
+
from lucen.hub import Hub
|
|
23
|
+
from lucen.progress import ProgressEvent
|
|
24
|
+
from lucen.results import (
|
|
25
|
+
Cell,
|
|
26
|
+
Episode,
|
|
27
|
+
Gate,
|
|
28
|
+
LogEvent,
|
|
29
|
+
Me,
|
|
30
|
+
Member,
|
|
31
|
+
Org,
|
|
32
|
+
PullResult,
|
|
33
|
+
PushResult,
|
|
34
|
+
Repo,
|
|
35
|
+
RobotDraft,
|
|
36
|
+
RobotPublishResult,
|
|
37
|
+
RobotReport,
|
|
38
|
+
Rollout,
|
|
39
|
+
Run,
|
|
40
|
+
RunEstimate,
|
|
41
|
+
RunRecommendation,
|
|
42
|
+
)
|
|
43
|
+
from lucen_cli import __version__ as __version__
|
|
44
|
+
|
|
45
|
+
__all__ = [
|
|
46
|
+
"Cell",
|
|
47
|
+
"Conflict",
|
|
48
|
+
"Episode",
|
|
49
|
+
"Forbidden",
|
|
50
|
+
"Gate",
|
|
51
|
+
"Hub",
|
|
52
|
+
"HubError",
|
|
53
|
+
"HubUnreachable",
|
|
54
|
+
"LogEvent",
|
|
55
|
+
"Me",
|
|
56
|
+
"Member",
|
|
57
|
+
"NotFound",
|
|
58
|
+
"NotSignedIn",
|
|
59
|
+
"Org",
|
|
60
|
+
"ProgressEvent",
|
|
61
|
+
"PullResult",
|
|
62
|
+
"PushResult",
|
|
63
|
+
"Repo",
|
|
64
|
+
"RobotDraft",
|
|
65
|
+
"RobotPublishResult",
|
|
66
|
+
"RobotReport",
|
|
67
|
+
"Rollout",
|
|
68
|
+
"Run",
|
|
69
|
+
"RunEstimate",
|
|
70
|
+
"RunRecommendation",
|
|
71
|
+
"__version__",
|
|
72
|
+
]
|