http-prompt
http-prompt copied to clipboard
Define a python/REPL syntax
Another thing I would find SUPER useful would be the ability to use http-prompt as a normal Python REPL.
I'm imagining that this would either be with back ticks, a python() function, or a python statement.
For instance, if I could do something like:
https://api.amazon.com> `import settings.API_KEY as api_secret_key`
https://api.amazon.com> api_key=`api_secret_key`
https://api.amazon.com> nonce=`import random; random.randint(0, 99)`
https://api.amazon.com> post
This would be so, so amazing.
Cool idea. Someone else actually suggested me to have shell command integration so you can do something like:
> "Authorization:Basic `cat ~/.apiauths | grep JIRA`"
Integrating Python syntax would be useful, too. Thanks for the suggestion!