API Test CLI
A command-line tool for testing HTTP APIs. Send requests, save them, create templates, search response content, and optionally analyze response sentiment.
Installation
pip install apitest-cli
Usage
Run apitest --help for a list of commands. Below are examples:
Send a GET Request
apitest get https://jsonplaceholder.typicode.com/posts
Search in Response
apitest get https://jsonplaceholder.typicode.com/posts --search "title"
Analyze Sentiment
apitest get https://jsonplaceholder.typicode.com/posts --analyze
Send a POST Request
apitest post https://jsonplaceholder.typicode.com/posts --data '{"title": "Hello", "body": "Test"}' --header "Content-Type: application/json"
Save a Request
apitest save myrequest
Replay a Saved Request
apitest replay myrequest
Create a Template
apitest template mytemplate --url https://jsonplaceholder.typicode.com/posts --method GET --header "Content-Type: application/json"
Use a Template
apitest use-template mytemplate
Features
- 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.
Requirements
- Python 3.8+
- Install dependencies:
pip install click requests rich textblob - Download TextBlob corpora (optional):
python -m textblob.download_corpora
License
MIT
Metadata
Release files for apitest-cli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apitest_cli-0.1.1.tar.gz | 4.9 kB | Without provenance | Details for apitest_cli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apitest_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for apitest_cli-0.1.1-py3-none-any.whl |
Total release size: 10.1 kB
Release files / apitest_cli-0.1.1.tar.gz
| Download URL | apitest_cli-0.1.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
418a3679cf46f0d61e48f973f7925ebaae7ee156d93e3eb1b1a5347c426e7d1a
|
|
BLAKE2b-256 checksum How to use checksums |
364e6d66e0714b32bb7b0da59d75e8ba282744378f5bf6b1250c2fcba9e88d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / apitest_cli-0.1.1-py3-none-any.whl
| Download URL | apitest_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
743a457c79a2c48cedec60bcb85df7737df7776958c9ac2266f98d0394fada82
|
|
BLAKE2b-256 checksum How to use checksums |
c5c1a160735ae1a4b2d49b4dda31d47949f8396e26b720e7ce5081c91300ae57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for apitest-cli 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.