Skip to main content

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

snatch_cli-0.2.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snatch_cli-0.2.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

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

Hashes for snatch_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a474f7d9250389f6c35465f611bc670f036085bd50800333561fca59d719008e
MD5 76e63cdce819a042792ecf1759915075
BLAKE2b-256 c4ec08d5c0117d75b751d09884ad8ec01d95159f7c21e770fa610fdebcf7ce5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for snatch_cli-0.2.2.tar.gz:

Publisher: python-publish.yml on thecoolguy62aws/snatch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for snatch_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb64dc2340baf8c1e4aa92aef6b211c61a1835a1d908301ad9522c8b369aaa43
MD5 1f6d1b4e284c31a712211e7f47550523
BLAKE2b-256 2d561c710ca816230326a5b8b4f25e7518a6f848b46b17d5c2a8bd404900e564

See more details on using hashes here.

Provenance

The following attestation bundles were made for snatch_cli-0.2.2-py3-none-any.whl:

Publisher: python-publish.yml on thecoolguy62aws/snatch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page