jinks_core.build¶
Build module.
Classes
|
Build class with building methods. |
|
Convert digital image into the image sent to the display. |
|
Orientation enum. |
- class jinks_core.build.Orientation(*values)¶
Bases:
EnumOrientation enum.
- horizontal = 'horizontal'¶
- vertical = 'vertical'¶
- class jinks_core.build.Image2Display(width, height, rotated)¶
Bases:
objectConvert digital image into the image sent to the display.
- width: int¶
- height: int¶
- rotated: bool¶
- classmethod get_rotation(display, configuration)¶
Compute which orientation to have based on display definition and user configuration input.
- Return type:
- static get_default_orientation(width, height)¶
Determine the default orientation of the display.
- Parameters:
width – in pixels
height – in pixels
- Return type:
- __init__(width, height, rotated)¶
- class jinks_core.build.Build¶
Bases:
objectBuild class with building methods.
- classmethod build(arguments, configuration)¶
Build a storage dataclass and get all registries.
- Parameters:
arguments (
Namespace)configuration (
Configuration)
- Return type:
tuple[type[DeviceProtocol],type[DisplayProtocol],dict[str,type[WidgetProtocol]],Image2Display]
- static verify_config(configuration, widgets)¶
Verify that the configuration file data_groups information is valid.
Checks data_groups data_interval and arguments are valid with the defined widgets.