3.1.1.9.1.1. etfl.utils.parsing¶
Parsing utilities
3.1.1.9.1.1.1. Module Contents¶
3.1.1.9.1.1.1.1. Functions¶
|
Test evaluability of a string for eval with sympy |
|
Parses a string gpr into a sympy expression |
|
From https://www.oreilly.com/library/view/python-cookbook/0596001673/ch03s15.html |
|
|
|
|
|
|
|
3.1.1.9.1.1.1.2. Attributes¶
|
|
|
|
|
- ETFL.ESCAPE_CHARS = ['\\n', '\\t', '\\s', '"', "'"]¶
- ETFL.GPR2EXPR_SUBS_DICT¶
- ETFL.EXPR2GPR_SUBS_DICT¶
- ETFL.isevaluable(s)¶
Test evaluability of a string for eval with sympy
- Parameters
s –
- Returns
- ETFL.parse_gpr(gpr)¶
Parses a string gpr into a sympy expression
- Parameters
gpr –
- Returns
- ETFL.multiple_replace(text, adict, ignore_case=False)¶
From https://www.oreilly.com/library/view/python-cookbook/0596001673/ch03s15.html
- ETFL.simplify_gpr(gpr)¶
- ETFL.expand_gpr(gpr)¶
- ETFL.expr2gpr(simplified_formatted_gpr)¶
- ETFL.gpr2expr(gpr)¶