debim 0.2.2__tar.gz → 0.3.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 (146) hide show
  1. {debim-0.2.2/src/debim.egg-info → debim-0.3.1}/PKG-INFO +127 -21
  2. {debim-0.2.2 → debim-0.3.1}/README.md +120 -20
  3. {debim-0.2.2 → debim-0.3.1}/pyproject.toml +11 -1
  4. debim-0.3.1/src/debim/__init__.py +8 -0
  5. debim-0.3.1/src/debim/benchmark/__init__.py +21 -0
  6. debim-0.3.1/src/debim/benchmark/cognitive.py +436 -0
  7. debim-0.3.1/src/debim/bsdd.py +331 -0
  8. debim-0.3.1/src/debim/civil/__init__.py +7 -0
  9. debim-0.3.1/src/debim/civil/alignment_sweeper.py +477 -0
  10. debim-0.3.1/src/debim/cli.py +1858 -0
  11. debim-0.3.1/src/debim/cloud/__init__.py +47 -0
  12. debim-0.3.1/src/debim/cloud/git_sync.py +264 -0
  13. debim-0.3.1/src/debim/cloud/runner.py +425 -0
  14. debim-0.3.1/src/debim/cloud/webhook.py +210 -0
  15. debim-0.3.1/src/debim/compiler.py +4800 -0
  16. {debim-0.2.2 → debim-0.3.1}/src/debim/compliance.py +269 -12
  17. {debim-0.2.2 → debim-0.3.1}/src/debim/cost.py +311 -6
  18. debim-0.3.1/src/debim/docs/__init__.py +38 -0
  19. debim-0.3.1/src/debim/docs/exemplar.py +612 -0
  20. debim-0.3.1/src/debim/docs/generator.py +1349 -0
  21. debim-0.3.1/src/debim/docs/pipeline.py +392 -0
  22. debim-0.3.1/src/debim/docs/templates/directory.html +1189 -0
  23. debim-0.3.1/src/debim/docs/thai_specs.py +257 -0
  24. debim-0.3.1/src/debim/draw/__init__.py +77 -0
  25. debim-0.3.1/src/debim/draw/dxf.py +332 -0
  26. debim-0.3.1/src/debim/draw/elevation.py +592 -0
  27. debim-0.3.1/src/debim/draw/projection.py +530 -0
  28. debim-0.3.1/src/debim/draw/renderer.py +1539 -0
  29. debim-0.3.1/src/debim/draw/section.py +551 -0
  30. debim-0.3.1/src/debim/draw/styles/sheet.css +295 -0
  31. debim-0.3.1/src/debim/draw/templates/viewer_2d.html +1016 -0
  32. debim-0.3.1/src/debim/draw/viewer_2d.py +172 -0
  33. debim-0.3.1/src/debim/modular.py +177 -0
  34. {debim-0.2.2 → debim-0.3.1}/src/debim/qto.py +1330 -69
  35. debim-0.3.1/src/debim/resolver.py +6503 -0
  36. debim-0.3.1/src/debim/schema.py +3864 -0
  37. debim-0.3.1/src/debim/schema_registry.py +228 -0
  38. debim-0.3.1/src/debim/spec/__init__.py +43 -0
  39. debim-0.3.1/src/debim/spec/audit.py +171 -0
  40. debim-0.3.1/src/debim/spec/builder.py +596 -0
  41. debim-0.3.1/src/debim/spec/docx_exporter.py +315 -0
  42. debim-0.3.1/src/debim/spec/registry.py +399 -0
  43. debim-0.3.1/src/debim/spec/schema.py +144 -0
  44. {debim-0.2.2 → debim-0.3.1}/src/debim/version.py +1 -1
  45. {debim-0.2.2 → debim-0.3.1}/src/debim/viewer.py +1951 -69
  46. {debim-0.2.2 → debim-0.3.1/src/debim.egg-info}/PKG-INFO +127 -21
  47. debim-0.3.1/src/debim.egg-info/SOURCES.txt +138 -0
  48. {debim-0.2.2 → debim-0.3.1}/src/debim.egg-info/requires.txt +7 -0
  49. debim-0.3.1/tests/test_arbitrary_profiles.py +322 -0
  50. debim-0.3.1/tests/test_arch_finishes_comprehensive.py +461 -0
  51. debim-0.3.1/tests/test_base_engine.py +156 -0
  52. debim-0.3.1/tests/test_benchmark_scalability.py +62 -0
  53. debim-0.3.1/tests/test_bsdd_validation.py +191 -0
  54. debim-0.3.1/tests/test_civil_alignment_sweep.py +296 -0
  55. debim-0.3.1/tests/test_civil_bridge_parts.py +279 -0
  56. debim-0.3.1/tests/test_civil_drainage_culvert.py +210 -0
  57. debim-0.3.1/tests/test_civil_earthworks.py +281 -0
  58. debim-0.3.1/tests/test_civil_earthworks_gabion.py +226 -0
  59. debim-0.3.1/tests/test_civil_earthworks_soil_nail.py +183 -0
  60. debim-0.3.1/tests/test_civil_infrastructure.py +258 -0
  61. debim-0.3.1/tests/test_civil_marine_berth.py +219 -0
  62. debim-0.3.1/tests/test_civil_marine_bollard.py +226 -0
  63. debim-0.3.1/tests/test_civil_marine_breakwater.py +205 -0
  64. debim-0.3.1/tests/test_civil_marine_drydock.py +196 -0
  65. debim-0.3.1/tests/test_civil_marine_facility.py +137 -0
  66. debim-0.3.1/tests/test_civil_marine_fender.py +282 -0
  67. debim-0.3.1/tests/test_civil_marine_lock.py +182 -0
  68. debim-0.3.1/tests/test_civil_marine_navaid.py +188 -0
  69. debim-0.3.1/tests/test_civil_marine_seawall.py +339 -0
  70. debim-0.3.1/tests/test_civil_railways.py +259 -0
  71. debim-0.3.1/tests/test_cloud_runner.py +296 -0
  72. debim-0.3.1/tests/test_cognitive_benchmark.py +306 -0
  73. debim-0.3.1/tests/test_composite_wall.py +129 -0
  74. debim-0.3.1/tests/test_curved_profiles.py +251 -0
  75. debim-0.3.1/tests/test_declarative_compliance.py +104 -0
  76. debim-0.3.1/tests/test_docs_cli.py +52 -0
  77. debim-0.3.1/tests/test_docs_exemplar.py +101 -0
  78. debim-0.3.1/tests/test_docs_pipeline.py +136 -0
  79. debim-0.3.1/tests/test_docs_viewer.py +99 -0
  80. debim-0.3.1/tests/test_draw_dxf.py +218 -0
  81. debim-0.3.1/tests/test_draw_elevation.py +99 -0
  82. debim-0.3.1/tests/test_draw_projection.py +241 -0
  83. debim-0.3.1/tests/test_draw_renderer.py +249 -0
  84. debim-0.3.1/tests/test_draw_section.py +140 -0
  85. debim-0.3.1/tests/test_draw_title_block.py +204 -0
  86. debim-0.3.1/tests/test_earthworks_retaining.py +223 -0
  87. debim-0.3.1/tests/test_electrical_fixtures.py +303 -0
  88. debim-0.3.1/tests/test_enclosure_skin.py +278 -0
  89. debim-0.3.1/tests/test_git_sync.py +299 -0
  90. debim-0.3.1/tests/test_hvac_distribution.py +210 -0
  91. debim-0.3.1/tests/test_ifc4_reference_certification.py +520 -0
  92. debim-0.3.1/tests/test_inclined_elements.py +131 -0
  93. debim-0.3.1/tests/test_mep_comprehensive.py +324 -0
  94. debim-0.3.1/tests/test_mep_topology.py +187 -0
  95. debim-0.3.1/tests/test_modular_manifest.py +373 -0
  96. {debim-0.2.2 → debim-0.3.1}/tests/test_roof.py +2 -0
  97. debim-0.3.1/tests/test_sanitary_fixtures.py +173 -0
  98. {debim-0.2.2 → debim-0.3.1}/tests/test_schema.py +48 -0
  99. debim-0.3.1/tests/test_schema_registry.py +144 -0
  100. debim-0.3.1/tests/test_slab_openings.py +85 -0
  101. debim-0.3.1/tests/test_spec_audit.py +204 -0
  102. debim-0.3.1/tests/test_spec_builder.py +263 -0
  103. debim-0.3.1/tests/test_spec_docx.py +88 -0
  104. debim-0.3.1/tests/test_spec_registry.py +264 -0
  105. debim-0.3.1/tests/test_split_bundle.py +250 -0
  106. debim-0.3.1/tests/test_steel_profiles.py +306 -0
  107. debim-0.3.1/tests/test_swept_revolved_solids.py +280 -0
  108. debim-0.3.1/tests/test_universal_proxy.py +349 -0
  109. debim-0.3.1/tests/test_vertical_circulation.py +235 -0
  110. {debim-0.2.2 → debim-0.3.1}/tests/test_viewer.py +75 -0
  111. debim-0.3.1/tests/test_viewer_2d.py +71 -0
  112. debim-0.2.2/src/debim/__init__.py +0 -7
  113. debim-0.2.2/src/debim/cli.py +0 -899
  114. debim-0.2.2/src/debim/compiler.py +0 -1405
  115. debim-0.2.2/src/debim/resolver.py +0 -3026
  116. debim-0.2.2/src/debim/schema.py +0 -1126
  117. debim-0.2.2/src/debim.egg-info/SOURCES.txt +0 -46
  118. {debim-0.2.2 → debim-0.3.1}/LICENSE +0 -0
  119. {debim-0.2.2 → debim-0.3.1}/setup.cfg +0 -0
  120. {debim-0.2.2 → debim-0.3.1}/src/debim/importer.py +0 -0
  121. {debim-0.2.2 → debim-0.3.1}/src/debim/mcp.py +0 -0
  122. {debim-0.2.2 → debim-0.3.1}/src/debim/scaffold.py +0 -0
  123. {debim-0.2.2 → debim-0.3.1}/src/debim.egg-info/dependency_links.txt +0 -0
  124. {debim-0.2.2 → debim-0.3.1}/src/debim.egg-info/entry_points.txt +0 -0
  125. {debim-0.2.2 → debim-0.3.1}/src/debim.egg-info/top_level.txt +0 -0
  126. {debim-0.2.2 → debim-0.3.1}/tests/test_asset_baker.py +0 -0
  127. {debim-0.2.2 → debim-0.3.1}/tests/test_cli.py +0 -0
  128. {debim-0.2.2 → debim-0.3.1}/tests/test_compiler.py +0 -0
  129. {debim-0.2.2 → debim-0.3.1}/tests/test_compliance.py +0 -0
  130. {debim-0.2.2 → debim-0.3.1}/tests/test_contemporary_thai_house.py +0 -0
  131. {debim-0.2.2 → debim-0.3.1}/tests/test_cost.py +0 -0
  132. {debim-0.2.2 → debim-0.3.1}/tests/test_diff.py +0 -0
  133. {debim-0.2.2 → debim-0.3.1}/tests/test_door_window_importer.py +0 -0
  134. {debim-0.2.2 → debim-0.3.1}/tests/test_furnishing_importer.py +0 -0
  135. {debim-0.2.2 → debim-0.3.1}/tests/test_importer.py +0 -0
  136. {debim-0.2.2 → debim-0.3.1}/tests/test_mcp.py +0 -0
  137. {debim-0.2.2 → debim-0.3.1}/tests/test_mep.py +0 -0
  138. {debim-0.2.2 → debim-0.3.1}/tests/test_mep_importer.py +0 -0
  139. {debim-0.2.2 → debim-0.3.1}/tests/test_precision_importer.py +0 -0
  140. {debim-0.2.2 → debim-0.3.1}/tests/test_qto.py +0 -0
  141. {debim-0.2.2 → debim-0.3.1}/tests/test_resolver.py +0 -0
  142. {debim-0.2.2 → debim-0.3.1}/tests/test_roof_covering_importer.py +0 -0
  143. {debim-0.2.2 → debim-0.3.1}/tests/test_scaffold.py +0 -0
  144. {debim-0.2.2 → debim-0.3.1}/tests/test_spiral_stair.py +0 -0
  145. {debim-0.2.2 → debim-0.3.1}/tests/test_steel_timber_qto.py +0 -0
  146. {debim-0.2.2 → debim-0.3.1}/tests/test_version_check.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: debim
3
- Version: 0.2.2
3
+ Version: 0.3.1
4
4
  Summary: A minimal, Git-native, declarative BIM engine & Model Context Protocol (MCP) Server for AI agents and humans.
5
5
  Author: PRIDA-TAKON
6
6
  License-Expression: MIT
@@ -20,16 +20,22 @@ Requires-Dist: pydantic>=2.7.0
20
20
  Requires-Dist: pyyaml>=6.0.1
21
21
  Requires-Dist: trimesh>=4.0.0
22
22
  Requires-Dist: numpy>=1.24.0
23
+ Requires-Dist: shapely>=2.0.0
24
+ Requires-Dist: ezdxf>=1.1.0
23
25
  Provides-Extra: mcp
24
26
  Requires-Dist: mcp<2,>=1.0.0; extra == "mcp"
25
27
  Provides-Extra: ifc
26
28
  Requires-Dist: ifcopenshell>=0.7.0; extra == "ifc"
29
+ Provides-Extra: docx
30
+ Requires-Dist: python-docx>=1.1.0; extra == "docx"
27
31
  Provides-Extra: dev
28
32
  Requires-Dist: pytest>=8.0.0; extra == "dev"
29
33
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
34
+ Requires-Dist: python-docx>=1.1.0; extra == "dev"
30
35
  Provides-Extra: all
31
36
  Requires-Dist: ifcopenshell>=0.7.0; extra == "all"
32
37
  Requires-Dist: mcp<2,>=1.0.0; extra == "all"
38
+ Requires-Dist: python-docx>=1.1.0; extra == "all"
33
39
  Dynamic: license-file
34
40
 
35
41
  <p align="center">
@@ -42,11 +48,15 @@ Dynamic: license-file
42
48
 
43
49
  <p align="center">
44
50
  <a href="https://pypi.org/project/debim/"><img src="https://img.shields.io/pypi/v/debim.svg?color=blue" alt="PyPI Version" /></a>
51
+ <a href="docs/winget.md"><img src="https://img.shields.io/badge/WinGet-debim-0078D4.svg?logo=windows&logoColor=white" alt="WinGet Package" /></a>
52
+ <a href="https://github.com/PRIDA-TAKON/homebrew-debim"><img src="https://img.shields.io/badge/Homebrew-debim-FBB040.svg?logo=homebrew&logoColor=white" alt="Homebrew Tap" /></a>
53
+ <a href="https://glama.ai/mcp/servers/PRIDA-TAKON/debim"><img src="https://glama.ai/mcp/servers/PRIDA-TAKON/debim/badges/score.svg" alt="Glama MCP Server Score" /></a>
45
54
  <a href="#-model-context-protocol-mcp-server"><img src="https://img.shields.io/badge/MCP-FastMCP%20Server-purple.svg?logo=anthropic" alt="MCP Server" /></a>
55
+ <a href="https://github.com/PRIDA-TAKON/debim/pkgs/container/debim"><img src="https://img.shields.io/badge/Docker-GHCR%20Image-2496ED.svg?logo=docker&logoColor=white" alt="Docker GHCR" /></a>
46
56
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
47
57
  <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="Python: 3.11+" /></a>
48
58
  <a href="https://technical.buildingsmart.org/"><img src="https://img.shields.io/badge/BIM-IFC4--Minimal-brightgreen.svg" alt="BIM: IFC4" /></a>
49
- <a href="tests/"><img src="https://img.shields.io/badge/tests-149%20passed-success.svg" alt="Tests: 149 Passed" /></a>
59
+ <a href="tests/"><img src="https://img.shields.io/badge/tests-454%20passed-success.svg" alt="Tests: 454 Passed" /></a>
50
60
  <a href="https://www.kaggle.com/code/pridatakon/debim-3d-visual-balanced-benchmark"><img src="https://img.shields.io/badge/visual%20fidelity-85.5%25%20median-brightgreen.svg" alt="Visual Fidelity: 85.5% Median" /></a>
51
61
  <a href="https://prida-takon.github.io/debim/"><img src="https://img.shields.io/badge/Live%203D%20Demo-Interactive%20Viewer-2ea44f.svg?logo=three.js" alt="Live 3D Demo" /></a>
52
62
  </p>
@@ -164,22 +174,104 @@ debim mcp
164
174
 
165
175
  ### 1. Installation
166
176
 
167
- Install directly from **[PyPI](https://pypi.org/project/debim/)**:
177
+ `debim` is officially available on **[PyPI](https://pypi.org/project/debim/)** and requires **Python 3.11+**.
178
+
179
+ Choose your operating system and preferred terminal:
180
+
181
+ #### 🪟 Windows (PowerShell / Command Prompt)
182
+
183
+ ```powershell
184
+ # Option A: Windows Package Manager (Zero-Python / One-Click Native Install)
185
+ winget install debim
186
+
187
+ # Option B: Isolated CLI (Recommended via pipx or uv)
188
+ pipx install "debim[all]"
189
+ # or: uv tool install "debim[all]"
190
+
191
+ # Option C: Standard pip
192
+ python -m pip install --upgrade pip
193
+ pip install "debim[all]"
194
+
195
+ # Verify installation
196
+ debim --help
197
+ ```
198
+
199
+ #### 🍎 macOS (Terminal / zsh)
168
200
 
169
201
  ```bash
170
- # Standard installation
171
- pip install debim
202
+ # Option A: Native Homebrew Tap (Recommended on macOS)
203
+ brew install PRIDA-TAKON/debim/debim
204
+
205
+ # Option B: Isolated CLI (via pipx)
206
+ brew install pipx
207
+ pipx ensurepath
208
+ pipx install "debim[all]"
209
+
210
+ # Option C: uv tool
211
+ uv tool install "debim[all]"
212
+
213
+ # Option D: Virtual Environment
214
+ python3 -m venv .venv
215
+ source .venv/bin/activate
216
+ pip install "debim[all]"
217
+
218
+ # Verify installation
219
+ debim --help
220
+ ```
221
+
222
+ #### 🐧 Linux (Ubuntu / Debian / Fedora / Arch)
223
+
224
+ ```bash
225
+ # Option A: Isolated CLI (Recommended on Ubuntu 23.04+ / Debian 12+)
226
+ sudo apt update && sudo apt install -y python3-pip python3-venv pipx
227
+ pipx ensurepath
228
+ pipx install "debim[all]"
229
+
230
+ # Option B: Virtual Environment
231
+ python3 -m venv .venv
232
+ source .venv/bin/activate
233
+ pip install "debim[all]"
234
+
235
+ # Option C: uv tool
236
+ uv tool install "debim[all]"
237
+
238
+ # Verify installation
239
+ debim --help
240
+ ```
241
+
242
+ #### 📦 Package Extras Summary
243
+
244
+ | Package Target | Command | Included Capabilities |
245
+ |---|---|---|
246
+ | **Core** | `pip install debim` | Fast CLI, Declarative YAML engine, 3D WebGL viewer generator, QTO & Costing |
247
+ | **All (Recommended)** | `pip install "debim[all]"` | Full suite: Core + IFC4 Compiler (`ifcopenshell`) + FastMCP Server |
248
+ | **IFC only** | `pip install "debim[ifc]"` | Core + buildingSMART IFC4 compiler |
249
+ | **MCP only** | `pip install "debim[mcp]"` | Core + Model Context Protocol server for Claude / Cursor |
250
+
251
+ #### 🐳 Docker Container (Zero-Install & Sandbox)
252
+
253
+ If you prefer not to install Python locally or want to run `debim` in an isolated sandbox for AI agents:
254
+
255
+ ```bash
256
+ # Pull official pre-built image from GitHub Container Registry (GHCR)
257
+ docker pull ghcr.io/prida-takon/debim:latest
258
+
259
+ # Run debim MCP Server over stdio for AI Agents / Claude Desktop
260
+ docker run -i --rm ghcr.io/prida-takon/debim:latest
261
+
262
+ # Or execute CLI commands in your current directory
263
+ docker run --rm -v "${PWD}:/workspace" -w /workspace ghcr.io/prida-takon/debim:latest debim --help
172
264
 
173
- # Or with full IFC compiler support
174
- pip install "debim[ifc]"
265
+ # Alternatively, build the container image locally from source
266
+ docker build -t debim .
175
267
  ```
176
268
 
177
- Or install in editable mode from source:
269
+ #### 🛠️ Install from Source (Development)
178
270
 
179
271
  ```bash
180
272
  git clone https://github.com/PRIDA-TAKON/debim.git
181
273
  cd debim
182
- pip install -e ".[ifc,dev]"
274
+ pip install -e ".[all,dev]"
183
275
  ```
184
276
 
185
277
  ### 2. Basic Commands
@@ -323,17 +415,20 @@ Evaluating blind 3D geometric fidelity against ground-truth IFC models using **G
323
415
 
324
416
  #### 📈 Progression Across Waves:
325
417
 
326
- | Global Metric | V1 (Baseline) | V2 (Wave 1-2) | V3 (Latest Wave 4) | Cumulative Improvement |
418
+ | Global Metric | V1 (Baseline) | V2 (Wave 1-2) | V3 (Round 3 / Latest) | Cumulative Improvement |
327
419
  |---|:---:|:---:|:---:|:---:|
328
420
  | **🎯 Median Visual Match** | 80.90% | 84.90% | **85.50%** | 🏆 **+4.60% (Exceeded 85%)** |
329
- | **⚖️ Macro Average Visual Match** | 70.57% | 77.60% | **77.71%** | 🟢 **+7.13%** |
330
- | **📊 Micro Average Visual Match** | 72.24% | 80.35% | **80.46%** | 🟢 **+8.23%** |
331
- | **Passing Elements ($\ge 85\%$)** | 2,865 | 3,140 | **3,135** | 🟢 **+270 elements** |
421
+ | **⚖️ Macro Average Visual Match** | 70.57% | 77.60% | **77.71%** | 🟢 **+7.14%** |
422
+ | **📊 Micro Average Visual Match** | 72.24% | 80.35% | **80.46%** | 🟢 **+8.22%** |
423
+ | **Passing Elements ($\ge 85\%$)** | 2,865 | 3,140 | **3,135 (66.8%)** | 🟢 **+270 elements** |
332
424
  | **Top Performing Disciplines** | | | | |
333
- | • *Ceilings (`IfcCovering`)* | 11.4% | 89.0% | **89.0%** | 🟢 **+77.6% (Passing)** |
334
- | • *Valves & Piping (`IfcValve`)* | 0.0% | 82.2% | **82.4%** | 🟢 **+82.4% (Zero-shot lift)** |
335
- | • *Structural Plates (`IfcPlate`)* | 10.2% | 88.9% | **87.1%** | 🟢 **+76.9% (Passing)** |
336
- | • *Bracing Members (`IfcMember`)* | 91.8% | 91.6% | **92.4%** | 🟢 **+0.8% (3D Vector Pitch)** |
425
+ | • *Cable Trays (`IfcCableCarrierSegment`)* | - | - | **99.1%** | 🏆 **Near-perfect alignment** |
426
+ | • *Structural Beams (`IfcBeam`)* | 92.1% | 94.5% | **95.0%** | 🟢 **Grade-A+ Framing** |
427
+ | • *Bracing Members (`IfcMember`)* | 91.8% | 91.6% | **94.2%** | 🟢 **+2.4% (3D Vector Pitch)** |
428
+ | • *Railings (`IfcRailing`)* | 85.0% | 91.2% | **93.0%** | 🟢 **+8.0% (Passing)** |
429
+ | • *Structural Plates (`IfcPlate`)* | 10.2% | 88.9% | **87.8%** | 🟢 **+77.6% (Passing)** |
430
+ | • *Ceilings (`IfcCovering`)* | 11.4% | 89.0% | **86.4%** | 🟢 **+75.0% (Passing)** |
431
+ | • *Valves & Piping (`IfcValve`)* | 0.0% | 82.2% | **81.9%** | 🟢 **+81.9% (Zero-shot lift)** |
337
432
 
338
433
  👉 *Want to inspect raw visual data or reproduce tests yourself? Explore the full dataset and code on the [Kaggle Benchmark Notebook](https://www.kaggle.com/code/pridatakon/debim-3d-visual-balanced-benchmark).*
339
434
 
@@ -343,10 +438,21 @@ Evaluating blind 3D geometric fidelity against ground-truth IFC models using **G
343
438
 
344
439
  Rigorously benchmarked against **407 real-world projects** across architectural, structural, and complex hospital MEP domains:
345
440
 
346
- - **100.0% Median Retention Rate:** Extract and re-compile back to standard IFC4 without element loss.
347
- - **91.6% Average Storage Reduction:** Compresses raw IFC files by an average of 91%.
348
- - **558M+ LLM Tokens Saved:** Prevented **558,629,804 tokens** from cluttering agent context windows.
349
- - **100.0% Modern Schema Crash-Resilience:** Zero fatal crashes or unhandled exceptions across standard IFC2X3 and IFC4 datasets.
441
+ - **🎯 100.0% Median Retention Rate:** Extract and re-compile back to standard IFC4 without element loss.
442
+ - **📊 85.0% Mean Retention Rate:** +26.1% retention gain across diverse real-world models (up from 58.9% in Round 1).
443
+ - **📦 88.4% Average Storage Reduction:** Compresses raw IFC files by an average of 88.4% into compact declarative YAML.
444
+ - **⚡ 558M+ LLM Tokens Saved:** Prevented **558,629,804 tokens** from cluttering agent context windows.
445
+ - **🛡️ 100.0% Modern Schema Crash-Resilience:** Zero fatal crashes or unhandled exceptions across standard IFC2X3, IFC4, and IFC4X3 datasets.
446
+
447
+ #### 📈 Round 1 vs. Round 2 Stress Test Evolution:
448
+
449
+ | Key Performance Indicator | Round 1 Baseline (192 Models) | Round 2 Enhanced (407 Models) | Improvement / Evolution |
450
+ |---|:---:|:---:|:---|
451
+ | **Total Models Evaluated** | 192 models | **407 models** | 📈 **+112% (Scaled 2.1x dataset)** |
452
+ | **🎯 Median Element Retention** | 79.0% | **100.0%** | 🏆 **+21.0% (Reached 100%)** |
453
+ | **📊 Mean Element Retention** | 58.9% | **85.0%** | 🟢 **+26.1% retention gain** |
454
+ | **📦 Mean Storage Compression** | 94.0% | **88.4%** | High-fidelity declarative YAML |
455
+ | **🛡️ Modern Schema Crash-Resilience** | 100.0% | **100.0%** | Zero fatal crashes on IFC2X3, IFC4, IFC4X3 |
350
456
 
351
457
  📖 **Read Full Research Paper:** [debim: An Empirical Study of Declarative Building-as-Code on 407 Heterogeneous Real-World OpenBIM Models](docs/research/2026_empirical_study_407_ifc_models.md)
352
458
  📦 **Kaggle Public Benchmark Dataset:** [debim-5000-ifc-benchmark](https://www.kaggle.com/datasets/pridatakon/debim-5000-ifc-benchmark)
@@ -8,11 +8,15 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://pypi.org/project/debim/"><img src="https://img.shields.io/pypi/v/debim.svg?color=blue" alt="PyPI Version" /></a>
11
+ <a href="docs/winget.md"><img src="https://img.shields.io/badge/WinGet-debim-0078D4.svg?logo=windows&logoColor=white" alt="WinGet Package" /></a>
12
+ <a href="https://github.com/PRIDA-TAKON/homebrew-debim"><img src="https://img.shields.io/badge/Homebrew-debim-FBB040.svg?logo=homebrew&logoColor=white" alt="Homebrew Tap" /></a>
13
+ <a href="https://glama.ai/mcp/servers/PRIDA-TAKON/debim"><img src="https://glama.ai/mcp/servers/PRIDA-TAKON/debim/badges/score.svg" alt="Glama MCP Server Score" /></a>
11
14
  <a href="#-model-context-protocol-mcp-server"><img src="https://img.shields.io/badge/MCP-FastMCP%20Server-purple.svg?logo=anthropic" alt="MCP Server" /></a>
15
+ <a href="https://github.com/PRIDA-TAKON/debim/pkgs/container/debim"><img src="https://img.shields.io/badge/Docker-GHCR%20Image-2496ED.svg?logo=docker&logoColor=white" alt="Docker GHCR" /></a>
12
16
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
13
17
  <a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="Python: 3.11+" /></a>
14
18
  <a href="https://technical.buildingsmart.org/"><img src="https://img.shields.io/badge/BIM-IFC4--Minimal-brightgreen.svg" alt="BIM: IFC4" /></a>
15
- <a href="tests/"><img src="https://img.shields.io/badge/tests-149%20passed-success.svg" alt="Tests: 149 Passed" /></a>
19
+ <a href="tests/"><img src="https://img.shields.io/badge/tests-454%20passed-success.svg" alt="Tests: 454 Passed" /></a>
16
20
  <a href="https://www.kaggle.com/code/pridatakon/debim-3d-visual-balanced-benchmark"><img src="https://img.shields.io/badge/visual%20fidelity-85.5%25%20median-brightgreen.svg" alt="Visual Fidelity: 85.5% Median" /></a>
17
21
  <a href="https://prida-takon.github.io/debim/"><img src="https://img.shields.io/badge/Live%203D%20Demo-Interactive%20Viewer-2ea44f.svg?logo=three.js" alt="Live 3D Demo" /></a>
18
22
  </p>
@@ -130,22 +134,104 @@ debim mcp
130
134
 
131
135
  ### 1. Installation
132
136
 
133
- Install directly from **[PyPI](https://pypi.org/project/debim/)**:
137
+ `debim` is officially available on **[PyPI](https://pypi.org/project/debim/)** and requires **Python 3.11+**.
138
+
139
+ Choose your operating system and preferred terminal:
140
+
141
+ #### 🪟 Windows (PowerShell / Command Prompt)
142
+
143
+ ```powershell
144
+ # Option A: Windows Package Manager (Zero-Python / One-Click Native Install)
145
+ winget install debim
146
+
147
+ # Option B: Isolated CLI (Recommended via pipx or uv)
148
+ pipx install "debim[all]"
149
+ # or: uv tool install "debim[all]"
150
+
151
+ # Option C: Standard pip
152
+ python -m pip install --upgrade pip
153
+ pip install "debim[all]"
154
+
155
+ # Verify installation
156
+ debim --help
157
+ ```
158
+
159
+ #### 🍎 macOS (Terminal / zsh)
134
160
 
135
161
  ```bash
136
- # Standard installation
137
- pip install debim
162
+ # Option A: Native Homebrew Tap (Recommended on macOS)
163
+ brew install PRIDA-TAKON/debim/debim
164
+
165
+ # Option B: Isolated CLI (via pipx)
166
+ brew install pipx
167
+ pipx ensurepath
168
+ pipx install "debim[all]"
169
+
170
+ # Option C: uv tool
171
+ uv tool install "debim[all]"
172
+
173
+ # Option D: Virtual Environment
174
+ python3 -m venv .venv
175
+ source .venv/bin/activate
176
+ pip install "debim[all]"
177
+
178
+ # Verify installation
179
+ debim --help
180
+ ```
181
+
182
+ #### 🐧 Linux (Ubuntu / Debian / Fedora / Arch)
183
+
184
+ ```bash
185
+ # Option A: Isolated CLI (Recommended on Ubuntu 23.04+ / Debian 12+)
186
+ sudo apt update && sudo apt install -y python3-pip python3-venv pipx
187
+ pipx ensurepath
188
+ pipx install "debim[all]"
189
+
190
+ # Option B: Virtual Environment
191
+ python3 -m venv .venv
192
+ source .venv/bin/activate
193
+ pip install "debim[all]"
194
+
195
+ # Option C: uv tool
196
+ uv tool install "debim[all]"
197
+
198
+ # Verify installation
199
+ debim --help
200
+ ```
201
+
202
+ #### 📦 Package Extras Summary
203
+
204
+ | Package Target | Command | Included Capabilities |
205
+ |---|---|---|
206
+ | **Core** | `pip install debim` | Fast CLI, Declarative YAML engine, 3D WebGL viewer generator, QTO & Costing |
207
+ | **All (Recommended)** | `pip install "debim[all]"` | Full suite: Core + IFC4 Compiler (`ifcopenshell`) + FastMCP Server |
208
+ | **IFC only** | `pip install "debim[ifc]"` | Core + buildingSMART IFC4 compiler |
209
+ | **MCP only** | `pip install "debim[mcp]"` | Core + Model Context Protocol server for Claude / Cursor |
210
+
211
+ #### 🐳 Docker Container (Zero-Install & Sandbox)
212
+
213
+ If you prefer not to install Python locally or want to run `debim` in an isolated sandbox for AI agents:
214
+
215
+ ```bash
216
+ # Pull official pre-built image from GitHub Container Registry (GHCR)
217
+ docker pull ghcr.io/prida-takon/debim:latest
218
+
219
+ # Run debim MCP Server over stdio for AI Agents / Claude Desktop
220
+ docker run -i --rm ghcr.io/prida-takon/debim:latest
221
+
222
+ # Or execute CLI commands in your current directory
223
+ docker run --rm -v "${PWD}:/workspace" -w /workspace ghcr.io/prida-takon/debim:latest debim --help
138
224
 
139
- # Or with full IFC compiler support
140
- pip install "debim[ifc]"
225
+ # Alternatively, build the container image locally from source
226
+ docker build -t debim .
141
227
  ```
142
228
 
143
- Or install in editable mode from source:
229
+ #### 🛠️ Install from Source (Development)
144
230
 
145
231
  ```bash
146
232
  git clone https://github.com/PRIDA-TAKON/debim.git
147
233
  cd debim
148
- pip install -e ".[ifc,dev]"
234
+ pip install -e ".[all,dev]"
149
235
  ```
150
236
 
151
237
  ### 2. Basic Commands
@@ -289,17 +375,20 @@ Evaluating blind 3D geometric fidelity against ground-truth IFC models using **G
289
375
 
290
376
  #### 📈 Progression Across Waves:
291
377
 
292
- | Global Metric | V1 (Baseline) | V2 (Wave 1-2) | V3 (Latest Wave 4) | Cumulative Improvement |
378
+ | Global Metric | V1 (Baseline) | V2 (Wave 1-2) | V3 (Round 3 / Latest) | Cumulative Improvement |
293
379
  |---|:---:|:---:|:---:|:---:|
294
380
  | **🎯 Median Visual Match** | 80.90% | 84.90% | **85.50%** | 🏆 **+4.60% (Exceeded 85%)** |
295
- | **⚖️ Macro Average Visual Match** | 70.57% | 77.60% | **77.71%** | 🟢 **+7.13%** |
296
- | **📊 Micro Average Visual Match** | 72.24% | 80.35% | **80.46%** | 🟢 **+8.23%** |
297
- | **Passing Elements ($\ge 85\%$)** | 2,865 | 3,140 | **3,135** | 🟢 **+270 elements** |
381
+ | **⚖️ Macro Average Visual Match** | 70.57% | 77.60% | **77.71%** | 🟢 **+7.14%** |
382
+ | **📊 Micro Average Visual Match** | 72.24% | 80.35% | **80.46%** | 🟢 **+8.22%** |
383
+ | **Passing Elements ($\ge 85\%$)** | 2,865 | 3,140 | **3,135 (66.8%)** | 🟢 **+270 elements** |
298
384
  | **Top Performing Disciplines** | | | | |
299
- | • *Ceilings (`IfcCovering`)* | 11.4% | 89.0% | **89.0%** | 🟢 **+77.6% (Passing)** |
300
- | • *Valves & Piping (`IfcValve`)* | 0.0% | 82.2% | **82.4%** | 🟢 **+82.4% (Zero-shot lift)** |
301
- | • *Structural Plates (`IfcPlate`)* | 10.2% | 88.9% | **87.1%** | 🟢 **+76.9% (Passing)** |
302
- | • *Bracing Members (`IfcMember`)* | 91.8% | 91.6% | **92.4%** | 🟢 **+0.8% (3D Vector Pitch)** |
385
+ | • *Cable Trays (`IfcCableCarrierSegment`)* | - | - | **99.1%** | 🏆 **Near-perfect alignment** |
386
+ | • *Structural Beams (`IfcBeam`)* | 92.1% | 94.5% | **95.0%** | 🟢 **Grade-A+ Framing** |
387
+ | • *Bracing Members (`IfcMember`)* | 91.8% | 91.6% | **94.2%** | 🟢 **+2.4% (3D Vector Pitch)** |
388
+ | • *Railings (`IfcRailing`)* | 85.0% | 91.2% | **93.0%** | 🟢 **+8.0% (Passing)** |
389
+ | • *Structural Plates (`IfcPlate`)* | 10.2% | 88.9% | **87.8%** | 🟢 **+77.6% (Passing)** |
390
+ | • *Ceilings (`IfcCovering`)* | 11.4% | 89.0% | **86.4%** | 🟢 **+75.0% (Passing)** |
391
+ | • *Valves & Piping (`IfcValve`)* | 0.0% | 82.2% | **81.9%** | 🟢 **+81.9% (Zero-shot lift)** |
303
392
 
304
393
  👉 *Want to inspect raw visual data or reproduce tests yourself? Explore the full dataset and code on the [Kaggle Benchmark Notebook](https://www.kaggle.com/code/pridatakon/debim-3d-visual-balanced-benchmark).*
305
394
 
@@ -309,10 +398,21 @@ Evaluating blind 3D geometric fidelity against ground-truth IFC models using **G
309
398
 
310
399
  Rigorously benchmarked against **407 real-world projects** across architectural, structural, and complex hospital MEP domains:
311
400
 
312
- - **100.0% Median Retention Rate:** Extract and re-compile back to standard IFC4 without element loss.
313
- - **91.6% Average Storage Reduction:** Compresses raw IFC files by an average of 91%.
314
- - **558M+ LLM Tokens Saved:** Prevented **558,629,804 tokens** from cluttering agent context windows.
315
- - **100.0% Modern Schema Crash-Resilience:** Zero fatal crashes or unhandled exceptions across standard IFC2X3 and IFC4 datasets.
401
+ - **🎯 100.0% Median Retention Rate:** Extract and re-compile back to standard IFC4 without element loss.
402
+ - **📊 85.0% Mean Retention Rate:** +26.1% retention gain across diverse real-world models (up from 58.9% in Round 1).
403
+ - **📦 88.4% Average Storage Reduction:** Compresses raw IFC files by an average of 88.4% into compact declarative YAML.
404
+ - **⚡ 558M+ LLM Tokens Saved:** Prevented **558,629,804 tokens** from cluttering agent context windows.
405
+ - **🛡️ 100.0% Modern Schema Crash-Resilience:** Zero fatal crashes or unhandled exceptions across standard IFC2X3, IFC4, and IFC4X3 datasets.
406
+
407
+ #### 📈 Round 1 vs. Round 2 Stress Test Evolution:
408
+
409
+ | Key Performance Indicator | Round 1 Baseline (192 Models) | Round 2 Enhanced (407 Models) | Improvement / Evolution |
410
+ |---|:---:|:---:|:---|
411
+ | **Total Models Evaluated** | 192 models | **407 models** | 📈 **+112% (Scaled 2.1x dataset)** |
412
+ | **🎯 Median Element Retention** | 79.0% | **100.0%** | 🏆 **+21.0% (Reached 100%)** |
413
+ | **📊 Mean Element Retention** | 58.9% | **85.0%** | 🟢 **+26.1% retention gain** |
414
+ | **📦 Mean Storage Compression** | 94.0% | **88.4%** | High-fidelity declarative YAML |
415
+ | **🛡️ Modern Schema Crash-Resilience** | 100.0% | **100.0%** | Zero fatal crashes on IFC2X3, IFC4, IFC4X3 |
316
416
 
317
417
  📖 **Read Full Research Paper:** [debim: An Empirical Study of Declarative Building-as-Code on 407 Heterogeneous Real-World OpenBIM Models](docs/research/2026_empirical_study_407_ifc_models.md)
318
418
  📦 **Kaggle Public Benchmark Dataset:** [debim-5000-ifc-benchmark](https://www.kaggle.com/datasets/pridatakon/debim-5000-ifc-benchmark)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "debim"
7
- version = "0.2.2"
7
+ version = "0.3.1"
8
8
  description = "A minimal, Git-native, declarative BIM engine & Model Context Protocol (MCP) Server for AI agents and humans."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -29,6 +29,8 @@ dependencies = [
29
29
  "pyyaml>=6.0.1",
30
30
  "trimesh>=4.0.0",
31
31
  "numpy>=1.24.0",
32
+ "shapely>=2.0.0",
33
+ "ezdxf>=1.1.0",
32
34
  ]
33
35
 
34
36
  [project.optional-dependencies]
@@ -38,13 +40,18 @@ mcp = [
38
40
  ifc = [
39
41
  "ifcopenshell>=0.7.0",
40
42
  ]
43
+ docx = [
44
+ "python-docx>=1.1.0",
45
+ ]
41
46
  dev = [
42
47
  "pytest>=8.0.0",
43
48
  "pytest-cov>=4.0.0",
49
+ "python-docx>=1.1.0",
44
50
  ]
45
51
  all = [
46
52
  "ifcopenshell>=0.7.0",
47
53
  "mcp>=1.0.0,<2",
54
+ "python-docx>=1.1.0",
48
55
  ]
49
56
 
50
57
  [project.scripts]
@@ -54,6 +61,9 @@ bim = "debim.cli:app"
54
61
  [tool.setuptools.packages.find]
55
62
  where = ["src"]
56
63
 
64
+ [tool.setuptools.package-data]
65
+ debim = ["*.html", "*.css", "**/templates/*.html", "**/styles/*.css"]
66
+
57
67
  [tool.pytest.ini_options]
58
68
  testpaths = ["tests"]
59
69
  python_files = ["test_*.py"]
@@ -0,0 +1,8 @@
1
+ """
2
+ debim: Minimal Declarative BIM (Building-as-Code)
3
+ """
4
+
5
+ from debim.version import __version__
6
+ from debim.modular import bundle_manifest, split_manifest
7
+
8
+ __all__ = ["__version__", "bundle_manifest", "split_manifest"]
@@ -0,0 +1,21 @@
1
+ """
2
+ Round-Trip Cognitive Regression Benchmark Engine for debim.
3
+ Measures 2D architectural blueprint clarity and benchmarks AI Vision models
4
+ as autonomous architectural assistants.
5
+ """
6
+
7
+ from debim.benchmark.cognitive import (
8
+ CognitiveBenchmarkEngine,
9
+ CognitiveBenchmarkResult,
10
+ generate_json_report,
11
+ generate_markdown_report,
12
+ run_cognitive_benchmark,
13
+ )
14
+
15
+ __all__ = [
16
+ "CognitiveBenchmarkEngine",
17
+ "CognitiveBenchmarkResult",
18
+ "generate_json_report",
19
+ "generate_markdown_report",
20
+ "run_cognitive_benchmark",
21
+ ]