Skip to main content

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"
}

Download files

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

Source Distribution

curljson-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file curljson-1.0.0.tar.gz.

File metadata

  • Download URL: curljson-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for curljson-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d853f2ffbea7b1bfc806452a9650c686d150c0b74ea72ca45b8fecc8f687317
MD5 7e9e8c740ea8c338206adf7147a9e589
BLAKE2b-256 5640206888ffc96fbe39719f32b49fd8ac82396064b56ad7aad539e5f3375b92

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

0.9.9

1 file

0.9.8

1 file

0.9.7

1 file

0.9.5

1 file

0.9.3

1 file

0.9.1

1 file

0.9.0

1 file

Supported by

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