curljson-1.0.0
توضیحات
curl with pretty json outputs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | curljson-1.0.0 |
| نام | curljson |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mitnk |
| ایمیل نویسنده | w@mitnk.com |
| آدرس صفحه اصلی | https://github.com/mitnk/curljson |
| آدرس اینترنتی | https://pypi.org/project/curljson/ |
| مجوز | MIT |
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"
}
نحوه نصب
نصب پکیج whl curljson-1.0.0:
pip install curljson-1.0.0.whl
نصب پکیج tar.gz curljson-1.0.0:
pip install curljson-1.0.0.tar.gz