curl statistics made simple
Project description
# httpstat

httpstat visualize curl(1) statistics in a way of beauty and clarity.
It is a single file🌟 Python script that has no dependency👏 and is compatible with Python 3🍻.
## Installation
There are three ways to get httpstat:
Download the script directly: wget https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py
Install through pip: pip install httpstat
Install through homebrew (macOS only): brew install httpstat
## Usage
Just pass a url with it:
`bash python httpstat.py httpbin.org/get `
> If installed through pip or brew, you can use httpstat as a command instead of python httpstat.py.
By default it will write response body in a tempfile, but you can let it print out by setting HTTPSTAT_SHOW_BODY=true:
`bash HTTPSTAT_SHOW_BODY=true python httpstat.py httpbin.org/get `
You can pass any curl supported arguments after the url (except for -w, -D, -o, -s, -S which are already used by httpstat):
`bash HTTPSTAT_SHOW_BODY=true python httpstat.py httpbin.org/post -X POST --data-urlencode "a=中文" -v `
## Related Projects
[davecheney/httpstat](https://github.com/davecheney/httpstat)
Written in pure Go, this one could run even if you don’t have curl(1) or python(1).
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file httpstat-1.2.0.tar.gz
.
File metadata
- Download URL: httpstat-1.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ad468f97731b744060d90222a734b21f2c89aea604be82747880542c898623 |
|
MD5 | 1eb84bad5b835e3cc6e76a34681028bb |
|
BLAKE2b-256 | 8dc571ecf87a219a9bb7a21219fc40213809a405fbf60d37461f24b8023615e1 |
File details
Details for the file httpstat-1.2.0-py2-none-any.whl
.
File metadata
- Download URL: httpstat-1.2.0-py2-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817304dbb774fcb1143f472f4ea267d2b32f984260206bcb7e05f87504b722f0 |
|
MD5 | cabc5a4fd61359779625ce8552e494e0 |
|
BLAKE2b-256 | f1019947c7f16f5ad6a93650f4cbf91233fc2b3932408ee4d638ef409b7e7262 |