mistral.expressions package¶
Submodules¶
mistral.expressions.base_expression module¶
-
class
mistral.expressions.base_expression.
Evaluator
¶ Bases:
object
Expression evaluator interface.
Having this interface gives the flexibility to change the actual expression language used in Mistral DSL for conditions, output calculation etc.
-
classmethod
evaluate
(expression, context)¶ Evaluates the expression against the given data context.
Parameters: - expression – Expression string
- context – Data context
Returns: Expression result
-
classmethod
is_expression
(expression)¶ Check expression string and decide whether it is expression or not.
Parameters: expression – Expression string Returns: True if string is expression
-
classmethod
validate
(expression)¶ Parse and validates the expression.
Parameters: expression – Expression string Returns: True if expression is valid
-
classmethod
mistral.expressions.jinja_expression module¶
-
class
mistral.expressions.jinja_expression.
InlineJinjaEvaluator
¶ Bases:
mistral.expressions.base_expression.Evaluator
-
classmethod
evaluate
(expression, data_context)¶
-
classmethod
is_expression
(s)¶
-
classmethod
validate
(expression)¶
-
classmethod
-
class
mistral.expressions.jinja_expression.
JinjaEvaluator
¶ Bases:
mistral.expressions.base_expression.Evaluator
-
classmethod
evaluate
(expression, data_context)¶
-
classmethod
is_expression
(s)¶
-
classmethod
validate
(expression)¶
-
classmethod
mistral.expressions.yaql_expression module¶
-
class
mistral.expressions.yaql_expression.
InlineYAQLEvaluator
¶ Bases:
mistral.expressions.yaql_expression.YAQLEvaluator
-
classmethod
evaluate
(expression, data_context)¶
-
classmethod
find_inline_expressions
(s)¶
-
classmethod
is_expression
(s)¶
-
classmethod
validate
(expression)¶
-
classmethod
-
class
mistral.expressions.yaql_expression.
YAQLEvaluator
¶ Bases:
mistral.expressions.base_expression.Evaluator
-
classmethod
evaluate
(expression, data_context)¶
-
classmethod
is_expression
(s)¶
-
classmethod
validate
(expression)¶
-
classmethod