Interactive Command Line HTTP Client
HTTP Prompt is an interactive command-line HTTP client featuring autocomplete and syntax highlighting, built on HTTPie and prompt_toolkit.
Key Features
Autocomplete
You’ll never have to memorize the whole commands and HTTP headers thanks to autocomplete with fuzzy matching.
Syntax Highlighting
Improve readability by rendering JSON, HTML and commands with 27 builtin color themes, borrowed from Pygments.
An HTTPie Friend
Designed to work with and built on top of HTTPie, HTTP Prompt makes a perfect companion for HTTPie.
Auto Cookies
Cookie-based authentication made easy as incoming cookies are automatically set into your next request.
Unix-like Pipelines
With pipelines and output redirection, HTTP Prompt works seamlessly with your existing command line tools such as jq.
OpenAPI/Swagger Integration
Specify an OpenAPI/Swagger specification then you’ll be able to explore API endpoints with ls like a filesystem.
Installation
Just install it like a regular Python package:
$ pip install http-prompt
You’ll probably see some permission errors if you’re trying to install it on the system-wide Python. It isn’t recommended. But if that’s what you want to do, you need to sudo:
$ sudo pip install http-prompt
Another alternative is to use --user option to install the package into your user directory:
$ pip install --user http-prompt
To upgrade HTTP Prompt, do:
$ pip install -U http-prompt
Docs
Download