-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
75 lines (58 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from setuptools import setup
DESC = """
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"
}
"""
setup(
name='curljson',
version='0.9.9',
description='curl with pretty json outputs',
long_description=DESC,
url='https://github.com/mitnk/curljson',
author='mitnk',
author_email='[email protected]',
license='MIT',
keywords='curl json pretty',
py_modules=["curljson"],
entry_points={
'console_scripts': [
'curljson=curljson:main',
],
},
)