http-prompt icon indicating copy to clipboard operation
http-prompt copied to clipboard

Define a python/REPL syntax

Open Miserlou opened this issue 9 years ago • 1 comments

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.

Miserlou avatar May 20 '16 19:05 Miserlou

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!

eliangcs avatar May 21 '16 01:05 eliangcs