A command-line tool for testing HTTP APIs. Send requests, save them, create templates, search response content, and optionally analyze response sentiment.
pip install apitest-cliRun apitest --help for a list of commands. Below are examples:
apitest get https://jsonplaceholder.typicode.com/postsapitest get https://jsonplaceholder.typicode.com/posts --search "title"apitest get https://jsonplaceholder.typicode.com/posts --analyzeapitest post https://jsonplaceholder.typicode.com/posts --data '{"title": "Hello", "body": "Test"}' --header "Content-Type: application/json"apitest save myrequestapitest replay myrequestapitest template mytemplate --url https://jsonplaceholder.typicode.com/posts --method GET --header "Content-Type: application/json"apitest use-template mytemplate- Send GET/POST requests with custom headers and JSON data.
- Save and replay requests.
- Create and use request templates.
- Search keywords in responses with highlighted results.
- Optional sentiment analysis of response text (English only).
- Responses saved as JSON files in
responses/directory.
- Python 3.8+
- Install dependencies:
pip install click requests rich textblob - Download TextBlob corpora (optional):
python -m textblob.download_corpora
MIT