An interactive HTTP command-line client
Project description
HTTP Prompt is an interactive command-line HTTP client featuring autocomplete and syntax highlighting, built on HTTPie and prompt_toolkit.
Installation
Just install it like a regular Python package:
$ pip install http-prompt
You’ll probably see some permission errors if you’re installing it on the system-wide Python. If that’s what you want to do, you need to sudo:
$ sudo pip install http-prompt
To upgrade HTTP Prompt, do:
$ pip install -U http-prompt
Quickstart
Starting a session:
$ http-prompt http://httpbin.org
To change URL address, use cd:
> cd api/v1 > cd http://localhost/api
To add headers, querystring, or body parameters, use the syntax as in HTTPie:
> Content-Type:application/json username=john > 'name=John Doe' apikey=abc
You can also add HTTPie options like this:
> --form --auth user:pass
To preview how HTTP Prompt is going to call HTTPie, do:
> httpie post http --auth user:pass --form POST http://localhost/api apikey==abc username=john
To actually send a request, enter one of the HTTP methods:
> get > post > put > patch > delete
To remove an existing header, querystring, body parameter, or HTTPie option:
> rm -h Content-Type > rm -q apikey > rm -b username > rm -o --auth
Roadmap
Allow users to customize via a configuration file
Include more headers for autocomplete
Write more tests
Write more documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for http_prompt-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce582a1491383c71bfdb799253b818079e353f606f829de879da98a9e711d1ee |
|
MD5 | 9a9ebd12b97f291a474c531a2bd3db9b |
|
BLAKE2b-256 | c1093c11d24e2770eea1df8e7339b82fd811ca5d9f6726f5e87e5cbac47be581 |