httpstat – Curl Statistics Made Simple

httpstat visualizes curl(1) statistics in some way of attractiveness and readability.
This is a unmarried document Python script that has no dependency and is appropriate with Python 3.


Set up
There are three techniques to get httpstat :

  • Obtain the script immediately: wget https://uncooked.githubusercontent.com/reorx/httpstat/grasp/httpstat.py
  • Via pip: pip set up httpstat
  • Via homebrew (macOS handiest): brew set up httpstat

Utilization
Merely:

python httpstat.py httpbin.org/get

If put in via pip or brew, you’ll be able to use httpstat as a command:

httpstat httpbin.org/get

cURL Choices
As a result of httpstat is a wrapper of cURL, you’ll be able to move any cURL supported possibility after the url (apart from for -w , -D , -o , -s , -S that are already utilized by httpstat ):

httpstat httpbin.org/publish -X POST --data-urlencode "a=b" -v

Atmosphere Variables
httpstat has a number of setting variables to regulate its conduct. Listed below are some utilization demos, you’ll be able to additionally run httpstat --help to look complete rationalization.

  • HTTPSTAT_SHOW_BODY
  • HTTPSTAT_SHOW_IP
  • HTTPSTAT_SHOW_SPEED
  • HTTPSTAT_SAVE_BODY
  • HTTPSTAT_CURL_BIN
  • HTTPSTAT_DEBUG

Set to true to look debugging logs. Default is false

For convenience, you’ll be able to export those environments for your .zshrc or .bashrc , instance:

export HTTPSTAT_SHOW_IP=false
export HTTPSTAT_SHOW_SPEED=true
export HTTPSTAT_SAVE_BODY=false

Similar Initiatives
Listed below are some implementations in more than a few languages:

  • Bash: b4b4r07/httpstat
    That is what precisely I wish to do on the very starting, however gave up because of now not assured in my bash talent, just right task!
  • Node: yosuke-furukawa/httpstat
    b4b4r07 discussed this in his article , might be used as a HTTP shopper additionally.
  • Pass: davecheney/httpstat
    I am working towards Pass just lately, it is satisfied to learn and be told from this one.
  • Pass (library): tcnksm/go-httpstat
    As opposed to being a cli device, this mission is used as library to assist debugging latency of HTTP requests in Pass code, very considerate and helpful, see extra on this article
  • PHP: talhasch/php-httpstat
    The PHP implementation via @talhasch

Some code blocks in httpstat are copied from different initiatives of mine, take a look:

Marshmallow

Marshmallow Man, AppMarsh.com blog spiritual leader, has strived to make AppMarsh an independent and free blog from world monetary system. He and his followers are exiled by Google monster.