Python API Wrappers for NJUPT.
Project description
Python API Wrappers for NJUPT. 南京邮电大学网站接口 Python 封装
功能特性
安装
pipenv install njupt # or pip install njupt
# 仅支持python3
使用示例
这里是一些简单的使用案例
from njupt import Zhengfang
zf = Zhengfang(account='B1xxxxxxx',password='password')
>>> zf.get_courses()
[
{
'class_end': 9,
'class_start': 8,
'day': 1,
'name': '市场营销',
'room': '教4-101',
'teacher': '王波(男)',
'week': '第1-15周|单周',
'interval': 2,
'week_end': 15,
'week_start': 1
},
...
]
from njupt import Card
card = Card(account='11020xxxxxxxxxx',password='passwd')
>>> card.recharge_xianlin_elec(amount=2.33,building_name='兰苑11栋',big_room_id='403', small_room_id='1')
{
'success': True,
'code' : 0,
'Msg' : '缴费成功!'
}
更多示例参见 examples
谁在使用?
- NJUPT-iCal : 生成课表ics文件并导入系统日历
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
njupt-0.2.2.tar.gz
(58.3 kB
view hashes)
Built Distribution
njupt-0.2.2-py2.py3-none-any.whl
(441.5 kB
view hashes)
Close
Hashes for njupt-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d6bbfb4685eee2ff5499078011f0cc4d0339a38f25f9e2a68cd4e4c6c2e41b |
|
MD5 | 78fcfe19f6161797b8ce19c657aa9ef1 |
|
BLAKE2b-256 | 13da9205b7e2a4f8c72f6fd25cff8166300aff6228092325e4d802ce2a2471c5 |