pykappa.expression¶
Represents Kappa arithmetic expressions.
- class pykappa.expression.Expression(type, **attrs)[source]¶
Algebraic expressions as specified by the Kappa language.
- classmethod from_kappa(kappa_str)[source]¶
Parse an Expression from a Kappa string.
- Raises:
AssertionError – If the string doesn’t represent a valid expression.
- Parameters:
kappa_str (str)
- Return type:
- property kappa_str: str¶
Raises: ValueError: If expression type is not supported for string conversion.