SNNU Python-SDK for humans
Project description
陕西师范大学(SNNU) 第三方Python SDK
SNNU-SDK 是陕西师范大学(SNNU)的一个第三方Python-SDK,实现了校内常用服务如教务处、图书馆、校园卡、教室查询等接口的Python封装。
功能
Urp教务系统
- 本学期课表
- 历年课表
- 本学期成绩
- 历年考试成绩
- 必修课绩点
图书馆
- 基本信息
- 在借书籍
- 预约书籍
- 现金事务
- 挂失、解挂图书证
- 预约到馆信息
教室
- 某教学楼的所有教室号
- 某教学楼某周的所有教室的状态
- 某教学楼某周某一教室的状态
校园卡
- 校园卡消费明细
- 校园卡余额
- 校园卡照片
通知新闻
- 某部门的最新通知
- 某部门的最新新闻
- 所支持的部门
安装
pip install snnusdk ✨🍰✨
使用示例
这里是一些简单的使用案例
from snnusdk import Urp urp = Urp(account='B11111111', password='xxx') >>> urp.getCourses() [ { 'id': '1241416', 'name': '算法设计与分析', 'number': '01', 'credits': 3.0, 'attributes': '必修', 'teacher': '王小明*', 'status': '置入', 'info': [ { 'week': '1-18周上', 'day': '2', 'timeOfClass': '1', 'numOfClass': '2', 'campus': '长安校区', 'buildings': '长安文津楼', 'room': '1511' } ] } ] from snnusdk import Libiary libiary = Library(username='B11111111', password='xxx') >>> library.getInfo() { '帐号ID': '2016xxxxx', '姓名': '张三', '昵称': 'xx', '登录次数': '123', '状态': '正常' }
文档
你可以在https://ZhaoQi99.github.io/SNNU-SDK看到本项目的完整使用文档。
贡献你的代码
欢迎您贡献出自己的一份力量,你可以随时提交issue
或fork
本仓库,静候你的pull request
。
贡献者
感谢所有对本项目做出过贡献的开发者(emoji key):
jhy 💻 📖 |
---|
谁在使用
开源协议 & 作者
- 作者:Qi Zhao(zhaoqi99@outlook.com)
- 开源协议:GNU General Public License v3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
snnusdk-0.0.2.tar.gz
(35.1 kB
view hashes)