Open maxfischer2781 opened 4 years ago
The YAML format does not allow for math or other convenience syntax. cobald could provide a YAML tag plugin for basic evaluation and unit replacement.
cobald
Before:
maxBytes: 10485760
After:
maxBytes: !eval 10 MiB maxBytes: !eval 10 * 1024 * 1024
Possible to use ast.literal_eval for the evaluation part.
ast.literal_eval
It could be worth using pyparsing to offer lambda support.
pyparsing
The YAML format does not allow for math or other convenience syntax.
cobald
could provide a YAML tag plugin for basic evaluation and unit replacement.Before:
After:
Possible to use
ast.literal_eval
for the evaluation part.