An interactive, stateful command line tool for HTTP requests.
Project description
Snatch
About
Snatch is an interactive, stateful command-line HTTP client. Don't like typing long cURL commands just to see them fail and have to retype them? Me neither -- that's why I made Snatch.
Example
Here is a real-life example of sending a request in Snatch and cURL so you can compare the two.
cURL
$ curl -X POST -d '{"name": "John", "age": 27}' -H "Content-Type: application/json" http://localhost
Snatch
snatch> set url http://localhost
[+] Successfully set attribute 'url'
snatch> set method post
[+] Successfully set attribute 'method'
snatch> set body {"name": "John", "age": 27}
[+] Successfully set attribute 'body'
snatch> set headers Content-Type application/json
[+] Successfully set sub-attribute 'Content-Type' of attribute 'headers'
snatch> snatch
[*] Sending POST request to https://localhost
[+] Response Received: 200 OK
{"details": "success"}
Snatch might require more individual commands, but all those commands are significantly shorter and more intuitive, making the tool more overall easier to learn to use and easier to use for simple API testing.
Installation
One of these commands should work!
pipx install snatch-cli
pip3 install snatch-cli
pip install snatch-cli
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snatch_cli-0.2.2.tar.gz.
File metadata
- Download URL: snatch_cli-0.2.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a474f7d9250389f6c35465f611bc670f036085bd50800333561fca59d719008e
|
|
| MD5 |
76e63cdce819a042792ecf1759915075
|
|
| BLAKE2b-256 |
c4ec08d5c0117d75b751d09884ad8ec01d95159f7c21e770fa610fdebcf7ce5a
|
Provenance
The following attestation bundles were made for snatch_cli-0.2.2.tar.gz:
Publisher:
python-publish.yml on thecoolguy62aws/snatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snatch_cli-0.2.2.tar.gz -
Subject digest:
a474f7d9250389f6c35465f611bc670f036085bd50800333561fca59d719008e - Sigstore transparency entry: 2204757654
- Sigstore integration time:
-
Permalink:
thecoolguy62aws/snatch@95eb851e6aae7ad91b5e970fc99e0966a712f307 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/thecoolguy62aws
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@95eb851e6aae7ad91b5e970fc99e0966a712f307 -
Trigger Event:
push
-
Statement type:
File details
Details for the file snatch_cli-0.2.2-py3-none-any.whl.
File metadata
- Download URL: snatch_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb64dc2340baf8c1e4aa92aef6b211c61a1835a1d908301ad9522c8b369aaa43
|
|
| MD5 |
1f6d1b4e284c31a712211e7f47550523
|
|
| BLAKE2b-256 |
2d561c710ca816230326a5b8b4f25e7518a6f848b46b17d5c2a8bd404900e564
|
Provenance
The following attestation bundles were made for snatch_cli-0.2.2-py3-none-any.whl:
Publisher:
python-publish.yml on thecoolguy62aws/snatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snatch_cli-0.2.2-py3-none-any.whl -
Subject digest:
cb64dc2340baf8c1e4aa92aef6b211c61a1835a1d908301ad9522c8b369aaa43 - Sigstore transparency entry: 2204757657
- Sigstore integration time:
-
Permalink:
thecoolguy62aws/snatch@95eb851e6aae7ad91b5e970fc99e0966a712f307 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/thecoolguy62aws
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@95eb851e6aae7ad91b5e970fc99e0966a712f307 -
Trigger Event:
push
-
Statement type: