forked from hellflame/WHU-net-access
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
98 lines (64 loc) · 1.78 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# coding=utf8
from setuptools import setup, find_packages
docs = """武大校园网终端认证
#####################
个人用登录武大校园网终端小工具(已经懒的开浏览器了....)
安装
=====
.. code:: bash
$ sudo pip install net-access-whu
使用
====
* 直接登录
.. code:: bash
$ net-access-whu -u 2020301260064 -p hellflame
* 配置文件登录
.. code:: bash
$ net-access-whu -c login.json
`login.json` 文件格式
.. code::
{
"username": 2020301260064,
"password": "hellflame"
}
* 退出
退出时许至少指定用户名,因为用户退出链接会以文本方式存储到系统临时目录(系统会自动清理)
指定配置文件
.. code:: bash
$ net-access-whu -c login.json -d logout
指定用户名
.. code:: bash
$ net-access-whu -u 2020301260064 -d logout
之后就等着查看返回消息就好了
环境兼容
=========
*python2*
*linux, mac os, windows*
"""
setup(
name='net-access-whu',
version='0.4.4',
keywords=('network auth', 'WHU'),
license='Apache License',
description="终端登录武汉大学校园网, 国软IIS-WEB",
author="hellflame",
author_email="hellflamedly@gmail.com",
url="https://github.com/hellflame/WHU-net-access",
long_description=docs,
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2 :: Only',
'Environment :: Console',
'License :: OSI Approved :: Apache Software License',
"Operating System :: OS Independent"
],
platforms='all',
entry_points={
'console_scripts': [
'net-access-whu=net_access:main'
]
}
)