6.2.5.39. Architecture-ScriptedArchitecture

Architecture modelling via Python scripts for both mapping and architecture

Required inputs: RFG

Offers a way to specify architecture models and a mapping to the code using predefined Python types like ArchitectureProject, Architecture, Mapping, Component and ComponentWithInterface. The types are found in the module bauhaus.architecture.scripted_architecture. ArchitectureProject combines architecture and mapping in a single object and operates on the RFG of the running analysis, so the global variable INPUT_RFG is not needed with it. Refer to 4.1 Example 3: Architecture-As-Code for an example project and more detailed explanations.

Possible Messages

This rule has no predefined messages.

Options

architecture_files

architecture_files : list[bauhaus.analysis.config.LayerRelativePath] = []

List of python files containing declarative model and mapping info.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

Option Types

These types are used by options listed above:

LogLevel

  • WARNING

  • INFO

  • DEBUG