Constants

Module-level constants, configuration values, and registry structures used throughout pyArchimate. This is a Layer 1 base module with no internal pyArchimate imports.

Module contents

Constants and configuration values for the Archimate library.

This module contains module-level constants, magic numbers, configuration values, and registry structures used throughout pyArchimate.

No external pyArchimate imports - this is a Layer 1 base module.

class pyArchimate.constants.RGBA(r=0, g=0, b=0, a=100)[source]

Bases: object

Manage RGB/hex color and alpha (opacity) channels.

Parameters:
  • r – red channel 0-255

  • g – green channel 0-255

  • b – blue channel 0-255

  • a – alpha channel 0-100

property color

Return #RRGGBB hex string.

class pyArchimate.constants.ReaderEntry(tag_key: str, loader: Callable[[], Callable[[...], Any]], supports_merge: bool = False, forward_read_args: bool = False)[source]

Bases: object

Registry entry describing how to select and call a reader based on the root tag.

forward_read_args: bool = False
loader: Callable[[], Callable[[...], Any]]
supports_merge: bool = False
tag_key: str