Tracking Steps

Builtin tracking steps to simplify counting.

increment

pyapp_flow.builtin.tracking.increment(target_var: str, *, amount: int = 1) Step

Increment a counter.

Parameters:
  • target_var – Target variable containing counter instance.

  • amount – Amount to increment; default is 1

increment("counter")

decrement

pyapp_flow.builtin.tracking.decrement(target_var: str, *, amount: int = 1) Step

Decrement a counter.

Parameters:
  • target_var – Target variable containing counter instance.

  • amount – Amount to decrement; default is 1

decrement("counter", amount=2)

Counter

Value that will allow a counter that can exist across multiple scopes.

class pyapp_flow.builtin.tracking.Counter(initial_value: int = 0)

Integer counter that will survive scope changes.

Counter provides common integer methods.

property value: int

Return raw integer value.