dagstd.operations package

Submodules

dagstd.operations.maths module

maths.py contains ops that perform common mathematical operations.

(op)dagstd.operations.maths.add(args: List)[source]

Adds the given arguments.

(op)dagstd.operations.maths.divide(x, args: List)[source]

Divides the first argument by the given arguments.

(op)dagstd.operations.maths.multiply(args: List)[source]

Multiplies the given arguments.

(op)dagstd.operations.maths.subtract(x, args: List)[source]

Subtracts the given arguments from the first argument.

dagstd.operations.strings module

strings.py contains helper ops for working with strings.

(op)dagstd.operations.strings.fmt(string: str, args: List) str[source]

Formats a string with the given arguments.

Parameters
  • string (str) – The string to format.

  • args (List) – The arguments to format into the string.

Returns

The formatted string.

Return type

str

Module contents