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.
Source Distribution
curljson-1.0.0.tar.gz
(2.2 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d853f2ffbea7b1bfc806452a9650c686d150c0b74ea72ca45b8fecc8f687317 |
|
MD5 | 7e9e8c740ea8c338206adf7147a9e589 |
|
BLAKE2b-256 | 5640206888ffc96fbe39719f32b49fd8ac82396064b56ad7aad539e5f3375b92 |