Module Functions

class wishbone.function.module.append.Append(data, destination='tags')[source]

Adds a value to an existing list.

A Wishbone module function which add a value to an existing list.

Parameters:
  • data – The data to add
  • destination – The field to add data to.
do(event)[source]

The function mapped to the module function.

Parameters:event – The Wishbone event.
Returns:The modified event.
Return type:wishbone.event.Event
class wishbone.function.module.lowercase.Lowercase(source='data', destination='data')[source]

Puts the desired field in lowercase.

A Wishbone module function which converts the desired field to lowercase.

Parameters:
  • source – The source field
  • destination – The destination field
do(event)[source]

The function mapped to the module function.

Parameters:event – The Wishbone event.
Returns:The modified event.
Return type:wishbone.event.Event
class wishbone.function.module.set.Set(data, destination='data')[source]

Sets a field to the desired value.

A Wishbone module function which sets data to the desired field. Data can be a template.

Parameters:
  • data – The value (or template) to apply.
  • destination – The destination field
do(event)[source]

The function mapped to the module function.

Parameters:event – The Wishbone event.
Returns:The modified event.
Return type:wishbone.event.Event
class wishbone.function.module.uppercase.Uppercase(source='data', destination='data')[source]

Puts the desired field in uppercase.

A Wishbone module function which converts the desired field to uppercase.

Parameters:
  • source – The source field
  • destination – The destination field
do(event)[source]

The function mapped to the module function.

Parameters:event – The Wishbone event.
Returns:The modified event.
Return type:wishbone.event.Event