Skip to main content

curl with pretty json outputs

Project description

Home Page: https://github.com/mitnk/curljson

curl with pretty JSON outputs.

Install

$ pip install curljson

Usages

Use as curl

$ curljson -i https://httpbin.org/get

HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.8.1
Date: Mon, 23 Jul 2018 22:46:53 GMT
Content-Type: application/json
Content-Length: 166
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur

{
    "headers": {
        "Accept": "*/*",
        "Host": "httpbin.org",
        "User-Agent": "curl/7.43.0",
        "Connection": "close"
    },
    "origin": "12.13.7.19",
    "args": {},
    "url": "https://httpbin.org/get"
}

Pretty json format via stdin

$ echo '{"bin": "curl", "lang": "Python"}' | curljson
{
    "lang": "Python",
    "bin": "curl"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for curljson, version 0.9.9
Filename, size File type Python version Upload date Hashes
Filename, size curljson-0.9.9.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page