bimora-open-source 0.1.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 (82) hide show
  1. bimora_open_source-0.1.0/.gitignore +175 -0
  2. bimora_open_source-0.1.0/CHANGELOG.md +38 -0
  3. bimora_open_source-0.1.0/CODE_OF_CONDUCT.md +30 -0
  4. bimora_open_source-0.1.0/CONTRIBUTING.md +52 -0
  5. bimora_open_source-0.1.0/LICENSE +21 -0
  6. bimora_open_source-0.1.0/PKG-INFO +179 -0
  7. bimora_open_source-0.1.0/README.md +140 -0
  8. bimora_open_source-0.1.0/ROADMAP.md +43 -0
  9. bimora_open_source-0.1.0/SECURITY.md +33 -0
  10. bimora_open_source-0.1.0/docs/cli.md +50 -0
  11. bimora_open_source-0.1.0/docs/comparison.md +29 -0
  12. bimora_open_source-0.1.0/docs/development.md +48 -0
  13. bimora_open_source-0.1.0/docs/examples.md +27 -0
  14. bimora_open_source-0.1.0/docs/first-contribution.md +60 -0
  15. bimora_open_source-0.1.0/docs/getting-started.md +66 -0
  16. bimora_open_source-0.1.0/docs/ifc-processing.md +45 -0
  17. bimora_open_source-0.1.0/docs/index.md +35 -0
  18. bimora_open_source-0.1.0/docs/interoperability.md +88 -0
  19. bimora_open_source-0.1.0/docs/python-api.md +53 -0
  20. bimora_open_source-0.1.0/docs/release-notes-v0.1.0.md +40 -0
  21. bimora_open_source-0.1.0/docs/releasing.md +33 -0
  22. bimora_open_source-0.1.0/docs/spatial.md +31 -0
  23. bimora_open_source-0.1.0/docs/validation.md +64 -0
  24. bimora_open_source-0.1.0/examples/README.md +33 -0
  25. bimora_open_source-0.1.0/examples/mapping.json +13 -0
  26. bimora_open_source-0.1.0/examples/pavilion-ifc2x3-imperial.ifc +404 -0
  27. bimora_open_source-0.1.0/examples/pavilion-ifc4-incomplete.ifc +267 -0
  28. bimora_open_source-0.1.0/examples/pavilion-ifc4-revision-b.ifc +255 -0
  29. bimora_open_source-0.1.0/examples/pavilion-ifc4.ifc +266 -0
  30. bimora_open_source-0.1.0/examples/pavilion-issues-bcf21.bcf +0 -0
  31. bimora_open_source-0.1.0/examples/scripts/check_requirements.py +45 -0
  32. bimora_open_source-0.1.0/examples/scripts/revision_report.py +56 -0
  33. bimora_open_source-0.1.0/examples/scripts/room_schedule.py +48 -0
  34. bimora_open_source-0.1.0/examples/validation-config.toml +21 -0
  35. bimora_open_source-0.1.0/pyproject.toml +110 -0
  36. bimora_open_source-0.1.0/scripts/check_dist.py +88 -0
  37. bimora_open_source-0.1.0/scripts/generate_bcf_example.py +98 -0
  38. bimora_open_source-0.1.0/scripts/generate_examples.py +444 -0
  39. bimora_open_source-0.1.0/src/bimora/__init__.py +72 -0
  40. bimora_open_source-0.1.0/src/bimora/api.py +99 -0
  41. bimora_open_source-0.1.0/src/bimora/cli.py +474 -0
  42. bimora_open_source-0.1.0/src/bimora/errors.py +31 -0
  43. bimora_open_source-0.1.0/src/bimora/ifc/__init__.py +1 -0
  44. bimora_open_source-0.1.0/src/bimora/ifc/extract.py +377 -0
  45. bimora_open_source-0.1.0/src/bimora/ifc/loader.py +146 -0
  46. bimora_open_source-0.1.0/src/bimora/ifc/model.py +124 -0
  47. bimora_open_source-0.1.0/src/bimora/ifc/units.py +127 -0
  48. bimora_open_source-0.1.0/src/bimora/interoperability/__init__.py +1 -0
  49. bimora_open_source-0.1.0/src/bimora/interoperability/bcf.py +189 -0
  50. bimora_open_source-0.1.0/src/bimora/interoperability/compare.py +204 -0
  51. bimora_open_source-0.1.0/src/bimora/interoperability/csv_export.py +157 -0
  52. bimora_open_source-0.1.0/src/bimora/interoperability/identifiers.py +63 -0
  53. bimora_open_source-0.1.0/src/bimora/interoperability/json_export.py +65 -0
  54. bimora_open_source-0.1.0/src/bimora/interoperability/manifest.py +100 -0
  55. bimora_open_source-0.1.0/src/bimora/interoperability/mapping.py +152 -0
  56. bimora_open_source-0.1.0/src/bimora/py.typed +0 -0
  57. bimora_open_source-0.1.0/src/bimora/reporting/__init__.py +1 -0
  58. bimora_open_source-0.1.0/src/bimora/reporting/report.py +97 -0
  59. bimora_open_source-0.1.0/src/bimora/schemas/__init__.py +1 -0
  60. bimora_open_source-0.1.0/src/bimora/schemas/asset-manifest.schema.json +29 -0
  61. bimora_open_source-0.1.0/src/bimora/schemas/model.schema.json +97 -0
  62. bimora_open_source-0.1.0/src/bimora/spatial/__init__.py +1 -0
  63. bimora_open_source-0.1.0/src/bimora/spatial/analysis.py +192 -0
  64. bimora_open_source-0.1.0/src/bimora/spatial/units.py +109 -0
  65. bimora_open_source-0.1.0/src/bimora/validation/__init__.py +1 -0
  66. bimora_open_source-0.1.0/src/bimora/validation/config.py +114 -0
  67. bimora_open_source-0.1.0/src/bimora/validation/engine.py +398 -0
  68. bimora_open_source-0.1.0/tests/__init__.py +0 -0
  69. bimora_open_source-0.1.0/tests/conftest.py +57 -0
  70. bimora_open_source-0.1.0/tests/test_api.py +82 -0
  71. bimora_open_source-0.1.0/tests/test_cli.py +195 -0
  72. bimora_open_source-0.1.0/tests/test_compare.py +64 -0
  73. bimora_open_source-0.1.0/tests/test_docs.py +91 -0
  74. bimora_open_source-0.1.0/tests/test_examples.py +61 -0
  75. bimora_open_source-0.1.0/tests/test_extract.py +135 -0
  76. bimora_open_source-0.1.0/tests/test_extract_variants.py +209 -0
  77. bimora_open_source-0.1.0/tests/test_interoperability.py +345 -0
  78. bimora_open_source-0.1.0/tests/test_loader.py +105 -0
  79. bimora_open_source-0.1.0/tests/test_release_fixes.py +123 -0
  80. bimora_open_source-0.1.0/tests/test_spatial.py +85 -0
  81. bimora_open_source-0.1.0/tests/test_units.py +47 -0
  82. bimora_open_source-0.1.0/tests/test_validation.py +166 -0
@@ -0,0 +1,175 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ lerna-debug.log*
8
+
9
+ # Diagnostic reports (https://nodejs.org/api/report.html)
10
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11
+
12
+ # Runtime data
13
+ pids
14
+ *.pid
15
+ *.seed
16
+ *.pid.lock
17
+
18
+ # Directory for instrumented libs generated by jscoverage/JSCover
19
+ lib-cov
20
+
21
+ # Coverage directory used by tools like istanbul
22
+ coverage
23
+ *.lcov
24
+
25
+ # nyc test coverage
26
+ .nyc_output
27
+
28
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29
+ .grunt
30
+
31
+ # Bower dependency directory (https://bower.io/)
32
+ bower_components
33
+
34
+ # node-waf configuration
35
+ .lock-wscript
36
+
37
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
38
+ build/Release
39
+
40
+ # Dependency directories
41
+ node_modules/
42
+ jspm_packages/
43
+
44
+ # Snowpack dependency directory (https://snowpack.dev/)
45
+ web_modules/
46
+
47
+ # TypeScript cache
48
+ *.tsbuildinfo
49
+
50
+ # Optional npm cache directory
51
+ .npm
52
+
53
+ # Optional eslint cache
54
+ .eslintcache
55
+
56
+ # Optional stylelint cache
57
+ .stylelintcache
58
+
59
+ # Optional REPL history
60
+ .node_repl_history
61
+
62
+ # Output of 'npm pack'
63
+ *.tgz
64
+
65
+ # Yarn Integrity file
66
+ .yarn-integrity
67
+
68
+ # dotenv environment variable files
69
+ .env
70
+ .env.*
71
+ !.env.example
72
+
73
+ # parcel-bundler cache (https://parceljs.org/)
74
+ .cache
75
+ .parcel-cache
76
+
77
+ # Next.js build output
78
+ .next
79
+ out
80
+
81
+ # Nuxt.js build / generate output
82
+ .nuxt
83
+ dist
84
+ .output
85
+
86
+ # NitroJS
87
+ .nitro/
88
+
89
+ # Gatsby files
90
+ .cache/
91
+ # Comment in the public line in if your project uses Gatsby and not Next.js
92
+ # https://nextjs.org/blog/next-9-1#public-directory-support
93
+ # public
94
+
95
+ # vuepress build output
96
+ .vuepress/dist
97
+
98
+ # vuepress v2.x temp directory
99
+ .temp
100
+
101
+ # Sveltekit cache directory
102
+ .svelte-kit/
103
+
104
+ # vitepress build output
105
+ **/.vitepress/dist
106
+
107
+ # vitepress cache directory
108
+ **/.vitepress/cache
109
+
110
+ # Docusaurus cache and generated files
111
+ .docusaurus
112
+
113
+ # Serverless directories
114
+ .serverless/
115
+
116
+ # FuseBox cache
117
+ .fusebox/
118
+
119
+ # DynamoDB Local files
120
+ .dynamodb/
121
+
122
+ # Firebase cache directory
123
+ .firebase/
124
+
125
+ # TernJS port file
126
+ .tern-port
127
+
128
+ # Stores Visual Studio Code versions used for testing Visual Studio Code extensions
129
+ .vscode-test
130
+
131
+ # pnpm
132
+ .pnpm-store
133
+
134
+ # yarn v3
135
+ .pnp.*
136
+ .yarn/*
137
+ !.yarn/patches
138
+ !.yarn/plugins
139
+ !.yarn/releases
140
+ !.yarn/sdks
141
+ !.yarn/versions
142
+
143
+ # Vite files
144
+ vite.config.js.timestamp-*
145
+ vite.config.ts.timestamp-*
146
+ .vite/
147
+
148
+ # Astro generated types
149
+ .astro/
150
+
151
+ # Turbo Repo (https://turborepo.dev/)
152
+ .turbo
153
+
154
+ # Nx (https://nx.dev/)
155
+ .nx/cache
156
+ .nx/workspace-data
157
+ .nx/migrate-runs
158
+
159
+ # ── Python (bimora-open-source) ──
160
+ __pycache__/
161
+ *.py[cod]
162
+ .venv/
163
+ venv/
164
+ .tools/
165
+ build/
166
+ dist/
167
+ *.egg-info/
168
+ .pytest_cache/
169
+ .mypy_cache/
170
+ .ruff_cache/
171
+ .coverage
172
+ .coverage.*
173
+ htmlcov/
174
+ coverage.xml
175
+ site/
@@ -0,0 +1,38 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0] — 2026-11-29
10
+
11
+ First release of the toolkit (alpha).
12
+
13
+ ### Added
14
+ - Safe IFC loading: size limit, content-based format detection (STEP only; IFC-ZIP and ifcXML refused),
15
+ schema detection, verified schemas IFC2X3 and IFC4, opt-in for untested schemas.
16
+ - Extraction of project metadata, header, units, spatial hierarchy, storeys, spaces, elements, GlobalIds,
17
+ property sets (with type inheritance), declared quantities with units, materials and classifications.
18
+ - Validation engine with 12 configurable rules (BIM001–BIM012), JSON / TOML configuration, severity filtering.
19
+ - Spatial utilities: hierarchy, floors, room inventory, space categories, grouping, statistics, area totals,
20
+ containment relationships, exact metric / imperial conversion.
21
+ - Interoperability: JSON export with JSON Schema, CSV exports with CSV-injection protection, field mapping,
22
+ property / value / unit normalisation, GlobalId ↔ UUID mapping, asset manifests, read-only BCF 2.1 / 3.0 reader.
23
+ - Revision comparison by GlobalId.
24
+ - `bimora` CLI (inspect, validate, spaces, properties, export, compare, report, ids, bcf, manifest, convert, rules).
25
+ - Typed Python API, deterministic example models and generator, pytest suite, GitHub Actions workflows.
26
+ - `--redact-header` option (CLI) and `read_model(redact_header=True)` to remove author / organisation names
27
+ taken from IFC headers.
28
+ - Example scripts: room schedule, information-requirements check, revision change report.
29
+ - Manual, approval-gated release workflow (Trusted Publishing to TestPyPI / PyPI) and release guide.
30
+
31
+ ### Fixed (during release-candidate audit)
32
+ - Documentation wrongly stated that quantities defined on element types are not read; they are (occurrence values
33
+ take precedence).
34
+ - README links are absolute so they work on PyPI.
35
+ - `examples/pavilion-ifc2x3-imperial.ifc` was not fully IFC2X3 schema-valid (10 errors from `ifcopenshell.validate`:
36
+ missing representation context, classification source / edition, a classification associated with the project,
37
+ interior / exterior flag of spaces, owner history of two relationships). The generator now writes a schema-valid
38
+ file, and a test checks every example with the validator.
@@ -0,0 +1,30 @@
1
+ # Code of Conduct
2
+
3
+ This project follows the spirit of the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1.
4
+
5
+ ## Our commitment
6
+
7
+ We want participation in this project to be a harassment-free experience for everyone, regardless of age,
8
+ body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or
10
+ sexual identity and orientation.
11
+
12
+ ## Expected behaviour
13
+
14
+ - Be respectful and considerate in issues, pull requests and discussions.
15
+ - Give and accept constructive feedback gracefully; focus on what is best for the project and its users.
16
+ - Take responsibility for mistakes and learn from them.
17
+
18
+ ## Unacceptable behaviour
19
+
20
+ - Harassment, insults, or derogatory comments.
21
+ - Sexualised language or imagery, and unwelcome advances.
22
+ - Publishing others' private information (including names or data from confidential building models) without
23
+ explicit permission.
24
+ - Other conduct that would reasonably be considered inappropriate in a professional setting.
25
+
26
+ ## Enforcement
27
+
28
+ Project maintainers may remove, edit or reject contributions that do not follow this code, and may temporarily
29
+ or permanently restrict participation. Report unacceptable behaviour privately to the repository owner through
30
+ GitHub (for example using GitHub's private reporting features); reports are handled confidentially.
@@ -0,0 +1,52 @@
1
+ # Contributing
2
+
3
+ Thank you for considering a contribution. This project is young; please open an issue to discuss larger changes
4
+ before starting work. New to open source? Start with [Your first contribution](docs/first-contribution.md).
5
+
6
+ ## Ground rules
7
+
8
+ - Be respectful — see [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
9
+ - Never commit confidential material: client models, proprietary designs, credentials, personal data.
10
+ - Only add test or example files that you created yourself or whose license clearly allows redistribution;
11
+ state the source and license in the pull request.
12
+ - Do not overstate capabilities in code or documentation. If something is untested, say so.
13
+
14
+ ## Development setup
15
+
16
+ ```bash
17
+ python -m venv .venv
18
+ # Windows: .venv\Scripts\activate macOS / Linux: source .venv/bin/activate
19
+ python -m pip install -e ".[dev]"
20
+ ```
21
+
22
+ ## Checks every pull request must pass
23
+
24
+ ```bash
25
+ ruff check src tests scripts
26
+ ruff format --check src tests scripts
27
+ mypy
28
+ python -m pytest --cov=bimora
29
+ ```
30
+
31
+ ## Requirements for changes
32
+
33
+ - **Tests:** new behaviour needs tests; bug fixes need a test that fails without the fix. Use deterministic
34
+ fixtures (no network, no clock-dependent output).
35
+ - **Types:** public functions are fully typed (`mypy --strict` passes).
36
+ - **Documentation:** update the relevant page in `docs/`, the README when user-facing behaviour changes, and
37
+ `CHANGELOG.md` under "Unreleased".
38
+ - **Example models:** change `scripts/generate_examples.py`, regenerate with
39
+ `python scripts/generate_examples.py`, and commit the regenerated files (a test checks they match).
40
+ - **Dependencies:** new runtime dependencies need a reason, a license compatible with MIT distribution of this
41
+ project, and maintainer agreement.
42
+
43
+ ## Code review
44
+
45
+ Pull requests are reviewed for correctness, safety with untrusted input (all IFC, BCF, JSON and CSV input is
46
+ untrusted), test coverage, documentation and honest claims. Reviewers may ask for changes; please keep pull
47
+ requests focused.
48
+
49
+ ## Licensing of contributions
50
+
51
+ By submitting a contribution you agree that it is licensed under the project's [MIT License](LICENSE) and that
52
+ you have the right to submit it.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 adelkazemi1
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,179 @@
1
+ Metadata-Version: 2.5
2
+ Name: bimora-open-source
3
+ Version: 0.1.0
4
+ Summary: Open-source toolkit for IFC metadata extraction, architectural data validation, spatial summaries and revision comparison.
5
+ Project-URL: Homepage, https://adelkazemi1.github.io/bimora-open-source/
6
+ Project-URL: Documentation, https://adelkazemi1.github.io/bimora-open-source/
7
+ Project-URL: Repository, https://github.com/adelkazemi1/bimora-open-source
8
+ Project-URL: Issues, https://github.com/adelkazemi1/bimora-open-source/issues
9
+ Project-URL: Changelog, https://github.com/adelkazemi1/bimora-open-source/blob/main/CHANGELOG.md
10
+ Author: adelkazemi1
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: aec,architecture,bim,ifc,interoperability,openbim,validation
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: ifcopenshell>=0.8.0
26
+ Requires-Dist: jsonschema>=4.18
27
+ Provides-Extra: dev
28
+ Requires-Dist: build>=1.2; extra == 'dev'
29
+ Requires-Dist: mypy>=1.10; extra == 'dev'
30
+ Requires-Dist: pip-audit>=2.7; extra == 'dev'
31
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
32
+ Requires-Dist: pytest>=8; extra == 'dev'
33
+ Requires-Dist: pyyaml>=6; extra == 'dev'
34
+ Requires-Dist: ruff>=0.6; extra == 'dev'
35
+ Provides-Extra: docs
36
+ Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
37
+ Requires-Dist: mkdocs>=1.6; extra == 'docs'
38
+ Description-Content-Type: text/markdown
39
+
40
+ # BIMORA Open Source
41
+
42
+ An open-source Python toolkit for reading information out of IFC building models, checking its quality,
43
+ summarising spaces and areas, exchanging it as JSON / CSV, and comparing model revisions.
44
+
45
+ > Status: **v0.1.0 — first release, alpha.** The public API may change before v1.0.0.
46
+ > Initiated by ALBE Studio and TO RENDER STUDIO.
47
+
48
+ Long-term vision of this repository: open-source tools for BIM interoperability, architectural visualization,
49
+ interactive 3D environments and AI-powered building intelligence. **v0.1.0 covers only the IFC data foundation
50
+ described below**; everything else is planned (see [ROADMAP.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/ROADMAP.md)).
51
+
52
+ ## Who it is for
53
+
54
+ BIM coordinators, architects, engineers and developers who need to look inside IFC files, check whether the
55
+ information requirements of a project are met, and move that information into spreadsheets, databases or
56
+ other tools — from the command line or from Python.
57
+
58
+ ## What it does (v0.1.0)
59
+
60
+ | Area | Capabilities |
61
+ | --- | --- |
62
+ | IFC processing | safe opening, schema detection, project metadata, header, units, Project → Site → Building → Storey → Space hierarchy, element classes, GlobalIds, property sets (including type-inherited values), declared quantities with units, materials (layers, profiles, constituents, lists), classification references, element counts |
63
+ | Validation | 12 configurable rules: missing / invalid / duplicate identifiers, missing building, floor and room names, empty property values, invalid spatial relationships, missing or mixed units, missing classifications and materials, incomplete property sets, invalid or missing quantities |
64
+ | Spatial | hierarchy tree, floors by elevation, room inventory, space categories, element grouping and statistics, area totals per storey, containment relationships, exact metric ↔ imperial conversion |
65
+ | Interoperability | IFC → JSON (with a published JSON Schema), IFC → CSV, CSV field mapping, property / value / unit normalisation, GlobalId ↔ UUID mapping, asset manifests with SHA-256, read-only BCF 2.1 / 3.0 metadata reader |
66
+ | Comparison | revision comparison by GlobalId: added, removed, changed names, property values, classifications, materials, spatial assignment and declared quantities |
67
+ | Interfaces | `bimora` command-line tool and a typed Python API |
68
+
69
+ **Important.** Validation results are automated data-quality checks. They are **not** building-code compliance
70
+ checking, engineering approval or professional design verification. Revision comparison works on metadata;
71
+ it does **not** compare geometry and is **not** clash detection.
72
+
73
+ ## Supported formats
74
+
75
+ | Format | Status |
76
+ | --- | --- |
77
+ | IFC2X3, STEP (`.ifc`) | supported — tested with files generated by IfcOpenShell |
78
+ | IFC4, STEP (`.ifc`) | supported — tested with files generated by IfcOpenShell |
79
+ | IFC4X3 and other schemas | refused by default; `--allow-untested-schema` opens them without verified results |
80
+ | IFC-ZIP (`.ifczip`), ifcXML | not supported in v0.1.0 (detected and refused) |
81
+ | BCF-XML 2.1 / 3.0 (`.bcf`, `.bcfzip`) | metadata read-only |
82
+ | Revit (`.rvt`), Archicad (`.pln`), Navisworks | **not supported** — export IFC from the authoring tool |
83
+
84
+ The test files were produced with IfcOpenShell. Files exported by commercial authoring tools have **not** yet
85
+ been verified with this release.
86
+
87
+ ## Installation
88
+
89
+ Python 3.11 or newer. The package is not published on PyPI yet; install from a clone:
90
+
91
+ ```bash
92
+ git clone https://github.com/adelkazemi1/bimora-open-source
93
+ cd bimora-open-source
94
+ python -m venv .venv
95
+ # Windows: .venv\Scripts\activate macOS / Linux: source .venv/bin/activate
96
+ python -m pip install .
97
+ ```
98
+
99
+ Runtime dependencies: [IfcOpenShell](https://ifcopenshell.org) (LGPL-3.0-or-later, installed separately as a
100
+ dependency) and [jsonschema](https://github.com/python-jsonschema/jsonschema) (MIT).
101
+
102
+ ## Quick start (command line)
103
+
104
+ ```bash
105
+ bimora inspect examples/pavilion-ifc4.ifc
106
+ bimora validate examples/pavilion-ifc4-incomplete.ifc
107
+ bimora spaces examples/pavilion-ifc4.ifc --area-unit ft2
108
+ bimora properties examples/pavilion-ifc4.ifc --ifc-class IfcWall
109
+ bimora export examples/pavilion-ifc4.ifc --format json --output model.json
110
+ bimora export examples/pavilion-ifc4.ifc --format csv --output csv/
111
+ bimora compare examples/pavilion-ifc4.ifc examples/pavilion-ifc4-revision-b.ifc
112
+ bimora report examples/pavilion-ifc4.ifc --output report.json
113
+ ```
114
+
115
+ More: `bimora --help`, `bimora <command> --help` and [docs/cli.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/cli.md). Add `--json` for
116
+ machine-readable output. Exit codes: `0` ok, `1` check failed, `2` usage error, `3` input / configuration
117
+ error, `4` output error.
118
+
119
+ ## Quick start (Python)
120
+
121
+ ```python
122
+ from bimora import inspect_model, validate_model, compare_models
123
+
124
+ summary = inspect_model("examples/pavilion-ifc4.ifc")
125
+ print(summary["schema"], summary["counts"]["elements"])
126
+
127
+ results = validate_model("examples/pavilion-ifc4-incomplete.ifc")
128
+ for f in results.findings:
129
+ print(f.rule_id, f.severity, f.element_id, f.description)
130
+
131
+ diff = compare_models("examples/pavilion-ifc4.ifc", "examples/pavilion-ifc4-revision-b.ifc")
132
+ print(diff.summary)
133
+ ```
134
+
135
+ See [docs/python-api.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/python-api.md).
136
+
137
+ ## Architecture
138
+
139
+ ```
140
+ src/bimora/
141
+ ├── ifc/ loader (safety checks, schema detection), units, extraction → ModelData records
142
+ ├── validation/ configurable rule engine and configuration loading
143
+ ├── spatial/ hierarchy, floors, rooms, areas, statistics, unit conversion
144
+ ├── interoperability/ JSON / CSV export, mapping, identifiers, manifests, BCF reader, revision comparison
145
+ ├── reporting/ inspection summary and combined report
146
+ ├── schemas/ JSON Schemas of the exchange formats
147
+ ├── api.py public Python API
148
+ └── cli.py `bimora` command
149
+ ```
150
+
151
+ The IFC file is parsed once into plain Python records (`ModelData`); every other module works on those records.
152
+
153
+ ## Known limitations
154
+
155
+ - Verified only with IfcOpenShell-generated IFC2X3 / IFC4 files; real exports from authoring tools are untested.
156
+ - No geometry processing: quantities are only those declared in the file; nothing is measured.
157
+ - Large models are processed in memory; the default file size limit is 256 MB (configurable).
158
+ - Revision comparison depends on stable GlobalIds.
159
+ - BCF: metadata only (no snapshots, no writing).
160
+ - Reports may include names and organisations from the IFC header and BCF authors; use `--redact-header` (IFC)
161
+ and `bimora bcf --no-people` (BCF) to redact them.
162
+
163
+ ## Documentation
164
+
165
+ [Getting started](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/getting-started.md) · [IFC processing](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/ifc-processing.md) ·
166
+ [Validation](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/validation.md) · [Spatial utilities](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/spatial.md) ·
167
+ [Interoperability](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/interoperability.md) · [Model comparison](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/comparison.md) ·
168
+ [CLI reference](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/cli.md) · [Python API](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/python-api.md) · [Example datasets](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/examples.md) ·
169
+ [Development](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/development.md)
170
+
171
+ ## Contributing, security and license
172
+
173
+ - Contributions: [CONTRIBUTING.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CODE_OF_CONDUCT.md).
174
+ - Security issues: please report privately — see [SECURITY.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/SECURITY.md).
175
+ - License: [MIT](https://github.com/adelkazemi1/bimora-open-source/blob/main/LICENSE). IfcOpenShell is a separately installed dependency under LGPL-3.0-or-later.
176
+ - Trademarks: IFC and BCF are open standards of buildingSMART International. Revit and Navisworks are trademarks
177
+ of Autodesk, Inc.; Archicad is a trademark of GRAPHISOFT SE. They are named only to describe compatibility;
178
+ this project is not affiliated with or endorsed by them.
179
+ - Roadmap: [ROADMAP.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/ROADMAP.md) · Changes: [CHANGELOG.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CHANGELOG.md).
@@ -0,0 +1,140 @@
1
+ # BIMORA Open Source
2
+
3
+ An open-source Python toolkit for reading information out of IFC building models, checking its quality,
4
+ summarising spaces and areas, exchanging it as JSON / CSV, and comparing model revisions.
5
+
6
+ > Status: **v0.1.0 — first release, alpha.** The public API may change before v1.0.0.
7
+ > Initiated by ALBE Studio and TO RENDER STUDIO.
8
+
9
+ Long-term vision of this repository: open-source tools for BIM interoperability, architectural visualization,
10
+ interactive 3D environments and AI-powered building intelligence. **v0.1.0 covers only the IFC data foundation
11
+ described below**; everything else is planned (see [ROADMAP.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/ROADMAP.md)).
12
+
13
+ ## Who it is for
14
+
15
+ BIM coordinators, architects, engineers and developers who need to look inside IFC files, check whether the
16
+ information requirements of a project are met, and move that information into spreadsheets, databases or
17
+ other tools — from the command line or from Python.
18
+
19
+ ## What it does (v0.1.0)
20
+
21
+ | Area | Capabilities |
22
+ | --- | --- |
23
+ | IFC processing | safe opening, schema detection, project metadata, header, units, Project → Site → Building → Storey → Space hierarchy, element classes, GlobalIds, property sets (including type-inherited values), declared quantities with units, materials (layers, profiles, constituents, lists), classification references, element counts |
24
+ | Validation | 12 configurable rules: missing / invalid / duplicate identifiers, missing building, floor and room names, empty property values, invalid spatial relationships, missing or mixed units, missing classifications and materials, incomplete property sets, invalid or missing quantities |
25
+ | Spatial | hierarchy tree, floors by elevation, room inventory, space categories, element grouping and statistics, area totals per storey, containment relationships, exact metric ↔ imperial conversion |
26
+ | Interoperability | IFC → JSON (with a published JSON Schema), IFC → CSV, CSV field mapping, property / value / unit normalisation, GlobalId ↔ UUID mapping, asset manifests with SHA-256, read-only BCF 2.1 / 3.0 metadata reader |
27
+ | Comparison | revision comparison by GlobalId: added, removed, changed names, property values, classifications, materials, spatial assignment and declared quantities |
28
+ | Interfaces | `bimora` command-line tool and a typed Python API |
29
+
30
+ **Important.** Validation results are automated data-quality checks. They are **not** building-code compliance
31
+ checking, engineering approval or professional design verification. Revision comparison works on metadata;
32
+ it does **not** compare geometry and is **not** clash detection.
33
+
34
+ ## Supported formats
35
+
36
+ | Format | Status |
37
+ | --- | --- |
38
+ | IFC2X3, STEP (`.ifc`) | supported — tested with files generated by IfcOpenShell |
39
+ | IFC4, STEP (`.ifc`) | supported — tested with files generated by IfcOpenShell |
40
+ | IFC4X3 and other schemas | refused by default; `--allow-untested-schema` opens them without verified results |
41
+ | IFC-ZIP (`.ifczip`), ifcXML | not supported in v0.1.0 (detected and refused) |
42
+ | BCF-XML 2.1 / 3.0 (`.bcf`, `.bcfzip`) | metadata read-only |
43
+ | Revit (`.rvt`), Archicad (`.pln`), Navisworks | **not supported** — export IFC from the authoring tool |
44
+
45
+ The test files were produced with IfcOpenShell. Files exported by commercial authoring tools have **not** yet
46
+ been verified with this release.
47
+
48
+ ## Installation
49
+
50
+ Python 3.11 or newer. The package is not published on PyPI yet; install from a clone:
51
+
52
+ ```bash
53
+ git clone https://github.com/adelkazemi1/bimora-open-source
54
+ cd bimora-open-source
55
+ python -m venv .venv
56
+ # Windows: .venv\Scripts\activate macOS / Linux: source .venv/bin/activate
57
+ python -m pip install .
58
+ ```
59
+
60
+ Runtime dependencies: [IfcOpenShell](https://ifcopenshell.org) (LGPL-3.0-or-later, installed separately as a
61
+ dependency) and [jsonschema](https://github.com/python-jsonschema/jsonschema) (MIT).
62
+
63
+ ## Quick start (command line)
64
+
65
+ ```bash
66
+ bimora inspect examples/pavilion-ifc4.ifc
67
+ bimora validate examples/pavilion-ifc4-incomplete.ifc
68
+ bimora spaces examples/pavilion-ifc4.ifc --area-unit ft2
69
+ bimora properties examples/pavilion-ifc4.ifc --ifc-class IfcWall
70
+ bimora export examples/pavilion-ifc4.ifc --format json --output model.json
71
+ bimora export examples/pavilion-ifc4.ifc --format csv --output csv/
72
+ bimora compare examples/pavilion-ifc4.ifc examples/pavilion-ifc4-revision-b.ifc
73
+ bimora report examples/pavilion-ifc4.ifc --output report.json
74
+ ```
75
+
76
+ More: `bimora --help`, `bimora <command> --help` and [docs/cli.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/cli.md). Add `--json` for
77
+ machine-readable output. Exit codes: `0` ok, `1` check failed, `2` usage error, `3` input / configuration
78
+ error, `4` output error.
79
+
80
+ ## Quick start (Python)
81
+
82
+ ```python
83
+ from bimora import inspect_model, validate_model, compare_models
84
+
85
+ summary = inspect_model("examples/pavilion-ifc4.ifc")
86
+ print(summary["schema"], summary["counts"]["elements"])
87
+
88
+ results = validate_model("examples/pavilion-ifc4-incomplete.ifc")
89
+ for f in results.findings:
90
+ print(f.rule_id, f.severity, f.element_id, f.description)
91
+
92
+ diff = compare_models("examples/pavilion-ifc4.ifc", "examples/pavilion-ifc4-revision-b.ifc")
93
+ print(diff.summary)
94
+ ```
95
+
96
+ See [docs/python-api.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/python-api.md).
97
+
98
+ ## Architecture
99
+
100
+ ```
101
+ src/bimora/
102
+ ├── ifc/ loader (safety checks, schema detection), units, extraction → ModelData records
103
+ ├── validation/ configurable rule engine and configuration loading
104
+ ├── spatial/ hierarchy, floors, rooms, areas, statistics, unit conversion
105
+ ├── interoperability/ JSON / CSV export, mapping, identifiers, manifests, BCF reader, revision comparison
106
+ ├── reporting/ inspection summary and combined report
107
+ ├── schemas/ JSON Schemas of the exchange formats
108
+ ├── api.py public Python API
109
+ └── cli.py `bimora` command
110
+ ```
111
+
112
+ The IFC file is parsed once into plain Python records (`ModelData`); every other module works on those records.
113
+
114
+ ## Known limitations
115
+
116
+ - Verified only with IfcOpenShell-generated IFC2X3 / IFC4 files; real exports from authoring tools are untested.
117
+ - No geometry processing: quantities are only those declared in the file; nothing is measured.
118
+ - Large models are processed in memory; the default file size limit is 256 MB (configurable).
119
+ - Revision comparison depends on stable GlobalIds.
120
+ - BCF: metadata only (no snapshots, no writing).
121
+ - Reports may include names and organisations from the IFC header and BCF authors; use `--redact-header` (IFC)
122
+ and `bimora bcf --no-people` (BCF) to redact them.
123
+
124
+ ## Documentation
125
+
126
+ [Getting started](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/getting-started.md) · [IFC processing](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/ifc-processing.md) ·
127
+ [Validation](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/validation.md) · [Spatial utilities](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/spatial.md) ·
128
+ [Interoperability](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/interoperability.md) · [Model comparison](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/comparison.md) ·
129
+ [CLI reference](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/cli.md) · [Python API](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/python-api.md) · [Example datasets](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/examples.md) ·
130
+ [Development](https://github.com/adelkazemi1/bimora-open-source/blob/main/docs/development.md)
131
+
132
+ ## Contributing, security and license
133
+
134
+ - Contributions: [CONTRIBUTING.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CODE_OF_CONDUCT.md).
135
+ - Security issues: please report privately — see [SECURITY.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/SECURITY.md).
136
+ - License: [MIT](https://github.com/adelkazemi1/bimora-open-source/blob/main/LICENSE). IfcOpenShell is a separately installed dependency under LGPL-3.0-or-later.
137
+ - Trademarks: IFC and BCF are open standards of buildingSMART International. Revit and Navisworks are trademarks
138
+ of Autodesk, Inc.; Archicad is a trademark of GRAPHISOFT SE. They are named only to describe compatibility;
139
+ this project is not affiliated with or endorsed by them.
140
+ - Roadmap: [ROADMAP.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/ROADMAP.md) · Changes: [CHANGELOG.md](https://github.com/adelkazemi1/bimora-open-source/blob/main/CHANGELOG.md).