Helpersο
Utility functions and logging configuration used by the core modules.
Diagram helpersο
Thin wrappers that delegate node/connection creation to Model/View
instances.
Diagram helper wrappers exposed as module-level utilities.
- pyArchimate.helpers.diagram.apply_profile_styles(view: View, mapping: dict[str, str | dict[str, str]]) None[source]ο
Apply fill colours to view nodes based on their elementβs profile name.
Walks all nodes recursively, including nodes nested inside other nodes. mapping keys are profile names; values are either a hex colour string (applied to
fill_color) or a dict with any offill_color,line_color,font_colorkeys.
Property helpersο
Wrappers that delegate embed_props / expand_props and validation
calls to the Model implementation.
Property and validation helper wrappers for Model instances.
- pyArchimate.helpers.properties.check_invalid_conn(model)[source]ο
Delegate invalid relationship checks to the model implementation.
- pyArchimate.helpers.properties.check_invalid_nodes(model)[source]ο
Delegate orphan node checks to the model implementation.
- pyArchimate.helpers.properties.check_invalid_relationships(model)[source]ο
Delegate metamodel relationship checks to the model implementation.
Logging helpersο
Thin configuration layer around the standard logging module: sets a
consistent formatter and exposes log_set_level, log_to_file, and
log_to_stderr.
Logging helpers re-exported from the package logger module.
- pyArchimate.helpers.logging.log_set_level(lvl)[source]ο
Change the logging level for all handlers at once :param lvl: logging level :type lvl: logging.LEVEL enumeration