Spaces:
Sleeping
Sleeping
File size: 4,836 Bytes
5f38e95 4935703 d43322a 1f10b7b 52db224 5f38e95 3dd67c5 5f38e95 3dd67c5 5f38e95 3dd67c5 5f38e95 | 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 | [build-system]
requires = ["hatchling>=1.21"]
build-backend = "hatchling.build"
[project]
name = "cdpr"
version = "0.1.0.dev0"
description = "Hybrid physics-driven and data-driven computational framework for Cable-Driven Parallel Robots."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
authors = [{ name = "M. J. Tachia (Joseph Mfeuter)" }]
keywords = ["cable-driven parallel robot", "cdpr", "robotics", "tension distribution", "workspace", "physics-informed neural networks"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
dependencies = [
"numpy>=1.24",
"scipy>=1.11",
"sympy>=1.12",
]
[project.optional-dependencies]
viz = [
"matplotlib>=3.8",
"pillow>=10.0", # GIF export
]
viz-extras = [ # optional richer 3D / web visualisation
"plotly>=5.18",
"pyvista>=0.43",
]
learn = [
"torch>=2.2",
"gymnasium>=0.29",
]
rl = [
"cdpr[learn]",
"stable-baselines3>=2.3",
]
data = [
"pandas>=2.1",
"openpyxl>=3.1",
]
api = [
"fastapi>=0.110",
"uvicorn>=0.29",
"pydantic>=2.6",
]
gui = [
"streamlit>=1.32",
]
gradio = [
# Alternative hosted-GUI stack; recommended for the public demo URL.
# See docs/frontend-architecture.md for the architectural rationale.
"gradio>=4.40",
]
dash = [
# Recommended local research dashboard. Plotly figures, callback model,
# no script reruns --- structurally a better fit for this workload
# than Streamlit. See docs/frontend-architecture-revised.md.
"dash>=2.17",
"plotly>=5.22",
]
llm = [
# cdpr.llm runs on stdlib alone. These optional deps just polish
# things: httpx for proper connection reuse on hot paths, dotenv so
# .env is auto-loaded.
"python-dotenv>=1.0",
"httpx>=0.27",
]
storage = [
"supabase>=2.4",
]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"hypothesis>=6.100",
"ruff>=0.4",
"mypy>=1.10",
"httpx>=0.27", # FastAPI TestClient
]
adapters-mujoco = ["mujoco>=3.1"]
adapters-pybullet = ["pybullet>=3.2"]
# Inlined rather than self-referenced as `cdpr[viz,viz-extras,...]`:
# Poetry-based installers (Streamlit Community Cloud) treat the
# self-reference as a circular dependency and refuse to install.
all = [
# viz
"matplotlib>=3.8",
"pillow>=10.0",
# viz-extras
"plotly>=5.18",
"pyvista>=0.43",
# learn
"torch>=2.2",
"gymnasium>=0.29",
# rl
"stable-baselines3>=2.3",
# data
"pandas>=2.1",
"openpyxl>=3.1",
# api
"fastapi>=0.110",
"uvicorn>=0.29",
"pydantic>=2.6",
# gui
"streamlit>=1.32",
# storage
"supabase>=2.4",
# dev
"pytest>=8.0",
"pytest-cov>=5.0",
"hypothesis>=6.100",
"ruff>=0.4",
"mypy>=1.10",
"httpx>=0.27",
]
[project.urls]
Homepage = "https://github.com/Tachia/cdpr_simulator"
Repository = "https://github.com/Tachia/cdpr_simulator"
Issues = "https://github.com/Tachia/cdpr_simulator/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/cdpr"]
[tool.hatch.build.targets.sdist]
include = ["src/", "tests/", "README.md", "LICENSE", "pyproject.toml"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = ["-ra", "--strict-markers", "--strict-config"]
testpaths = ["tests"]
markers = [
"slow: marks tests that exercise full dynamic integration",
"numerical: marks tests sensitive to floating-point tolerances",
]
[tool.coverage.run]
source = ["cdpr"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "F", "W", # pyflakes / pycodestyle
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # bugbear
"SIM", # simplify
"NPY", # numpy-specific
"RUF", # ruff-specific
]
ignore = [
"E741", # ambiguous names (l, I, O) — common in robotics math
"N803", # argument name doesn't match snake_case (we use single capitals for matrices)
"N806", # variable in function should be lowercase (M, J, R, T are conventional)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unreachable = true
warn_redundant_casts = true
plugins = []
[[tool.mypy.overrides]]
module = ["scipy.*", "sympy.*", "pyvista.*", "plotly.*"]
ignore_missing_imports = true
|