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-0.9.9.tar.gz
(2.2 kB
view details)
File details
Details for the file curljson-0.9.9.tar.gz
.
File metadata
- Download URL: curljson-0.9.9.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 | 307c1f9d6c34d4e7d688aac4bdb44214b98d5a9adda4100c2848d2e6f5c2d5a8 |
|
MD5 | 7f4a4af1cc4ea24eac9fa67b51d63f07 |
|
BLAKE2b-256 | 1029d521763177daa2bb5f5d3bd3903773841fff48c9a7c7a3ff20e257b1252d |