checks

Provides some convenience checking functions that raise exceptions on errors.

Functions

simple_automation.checks.check_valid_key(key: str, msg: str = 'Invalid key')

Asserts that a given key is a valid identifier.

Parameters
  • key (str) – The key to check.

  • msg (str, optional) – The message to raise when the check fails.

simple_automation.checks.check_valid_path(path)

Asserts that a given path is non empty and absolute.

Parameters

path (str) – The path to check.

simple_automation.checks.check_valid_relative_path(path)

Asserts that a given path is non empty and relative.

Parameters

path (str) – The path to check.