silo.low_code.framework.snippet_validation module

silo.low_code.framework.snippet_validation.get_agent_supported_requestors(requestors, device_logger, app_id)

Identify any Requestor that supports the Agent

Parameters
  • requestors (set) – Requestor names that need to be checked for agent support

  • device_logger (logger) – Pythonic logger that can write device log messages

  • app_id (int) – Dynamic Application ID

Returns

All requestors that can generate aggent configs

Return type

list

silo.low_code.framework.snippet_validation.is_requestor_apl_supported(requestors, device_logger, app_id)

Determines if the requestor(s) support the APL from the given RCs

Parameters
  • requestors (list) – List of requestors (str) that should be checked

  • device_logger (logger) – Pythonic logger that can write device log messages

  • app_id (int) – Dynamic Application ID

Returns

Requestor is supported

Return type

bool

silo.low_code.framework.snippet_validation.is_sf_app(snippet)

Determine if the snippet executes the framework

Parameters

snippet (str) – Snippet to check for SF execution

Return type

bool