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