MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / _list_shape_methods

Function _list_shape_methods

src/ifcmcp/ifcmcp/core.py:75–89  ·  view source on GitHub ↗

Introspect ShapeBuilder and return a summary of all public methods.

()

Source from the content-addressed store, hash-verified

73
74
75def _list_shape_methods() -> list[dict]:
76 """Introspect ShapeBuilder and return a summary of all public methods."""
77 import inspect
78
79 from ifcedit.discover import _extract_params
80 from ifcopenshell.util.shape_builder import ShapeBuilder
81
82 results = []
83 for name, fn in inspect.getmembers(ShapeBuilder, predicate=inspect.isfunction):
84 if name.startswith("_"):
85 continue
86 doc = fn.__doc__ or ""
87 description = doc.strip().split("\n")[0] if doc.strip() else ""
88 results.append({"method": name, "description": description, "params": _extract_params(fn)})
89 return results
90
91
92def _shape_method_docs(method_name: str) -> dict:

Callers 1

ifc_shape_listMethod · 0.85

Calls 3

_extract_paramsFunction · 0.90
splitMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected