dart-python
GitHub提供DART Python绑定(dartpy)的开发指南,涵盖构建、测试、Wheel打包及API规范,辅助处理Python与C++混合编程任务。
Trigger Scenarios
Install
npx skills add dartsim/dart --skill dart-python -g -y
SKILL.md
Frontmatter
{
"name": "dart-python",
"description": "DART Python: dartpy bindings, nanobind, wheels, and API patterns"
}
DART Python Bindings (dartpy)
Load this skill when working with Python bindings or dartpy.
When a binding exposes or changes 3D structure or behavior, also load
dart-verify-sim: a focused Python text oracle plus an assessed claim-tied
capture, or a recorded exception when rendering is unavailable.
Full Documentation
For complete Python bindings guide: docs/onboarding/python-bindings.md
For module-specific details: python/AGENTS.md
Quick Commands
pixi run build-py-dev # Build for development
pixi run test-py # Run Python tests
pixi run generate-stubs # Generate type stubs
Wheel Building
pixi run -e py314-wheel wheel-build
pixi run -e py314-wheel wheel-repair # Linux only
pixi run -e py314-wheel wheel-test
Key Patterns
- snake_case preferred (camelCase emits DeprecationWarning)
- NumPy arrays auto-convert to Eigen types
- GUI requires
DART_BUILD_GUI=ON
Key Files
- Package config:
pyproject.toml - Build system:
python/dartpy/CMakeLists.txt - Type stubs:
python/stubs/dartpy/
Version History
-
deb9869
Current 2026-09-08 21:45
新增Quick Start代码示例,整合AI指导并改进模型升级审计流程。
-
bcd584e
2026-09-02 23:41
简化了加载 dart-verify-sim skill 的条件,从覆盖模型/场景加载等广泛领域缩减为仅针对 3D 结构或行为变更的场景。
- b9fbefc 2026-07-19 11:30


