Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
873 lines (801 loc) · 27.2 KB
/
Copy pathpyproject.toml
File metadata and controls
873 lines (801 loc) · 27.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
[build-system]
requires = [
"setuptools>=70",
"wheel",
"pybind11>=2.12",
"tomli>=2.0; python_version < '3.11'",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
# Data files (yaml/json/urdf/html/...) are attached to the top-level `dimos`
# package via [tool.setuptools.package-data] below. They are keyed to `dimos`
# (not the data file's own subpackage) and use recursive `**` globs on
# purpose: this is relative-path based and does NOT depend on every data dir
# having an __init__.py / being discovered as a package. The repo has no
# __init__.py files, so include-package-data / per-subpackage globs map data
# into the wheel only nondeterministically (this is how dimos/models/
# segmentation/configs/edgetam.yaml went missing). MANIFEST.in still governs
# the sdist; keep its recursive-include extension list in sync with the globs
# here.
include-package-data = false
[tool.setuptools.packages.find]
where = ["."]
include = ["dimos*", "experimental.gateway*"]
# Web frontends / vendored node_modules: not part of the Python runtime
# (MANIFEST.in already prunes these from the sdist; this keeps their stray
# .py modules out of the wheel too).
exclude = [
"experimental.gateway.tests*",
"dimos.agents.node_modules*",
"dimos.agents.dist*",
"dimos.web.websocket_vis.node_modules*",
]
[tool.setuptools.package-data]
# Recursive: matches the extension anywhere under dimos/. Add a line when code
# starts loading a new data type. NOTE: ".txt" is intentionally scoped (a bare
# "**/*.txt" would grab CMakeLists.txt from native build dirs).
"dimos" = [
"**/*.yaml",
"**/*.yml",
"**/*.json",
"**/*.urdf",
"**/*.html",
"**/*.css",
"**/*.js",
"**/*.svg",
"**/*.tcss",
"**/*.pyi",
"robot/galaxea/r1pro/vendor_setup.sh",
]
"experimental.gateway" = ["annotations.yaml"]
[tool.setuptools.exclude-package-data]
# Trims data the recursive globs above would otherwise pull in: test fixtures,
# the on-robot agent's Node package (it runs from a checkout) and the native
# (C++/nix) build tree, which is built separately.
"dimos" = [
"agents/node_modules/**",
"agents/dist/**",
"agents/package.json",
"agents/package-lock.json",
"agents/tsconfig.json",
"agents/.prettierrc.json",
"agents/fixtures/**",
"agents/mcp/fixtures/**",
"mapping/google_maps/fixtures/**",
"web/websocket_vis/node_modules/**",
]
[project]
name = "dimos"
authors = [
{name = "Dimensional Team", email = "build@dimensionalOS.com"},
]
version = "0.0.15"
description = "Powering agentive generalist robotics"
requires-python = ">=3.10,<3.13"
readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "Apache-2.0"}
keywords = ["robotics", "ros", "agents", "dimos", "dimensional", "openclaw", "roboclaw", "humanoid", "unitree"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Visualization",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
]
dependencies = [
"matplotlib>=3.7.1", # Rerun initializes point-cloud colormaps for all streams.
# Transport Protocols
"dimos-lcm>=0.1.6",
"lcm>=1.5.3", # the `lcm` module itself (protocol/service/lcmservice.py)
"eclipse-zenoh>=1.10.1,<2.0",
"PyTurboJPEG==1.8.2",
"imagecodecs>=2024.6.1", # JPEG-XL for CompressedImage
"jsonlines>=4,<5",
# Core
"mcap>=1.2.0", # Native recordings and memory CLI readers
"numpy>=1.26.4",
"scipy>=1.15.1",
"pin>=3.3.0", # Pinocchio IK library
"pin-pink>=4.3.0",
"qpsolvers[proxqp]>=4.12.0",
"cmeel-tinyxml2>=11,<12", # Pinocchio 4.1 requires the v11 ABI.
"reactivex",
"sortedcontainers==2.4.0",
"pydantic",
"pydantic-core", # blueprint_config, sensor_msgs/CameraInfo
"cbor2>=6.1.5,<7", # RPC and worker-pipe serialization (protocol/encode/cbor.py)
"python-dotenv",
"packaging>=24.0",
"pyyaml>=6.0", # config.yaml (experimental/gateway/shared_config.py); only transitive before, and not on Linux arm
"requests>=2.32",
"attrs>=25.4", # control/tasks
"filelock>=3.20,<4",
"annotation-protocol>=1.4.0",
"lazy_loader",
"typing_extensions>=4.7; python_version < '3.13'",
"tomli>=2.0; python_version < '3.11'", # tomllib fallback (cli/bake/discovery.py)
"plum-dispatch==2.5.7",
"GitPython>=3.1.45",
# Logging
"structlog>=25.5.0,<26",
# Core Msgs
# Contrib variant (superset of opencv-python) because cv2.legacy CSRT
# trackers (perception/drone) are contrib-only. <5 defers the OpenCV 5
# major bump. See also the opencv-python entry in override-dependencies.
"opencv-contrib-python>=4.8,<5",
"open3d-unofficial-arm>=0.19.0.post9; platform_system == 'Linux' and platform_machine == 'aarch64'",
"open3d>=0.18.0; platform_system != 'Linux' or platform_machine != 'aarch64'",
# CLI
"pydantic-settings>=2.11.0,<3",
"textual==3.7.1",
"textual-serve>=1.1.1,<2",
"terminaltexteffects==0.12.2",
"typer>=0.19.2,<1",
"keyring>=25,<26",
"ipython",
"rich>=14.3", # cli/dtop.py, cli/shell.py, memory/utils
# Used for calculating the occupancy map.
"numba>=0.60.0", # First version supporting Python 3.12
"llvmlite>=0.42.0", # Required by numba 0.60+
# TODO: rerun shouldn't be required but rn its in core (there is NO WAY to use dimos without rerun rn)
# remove this once rerun is optional in core
"rerun-sdk==0.32.0",
"dimos-viewer==0.32.0a2",
"toolz>=1.1.0",
"protobuf>=6.33.5,<7",
"psutil>=7.0.0",
# >=0.1.7: the 0.1.6 linux-aarch64 wheel shipped a 32-bit armv7 vec0.so
# (wrong ELF class), which fails to load on aarch64. Fixed from 0.1.7 on.
"sqlite-vec>=0.1.7",
"lz4>=4.4.5",
"bleak>=3.0.2",
"cryptography>=46.0.5",
# DimSim scene client (dimos/simulation/dimsim/scene_client.py) imports `websocket`
# at module load; DimSim is a non-extra-gated robot connection backend.
"websocket-client>=1.8",
"websockets>=16.0", # Rerun viewer bridge (visualization/rerun/websocket_server.py)
]
[project.scripts]
lcmspy = "dimos.cli.spy.run_spy:lcm_main"
agentspy = "dimos.cli.agentspy.agentspy:main"
humancli = "dimos.cli.human.humanclianim:main"
dimos = "dimos.cli.entry:main"
rerun-bridge = "dimos.visualization.rerun.bridge:app"
doclinks = "dimos.cli.doclinks:main"
dtop = "dimos.cli.dtop:main"
[project.urls]
Homepage = "https://dimensionalos.com"
Repository = "https://github.com/dimensionalOS/dimos"
Issues = "https://github.com/dimensionalOS/dimos/issues"
Changelog = "https://github.com/dimensionalOS/dimos/releases"
[project.optional-dependencies]
misc = [
"ipykernel",
"googlemaps>=4.10.0",
"portal",
]
spot = [
"bosdyn-client>=4.0.0",
"bosdyn-api>=4.0.0",
"bosdyn-core>=4.0.0",
]
visualization = [
"rerun-sdk==0.32.0",
"dimos-viewer==0.32.0a2",
# Rerun URDF robot visualization. yourdfpy depends on trimesh[easy],
# which pulls embreex; embreex has no Linux aarch64 wheel.
"yourdfpy>=0.0.60; sys_platform != 'linux' or platform_machine != 'aarch64'",
]
learning = [
# dimos.imitation.dataprep dataset writers (lazy-imported per format)
"mcap>=1.2", # read native collection artifacts directly
"pyarrow", # LeRobot v3.0 data/episodes parquet
"pandas", # LeRobot v3.0 tasks.parquet (task-indexed)
"h5py", # HDF5 writer
]
agents = [
"langchain>=1.2.3,<2",
"langchain-core>=1.2.22,<2",
"langchain-openai>=1,<2",
"langchain-huggingface>=1,<2",
"langchain-ollama>=1,<2",
"ollama>=0.6.0",
"openevals>=0.1", # eval scorers (LLM-as-judge etc.) — dimos/evals
"langgraph>=1.0", # agents/mcp/mcp_client.py
"httpx>=0.28", # LLM trace (agents/llm_trace.py)
# Audio
"openai",
"sounddevice",
"faster-whisper>=1.0.0",
]
web = [
"fastapi>=0.115.6",
"python-socketio>=5.16.1", # WebsocketVisModule, also imported by Quest visualization
"python-multipart>=0.0.27",
"sse-starlette>=2.2.1",
"starlette>=0.52", # McpServer request/response types
"uvicorn>=0.34.0",
"watchfiles>=1.0", # the dimos gateway's file watchers
"jinja2>=3.1.6",
"av>=16.1", # browser audio decode (stream/audio/decode.py)
"soundfile",
"aioquic>=1.2.0", # WebTransport client for the cockpit relay bridge
]
perception = [
"timm>=1.0.15", # runtime backbone for the EdgeTAM/sam2 segmentation config
"edgetam-dimos>=1.0.1",
"ultralytics>=8.3.70",
"Pillow",
"lap>=0.5.12",
"transformers[torch]>=4.53.0,<4.54",
"huggingface-hub>=0.36", # OmDet weight download (detection/detectors/omdet.py)
"safetensors>=0.8",
# Florence2 (dimos/models/vl/florence.py) loads via transformers trust_remote_code;
# its downloaded modeling file imports einops (not captured by package metadata).
"einops>=0.8.1",
"moondream",
"omegaconf>=2.3.0",
"hydra-core>=1.3.0",
"chromadb>=1.0.0", # spatial-memory vector store (dimos/perception/spatial_*)
"tokenizers>=0.21", # CLIP text tokenizer for the spatial-memory ONNX model
# SigLIP tokenizer (SiglipProcessor) requires SentencePiece; not captured by
# transformers package metadata for google/siglip-base-patch16-224.
"sentencepiece>=0.2.0",
]
unitree = [
"dimos[base,mapping]",
"unitree-webrtc-connect>=2.1.2",
]
unitree-dds = [
"dimos[unitree]",
"unitree-sdk2py-dimos>=1.0.2",
"cyclonedds>=0.10.5",
"mcap>=1.2.0", # decode Go2 DDS mcap recordings (go2 dds store)
]
# Coordinators, arm hardware adapters, and keyboard/Cartesian control.
control = [
"piper-sdk",
"xarm-python-sdk>=1.17.0",
"can-motor-control==0.0.12",
"python-can>=4",
"pygame>=2.6.1",
"xacro",
]
# Motion planning and its interactive visualization, without perception or agents.
planning = [
"dimos[control]",
"drake==1.45.0; sys_platform == 'darwin' and platform_machine != 'aarch64'",
"drake>=1.40.0; sys_platform != 'darwin' and platform_machine != 'aarch64'",
"roboplan>=0.7.0,<0.8.0",
# Mesh conversion (STL/DAE → OBJ for Drake collision geometry)
"trimesh",
"pycollada",
"viser[urdf]>=1.0.29",
"yourdfpy>=0.0.60",
"pyyaml>=6.0",
]
# Complete manipulation workflow: control, planning, perception, agents, and simulation.
manipulation = [
"dimos[planning,base,sim,cpu]",
]
cpu = [
# CPU inference backends. >=1.21 for onnxruntime.preload_dlls().
"onnxruntime>=1.21",
]
cuda = [
"cupy-cuda12x==13.6.0; platform_machine == 'x86_64'",
"onnxruntime-gpu>=1.21; platform_machine == 'x86_64'", # >=1.21 for onnxruntime.preload_dlls()
# MeshModule's marching cubes
"warp-lang>=1.13",
]
sim = [
# Simulation
"mujoco>=3.3.4",
"playground>=0.0.5",
"pygame>=2.6.1",
]
mapping = [
# PGO for reloc premap
# Jeff's https://github.com/jeff-hykin/gtsam-extended
# TODO(PY311): drop the marker. gtsam-extended has no cp310 wheels beyond
# macOS arm64 (cp310 Linux x86_64 is missing in every release).
"gtsam-extended>=4.3a1.post1; python_full_version >= '3.11' or (sys_platform == 'darwin' and platform_machine == 'arm64')",
]
# NOTE: jetson-jp6-cuda126 extra is disabled due to 404 errors from wheel URLs
# The pypi.jetson-ai-lab.io URLs are currently unavailable. Update with working URLs when available.
# jetson-jp6-cuda126 = [
# # Jetson Jetpack 6.2 with CUDA 12.6 specific wheels (aarch64 Linux only)
# "torch @ https://pypi.jetson-ai-lab.io/jp6/cu126/+f/.../torch-2.8.0-cp310-cp310-linux_aarch64.whl ; platform_machine == 'aarch64' and sys_platform == 'linux'",
# "torchvision @ https://pypi.jetson-ai-lab.io/jp6/cu126/+f/.../torchvision-0.23.0-cp310-cp310-linux_aarch64.whl ; platform_machine == 'aarch64' and sys_platform == 'linux'",
# "onnxruntime-gpu @ https://pypi.jetson-ai-lab.io/jp6/cu126/+f/.../onnxruntime_gpu-1.23.0-cp310-cp310-linux_aarch64.whl ; platform_machine == 'aarch64' and sys_platform == 'linux'",
# "xformers @ https://pypi.jetson-ai-lab.io/jp6/cu126/+f/.../xformers-0.0.33-cp39-abi3-linux_aarch64.whl ; platform_machine == 'aarch64' and sys_platform == 'linux'",
# ]
drone = [
"pymavlink"
]
dds = [
"cyclonedds>=0.10.5",
]
webrtc = [
# WebRTC DataChannel pubsub (Cloudflare Realtime SFU)
"aiortc>=1.14.0",
"aiohttp>=3.9.0",
"av>=16.1", # video frames; also the M20 camera and the Go2 DDS H264 decoder
]
base = [
"dimos[agents,web,perception,visualization]",
]
# All extras except dds and unitree-dds (which require special system setup).
apriltag = [
"reportlab>=4.5.0",
# 3D-printable tag plates (--3d). manifold3d is trimesh's boolean engine; it only
# arrives transitively via trimesh[easy], which is excluded on linux-aarch64.
"trimesh>=4.0.0",
"manifold3d>=2.5.0",
]
# Offline scene-package cooking + loading: USD import (usd-core), convex
# decomposition for collision (coacd), and mesh ops (trimesh). open3d is
# already a core dependency. The Blender visual bake is an optional external
# `blender` binary, not a wheel.
scene = [
"trimesh>=4.0.0",
"coacd>=1.0.0",
"usd-core>=23.11",
]
all = [
"dimos[apriltag,cuda,drone,manipulation,misc,scene,unitree,webrtc]",
]
[dependency-groups]
# For autofix.yml
autofix = ["ruff==0.14.3"]
# Project deps shared by `tests` and `lint`.
project-deps = [
"dimos[web,visualization,webrtc]",
# Blackwell (sm_120) needs torch 2.7 from pytorch-cu128. Cap below 2.8.
"torch>=2.1,<2.8",
"torchvision>=0.16,<0.23",
"langchain==1.2.3",
"langchain-core==1.3.3",
"googlemaps>=4.10.0",
"transformers[torch]==4.53.3",
"einops>=0.8.1", # Florence2 trust_remote_code dep (see perception extra)
"sentencepiece>=0.2.0", # SigLIP tokenizer dep (see perception extra)
"ultralytics>=8.3.70",
"hydra-core>=1.3.0",
"openai",
"moondream",
"chromadb>=1.0.0", # spatial-memory tests
"tokenizers>=0.21", # spatial-memory tests
"xacro",
"lap>=0.5.12",
"langchain-openai>=1,<2",
"ollama>=0.6.0",
# The generic Damiao whole-body adapter imports upstream types directly.
"can-motor-control==0.0.12",
]
tests = [
"dimos-cdrgen==0.1.0",
"build>=1.2.2",
# Test runner
"pytest==8.3.5",
"pytest-asyncio==1.4.0",
"pytest-mock==3.15.0",
"pytest-env==1.1.5",
"pytest-timeout==2.4.0",
"pytest-xdist>=3.5.0",
"pytest-cov>=5.0",
"pytest-error-for-skips>=2.0.2",
"pytest-rerunfailures>=15.0",
"coverage>=7.0",
"requests-mock==1.12.1",
"click>=8.3", # click.testing in cli tests
"tqdm>=4.67", # dimos/conftest.py
"traitlets>=5.14", # IPython config in rpc/sdk tests
# Misc dev tools
"pre_commit==4.2.0",
"watchdog>=3.0.0",
"md-babel-py>=1.4.0",
"py-spy",
# Builds the pyo3 Rust extension modules into the venv.
"maturin>=1.7",
# LSP
"python-lsp-server[all]==1.14.0",
"python-lsp-ruff==2.3.0",
# Deps the lint job swaps for stubs (`stubs/<pkg>/` or `types-*`):
# the real packages are needed at test time, stubs cover mypy.
"dimos[apriltag,mapping,drone,cpu,learning]",
# Scene-cooking tests need these two from the `scene` extra. The full
# extra can't be included: usd-core ships no linux-aarch64 wheel.
"coacd>=1.0.0",
"trimesh>=4.0.0",
# RoboPlan 0.7 splits its bindings into packages. The roboplan meta-package
# in the manipulation extra includes core, RRT, Cartesian and TOPPRA.
# Tests-only installs need core for native point-cloud Narrowphase queries.
"roboplan-core>=0.7.0,<0.8.0",
"mujoco>=3.3.4",
"pygame>=2.6.1",
"python-can>=4",
"unitree-webrtc-connect>=2.1.2",
"viser[urdf]>=1.0.29; sys_platform != 'linux' or platform_machine != 'aarch64'",
{include-group = "project-deps"},
]
# Drives the cockpit browser e2e (-m web_browser). Kept out of `tests`: only
# the browser jobs of the daily `e2e` workflow need the platform-specific
# Playwright package.
browser-tests = [
"playwright>=1.55",
]
# Lint / format / type-check tooling for the dedicated `lint` CI job.
lint = [
"dimos-cdrgen==0.1.0",
# Lint / format / type-check
"ruff==0.14.3",
"mypy==1.19.0",
"deptry==0.25.1",
"aiortc>=1.14.0",
"ipython",
"openai-whisper",
"pytest==8.3.5",
"python-can>=4",
"python-socketio>=5.16.1",
"roboplan>=0.7.0,<0.8.0",
"sounddevice>=0.5.5",
"trimesh>=4.12",
"watchdog>=3.0.0",
"pandas-stubs>=2.3.2.250926,<3",
"types-pyaudio",
"types-PyYAML>=6.0.12.20250915,<7",
"types-reportlab>=4.5.0",
"types-requests>=2.32.4.20260107,<3",
{include-group = "project-deps"},
]
# Full CI test group for the self-hosted runner. Inherits `tests` and adds
# the heavy ML/perception/sim extras needed for self_hosted-marked tests (LFS,
# GPU, ROS-dependent integration tests, simulation).
tests-self-hosted = [
{include-group = "tests"},
"dimos[manipulation,misc,unitree]",
# go2 dds store tests decode mcap (pure-Python). The full `unitree-dds` extra
# pulls `cyclonedds`, whose wheel needs a CycloneDDS C lib the ros-dev image
# doesn't expose to the build — and these tests never open a live DDS link.
"mcap>=1.2.0",
# Needed to compile the in-tree extensions.
"pybind11>=2.12",
"dim-odom>=0.4.1",
]
docs = [
"mkdocstrings[python]==1.0.7",
"mkdocs-awesome-nav>=3.3.0",
"mkdocs-glightbox>=0.5.2",
"mkdocs-material>=9.7.7",
"mkdocs-minify-plugin>=0.8.0",
"mkdocs-redirects>=1.2.3",
]
dev = [
"optuna>=4.9.0",
]
[tool.uv.dependency-groups]
docs = {requires-python = ">=3.11"}
[tool.uv]
required-version = ">=0.9.25"
default-groups = ["tests"]
exclude-newer = "7 days"
exclude-newer-package = { dimos-cdrgen = false, dimos-viewer = false, dimos-lcm = false, lcm = false, roboplan = false, md-babel-py = false, can-motor-control = false, edgetam-dimos = false, dim-odom = false, eclipse-zenoh = false }
constraint-dependencies = [
# TODO(PY311): drop this fork. onnxruntime(-gpu) 1.24 dropped cp310
# wheels, so 3.10 environments resolve 1.23.x (matching what a 3.10
# user installing fresh would receive).
"onnxruntime<1.24; python_full_version < '3.11'",
"onnxruntime-gpu<1.24; python_full_version < '3.11'",
]
override-dependencies = [
# Optional trimesh ray acceleration has no Linux ARM64 wheel.
"embreex; sys_platform != 'linux' or platform_machine != 'aarch64'",
# ultralytics, unitree-sdk2py-dimos and unitree-webrtc-connect depend on
# opencv-python, which ships the same cv2/ tree as our opencv-contrib-python
# core dep and clobbers it. Contrib is a superset, so never install plain.
"opencv-python; sys_platform == 'never'",
# moondream pins pillow<11 but we need >=12.2.0 for security fixes
# (CVE-2026-25990, CVE-2026-40192, CVE-2026-42311).
"pillow>=12.2.0",
"pytest==8.3.5", # because gtsam screwed up their dev dependencies
# langgraph-prebuilt>=1.0.9 imports ExecutionInfo from langgraph.runtime,
# which only exists in langgraph>=1.1; langchain==1.2.3 caps langgraph<1.1.
"langgraph-prebuilt<=1.0.8",
# opentelemetry-api>=1.39 requires importlib-metadata<8.8; without this cap
# uv picks importlib-metadata>=9 and cascades the otel stack down to 1.11.1,
# whose stale _pb2.py files crash with protobuf>=6.
"importlib-metadata<8.8.0",
# Force the torch 2.7 line even if a transitive dep asks for newer.
"torch>=2.1,<2.8",
"torchvision>=0.16,<0.23",
]
[tool.uv.sources]
# CUDA builds are not published for macOS or non-x86_64 Linux. Those platforms
# fall back to PyPI.
torch = [
{ index = "pytorch-cu128", marker = "(sys_platform == 'linux' and platform_machine == 'x86_64') or sys_platform == 'win32'" },
]
torchvision = [
{ index = "pytorch-cu128", marker = "(sys_platform == 'linux' and platform_machine == 'x86_64') or sys_platform == 'win32'" },
]
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.deptry]
# Scan source and colocated tests, accepting declarations in any extra
# or development group.
ignore = ["DEP002", "DEP004", "DEP005"]
ignore_notebooks = true
known_first_party = ["dimos"]
[tool.deptry.per_rule_ignores]
# ROS, system bindings, vendor SDKs and in-tree native builds are installed
# outside uv. Isaac imports come from the Isaac Sim application runtime;
# lcm_msgs is a legacy optional message namespace guarded by ImportError.
# Ignore both codes so installing an external package cannot change the result.
DEP001 = [
"a1z",
"a750_control",
"ament_index_python",
"builtin_interfaces",
"dimos_local_planner",
"dimos_mls_planner",
"dimos_voxel_ray_tracing",
"geometry_msgs",
"gi",
"gs_usb",
"habitat_sim",
"isaacsim",
"lcm_msgs",
"nav_msgs",
"omni",
"pyzed",
"rclpy",
"sensor_msgs",
"std_msgs",
"usb",
]
DEP003 = [
"a1z",
"a750_control",
"ament_index_python",
"builtin_interfaces",
"dimos_local_planner",
"dimos_mls_planner",
"dimos_voxel_ray_tracing",
"geometry_msgs",
"gi",
"gs_usb",
"habitat_sim",
"isaacsim",
"lcm_msgs",
"nav_msgs",
"omni",
"pyzed",
"rclpy",
"sensor_msgs",
"std_msgs",
"usb",
]
[tool.deptry.package_module_name_map]
# Keys match dependency spelling, including case, in this deptry release.
# Explicit mappings also work when an optional dependency is not installed.
bosdyn-client = "bosdyn"
drake = "pydrake"
eclipse-zenoh = "zenoh"
edgetam-dimos = "sam2"
GitPython = "git"
gtsam-extended = "gtsam"
hydra-core = "hydra"
ipython = "IPython"
openai-whisper = "whisper"
opencv-contrib-python = "cv2"
Pillow = "PIL"
pin = "pinocchio"
pin-pink = "pink"
playground = "mujoco_playground"
plum-dispatch = "plum"
python-can = "can"
python-dotenv = "dotenv"
python-socketio = "socketio"
PyTurboJPEG = "turbojpeg"
pyyaml = "yaml"
rerun-sdk = "rerun"
unitree-sdk2py-dimos = "unitree_sdk2py"
usd-core = "pxr"
warp-lang = "warp"
websocket-client = "websocket"
xarm-python-sdk = "xarm"
[tool.ruff]
line-length = 100
exclude = [
".git",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"libs",
"external",
"src"
]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
extend-select = ["E", "W", "F", "B", "UP", "N", "I", "C90", "A", "RUF", "TCH", "TID252", "D405", "D416"]
ignore = [
# TODO: All of these should be fixed, but it's easier commit autofixes first
"A001", "A002", "B008", "B017", "B019", "B024", "B026", "B904", "C901", "E402", "E501", "E721", "E722", "E741", "F811", "F821", "F821", "F821", "N801", "N802", "N803", "N806", "N817", "N999", "RUF003", "RUF009", "RUF012", "RUF034", "RUF043", "RUF059", "UP007",
# This breaks runtime type checking (both for us, and users introspecting our APIs)
"TC001", "TC002", "TC003"
]
[tool.ruff.lint.per-file-ignores]
"dimos/models/Detic/*" = ["ALL"]
# Naming needs to match the actual libraries.
"stubs/*.pyi" = ["N801", "N802", "N803", "N815", "N816", "N818"]
# Wire-protocol/manifest mirrors: model field names are the wire names
# (camelCase, pinned to the TS side by the golden fixtures).
"dimos/web/relay_bridge/protocol.py" = ["N815"]
"dimos/web/relay_bridge/manifest.py" = ["N815"]
"experimental/gateway/routes/*.py" = ["N815"]
# Polyfill module: re-exports ROS message types (with a dimos_lcm fallback).
"dimos/types/ros_polyfill.py" = ["F401"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["dimos"]
combine-as-imports = true
force-sort-within-sections = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["dimos.core.module.Module"]
[tool.mypy]
files = ["dimos/", "experimental/gateway/"]
mypy_path = "stubs/"
python_version = "3.12"
incremental = true
strict = true
warn_unused_ignores = false
untyped_calls_exclude = ["zenoh"]
explicit_package_bases = true
exclude = "^dimos/models/Detic(/|$)|.*/test_.|.*/conftest.py*"
[[tool.mypy.overrides]]
module = [
"a750_control",
"a750_control.*",
"bosdyn",
"bosdyn.*",
"builtin_interfaces.*",
"cyclonedds",
"cyclonedds.*",
"dimos_lcm.*",
"lz4",
"lz4.*",
"dimos_mls_planner",
"dimos_voxel_ray_tracing",
"etils",
"faster_whisper",
"geometry_msgs.*",
"h5py",
"h5py.*",
"mcap",
"mcap.*",
"mujoco",
"mujoco_playground.*",
"nav_msgs.*",
"openevals.*",
"pinocchio",
"pink",
"pink.*",
"piper_sdk.*",
"plum.*",
"portal",
"psutil",
"pycuda",
"pycuda.*",
"pydrake",
"pydrake.*",
"pyarrow",
"pyarrow.*",
"pyzed",
"pyzed.*",
"rclpy.*",
"reportlab",
"reportlab.*",
"sam2.*",
"scipy",
"scipy.*",
"sensor_msgs.*",
"sqlite_vec",
"std_msgs.*",
"tf2_msgs.*",
"transformers",
"transformers.*",
"turbojpeg",
"ultralytics.*",
"unitree_sdk2py.*",
"viser",
"viser.*",
"warp",
"warp.*",
"unitree_webrtc_connect.*",
"websocket",
"xarm.*",
"ament_index_python.*",
"coacd",
"open3d",
"open3d.*",
"pxr",
"pxr.*",
"trimesh",
"trimesh.*",
# dev-group only (tuning), so absent from the default sync and from CI
"optuna",
"optuna.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["pydrake", "pydrake.*"]
follow_imports = "skip"
[[tool.mypy.overrides]]
module = ["transformers", "transformers.*"]
follow_imports = "skip"
[[tool.mypy.overrides]]
module = ["pyarrow", "pyarrow.*"]
follow_imports = "skip"
[tool.pytest.ini_options]
testpaths = ["dimos", "experimental/gateway/tests"]
env = [
"GOOGLE_MAPS_API_KEY=AIzafake_google_key",
"PYTHONWARNINGS=ignore:cupyx.jit.rawkernel is experimental:FutureWarning",
]
addopts = "--dist=loadfile --durations=10 --timeout=600 --timeout-method=thread -v -ra --showlocals --cov-report=xml -p no:launch_testing -p no:launch_ros --import-mode=importlib --color=yes -m 'not (self_hosted or self_hosted_large or web_browser or bake_e2e or native_e2e)'"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
source = ["dimos"]
concurrency = ["multiprocessing", "thread"]
[tool.coverage.report]
exclude_also = [
'if TYPE_CHECKING',
'assert False',
': \.\.\.(\s*#.*)?$',
'^ +\.\.\.$',
'pytest.fail\('
]
[tool.largefiles]
max_size_kb = 75
ignore = [
"uv.lock",
# an evolved planner: one generated rust file, not hand-edited source
"dimos/navigation/local_planner/rust/src/planner.rs",
"*/uv.lock",
"*/package-lock.json",
"Cargo.lock",
"*/Cargo.lock",
"dimos/manipulation/manipulation_module.py",
"dimos/manipulation/test_roboplan.py",
"misc/DimSim/scenes/apartment/objects/manifest.json",
"misc/DimSim/src/engine.js",
# Generated golden vectors (web/shared/fixtures/gen.ts); grows per panel kind.
"web/shared/fixtures/manifests.json",
]