Skip to main content

ifckit

ifckit is a framework-agnostic IFC builder library for architecture and infrastructure. The intent behind this code is written down in the repo, one division up: MANIFESTO.org — the tooling half of the Headless Manifesto. Space belongs to the commons, code belongs to the field.

Tests PyPI Docs

API reference: maucworks.github.io/ifckit (pdoc, generated from the docstrings); sibling geometry library: maucworks.github.io/geometrykit

Build valid IFC files in Python — no CAD host required. Works standalone, from Grasshopper, or via the JSON/CLI interface.

Files created can be viewed in its companion IfcViewer

Live: maucworks.github.io/web-ifc-viewer

alt text
IfcKit integrated with Grasshopper via the JSON pipeline.



alt text
IfcKit as the pythonic gernerator core of a configurator.

Install

pip install ifckit    # brings geometrykit and ifcopenshell as core dependencies

Every ifckit release carries both: geometrykit (value types and NURBS) and ifcopenshell (IFC writer — imported unconditionally by the builder core; a hard install dependency). Requires Python 3.9+.

Quick start: building

from ifckit import IfcModel, IfcSchema, PendingWall, Vec, Plane

model = IfcModel(name="My Project", schema=IfcSchema.IFC4, author="you")
floor = model.add_site("Site A").add_building("Building 1").add_storey("Ground Floor", elevation=0.0)

wall = PendingWall(
    footprint=[Vec(0, 0, 0), Vec(10, 0, 0), Vec(10, 0.3, 0), Vec(0, 0.3, 0)],
    plane=Plane.world_xy(),
    height=3.0,
    name="North Facade",
)
floor.add(wall)
model.save("project.ifc")

See examples/build_hello_wall.py for a fuller worked version of this wall flow.

Quick start: bridge

from ifckit import IfcModel, IfcSchema, LengthUnit, PendingBeam, Vec, Line, BridgePartType, IBeamProfile

model = IfcModel(name="Bridge", schema=IfcSchema.IFC4X3, author="you", unit=LengthUnit.MILLIMETRE)
deck = model.add_site("Site A").add_bridge("Main Bridge").add_bridge_part("Deck", BridgePartType.DECK.value)

profile = IBeamProfile(height=600, width=300, web_thickness=10, flange_thickness=10)
beam = PendingBeam(axis=Line(Vec(0, 0, 0), Vec(3000, 0, 0)), profile=profile, name="Main Girder")
deck.add(beam)

model.save("bridge.ifc")

The bridge flow is exercised end to end in tests/builders/test_bridge_builder.py and tests/test_model.py.

Supported schemas and element types

Element Class IFC4 IFC4X3
Wall PendingWall ✓
Slab PendingSlab ✓
Column PendingColumn ✓
Beam PendingBeam ✓ ✓
Space PendingSpace ✓
Alignment PendingAlignment ✓

Profiles: IBeamProfile, LBeamProfile (top-level), SteelProfile (import from ifckit.profiles), and arbitrary polygon profiles.

JSON build

Build an IFC file from a JSON description — useful for CLI pipelines and REST APIs:

import json
from ifckit.json_build import build, build_from_json

build(json.load(open("model.json")), "output.ifc")     # dict in
build_from_json(open("model.json").read(), "output.ifc")  # or JSON string

Or from the command line (note the build subcommand and -o flag):

python -m ifckit build model.json -o output.ifc

The JSON schema mirrors the Python API. See examples/example_building.json for a full example.

Grasshopper

Grasshopper Script components are in grasshopper/src/. Each component is a standalone Python file with @component / @input / @output annotations.

To regenerate the .gh file from source, run grasshopper/script/build_gh.py inside the Rhino ScriptEditor with Grasshopper open.

Installing ifckit in Rhino 8

Rhino 8 ships with its own CPython 3.9 environment. That pins the ifcopenshell line: 0.8.4.post1 is the last release with Python 3.9 wheels, so install it explicitly — the [ifc] extra would pull 0.9.0, which requires Python 3.10+. From the Rhino ScriptEditor (EditPythonScript) or a Script component:

import subprocess, sys
subprocess.run(
    [sys.executable, "-m", "pip", "install",
     "ifckit", "ifcopenshell==0.8.4.post1"],
    check=True,
)

ifckit detects the 0.8 serializer API automatically (see ifckit.geom_backend); all build/save/export paths work on both lines.

To install a local development checkout instead:

import subprocess, sys
subprocess.run(
    [sys.executable, "-m", "pip", "install", "-e", r"C:\path\to\ifckit"],
    check=True,
)

After installing, restart Rhino once to make the package available in all Script components.

Development

pip install -e ".[dev]"
pytest tests/          # run tests
ruff check ifckit/     # lint

Metadata

Release files for ifckit 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ifckit 0.5.0
File Size Uploaded Provenance Actions
ifckit-0.5.0.tar.gz 297.9 kB With provenance Details for ifckit-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ifckit 0.5.0
File Interpreter ABI Platform Actions
ifckit-0.5.0-py3-none-any.whl Python 3 none any Details for ifckit-0.5.0-py3-none-any.whl

Total release size: 616.7 kB

Release files / ifckit-0.5.0.tar.gz

Download URL ifckit-0.5.0.tar.gz
Size 297.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cd598e735cd23d7e224d988f2ee2b99d19a6475c6719f5634728e6a3513896b9
BLAKE2b-256 checksum
How to use checksums
58af9b4f712387ec3bb819801289de3a723bd28d52e98be80dfc4fcce7cae4a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / ifckit-0.5.0-py3-none-any.whl

Download URL ifckit-0.5.0-py3-none-any.whl
Size 318.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e01a2fd6f5bc5cc3fcad526bf1cf868fc8da63ea0cccfc742381130b3c9afae
BLAKE2b-256 checksum
How to use checksums
05ee23584cff2bc10c8f9f78a4aa30854b1e9a466a6401b78f4c2e9db6cf33cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for ifckit 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ifckit-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page