Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python script as body type #13

Closed
iridakos opened this issue Apr 13, 2016 · 1 comment
Closed

Support python script as body type #13

iridakos opened this issue Apr 13, 2016 · 1 comment

Comments

@iridakos
Copy link
Owner

It would be nice to have something like python script as available body type.

Response body

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 iridakos changed the title Support python scripts as body types Support python script as body type Apr 13, 2016
@iridakos
Copy link
Owner Author

iridakos commented Nov 6, 2017

Closing due to lack of help.

@iridakos iridakos closed this as completed Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant