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.get_or_create_connection(owner, *args, **kwargs)[source]

Delegate connection creation to View helper methods.

pyArchimate.helpers.diagram.get_or_create_node(owner, *args, **kwargs)[source]

Delegate node creation to Model/View helper methods.

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.embed_props(model, remove_props=False)[source]

Delegate property embedding to the model implementation.

pyArchimate.helpers.properties.expand_props(model, clean_doc=True)[source]

Delegate property expansion 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

pyArchimate.helpers.logging.log_to_file(log_file)[source]

Add a log handler to save log to file :param log_file: path to the log file :type log_file: str

pyArchimate.helpers.logging.log_to_stderr()[source]

Add a logging handler to the standard error output