openbim-ifc-py
Python bindings for openbim-ifc: read, edit and write IFC STEP files from Python.
| Status | Implemented |
| Latest release | 0.16.0 (2026-11-09) |
| Registries | PyPI openbim-ifc |
| API documentation | rustdoc |
| Source | crates/openbim-ifc-py/ |
Overview
Python bindings for the IFC facade (ADR 0013, #39).
The compiled module is openbim_ifc._native; the public API is the pure Python package openbim_ifc, which wraps it and defines the value classes. Values cross as plain dicts in the tagged encoding shared with the WASM and C bindings; openbim_ifc turns them into frozen dataclasses.
This crate adds calling-convention glue only. IFC behaviour belongs in openbim-ifc, shared binding behaviour in openbim-ifc-binding-core.
Features
| Feature | Default | Enables |
|---|---|---|
graph | openbim-ifc-binding-core/graph | |
mesh | openbim-ifc-binding-core/mesh | |
rusty_alloc | dep:rusty_alloc-api, dep:rusty_alloc |
Depends on
Changes
Latest release, 0.16.0 (2026-11-09):
Changed (wire format 1.5)
- The geometry graph payload (#367) may be Axiolid's wire format 1.5, written only when a graph holds a ruled surface (axiolid/kernel#402); every other graph keeps its version. The newest version the build advertises (
GEOMETRY_FORMAT_VERSION) is"1.5". A reader onaxiolid-model0.3.17 or older refuses1.5.
Added (#603)
SurfaceColour.sourcecan be"materialSet":source_entityis the set (IfcMaterialLayerSet,IfcMaterialProfileSet,IfcMaterialConstituentSetorIfcMaterialList, or a usage of one (IfcMaterialLayerSetUsage,IfcMaterialProfileSetUsageand itsTapering)) whose materials all state the colour, and the newsource_materials(a tuple, last field) lists the materials of the set that colour the item: every one, or the constituents its shape aspects name (ascending id, distinct);()for other sources.
Semver: minor (pre-1.0 breaking: a record field is added).
Changed (#651)
representationaccepts"Reference", the void geometry of an IFC4 Reference View opening.
Semver: patch (additive).
Changed (#614)
- A diagnostic string with a position reads "warning at line L, column C (bytes a..b): ...".
Semver: patch (Display text changes)
Fixed (#617)
- The first id handed out after a read is above every declared and referenced id, so a new entity never takes the id of a dangling reference or a skipped record.
Semver: patch
Full history: crates/openbim-ifc-py/CHANGELOG.md