Run any complex logic with python and get the result with Insomnia.
- Have
python3configured at your$PATH
- Open Insomnia
- Go to Application > Preferences > Plugins
- Type
insomnia-plugin-python-script - Install the plugin
Your script must return the desired result by printing it.
At ~/path/to/file.py:
def complex_logic():
return ("complex_result")
print(complex_logic())
Type CTRL + SPACE then search for Python Script, and select the plugin
You'd better use a global path starting with ~/ to avoid any problem

