Filters

str

Convert the value into a string.

int

Convert the value into an integer.

float

Convert the value into a float.

bool

Convert the value into a boolean.

str_pvts

Return a string of formated timestamp from the float value of pyepics timestamp.

# item: "2025-05-26 14:48:29.99555"
item: "{{ 1748238509.995554 | str_pvts }}"

dict_keys

Return a list of all the keys from the dictionary.

# item: ["key1", "key2"]
item: "{{ {'key1': 1, 'key2': 2} | dict_keys }}"

dict_values

Return a list of all the values from the dictionary.

# item: [1, 2]
item: "{{ {'key1': 1, 'key2': 2} | dict_values }}"

dict2item

Return a list of dictionaries from the dictionary.

Parameters
  • key_name – The name of the dictionary’s keys.

  • val_name – The name of the dictionary’s values.

# item: [{"k": "key1", "v": 1}, {"k": "key2", "v": 2}]
item: "{{ {'key1': 1, 'key2': 2} | dict2item('k','v') }}"

join

Join a list of string with separator.

Parameters
  • separator – Separator for the concatenation of the strings.

# item: "Hello, world"
item: "{{ ["Hello", "world"] | join(', ') }}"