Support python script as body type
iridakos opened this issue · 1 comments
iridakos commented
It would be nice to have something like python script as available body type.
I was thinking of creating a template python script which would read from the stdin
and then execute(evaluate?) the input.
Then, via ruby, we could start a process (using the childprocess
gem) like python lib/python/template.py
and send the mock's body to the process' stdin
.
- Is it possible to execute a python script isolated (in a safe context)?
- How could we get the evaluated script's output?
iridakos commented
Closing due to lack of help.