郑州大学移动校园的 Python API 封装 / An API wrapper for Zhengzhou University Mobile Campus written in Python.
Project description
ZZU.Py
郑州大学移动校园的 Python API 封装
安装
pip install zzupy --upgrade
Done & To Do
-
API
- 登录
- 帐密登录
- Cookie 登录
- 登录
-
Supwisdom
- 获取课表
- 获取当日课表
- 获取当周课表
- 获取自定义周数课表
- 获取课表
-
Network
- 校园网认证
- 校园网
- 移动宽带
- 获取在线设备数据
- 获取消耗流量
- 获取使用时长
- 注销设备
- 校园网认证
-
eCard
- 充值电费
- 获取校园卡余额
- 获取剩余电费
前往 ZZU.Py Completion Plan 查看 To Do
文档
Note
Example
from zzupy import ZZUPy
from http.cookies import SimpleCookie
cookie = SimpleCookie()
cookie["userToken"] = "Your userToken"
cookie["userToken"]["domain"] = ".zzu.edu.cn"
cookie["userToken"]["path"] = "/"
me = ZZUPy("usercode","password", cookie)
info = me.login()
print(f"{info["usercode"]} {info["name"]} 登录成功")
print("校园卡余额:", str(me.eCard.get_balance()))
print("剩余电费:", str(me.eCard.get_remaining_energy()))
print("课表JSON:", me.Supwisdom.get_current_week_courses("172").dump_json())
me.Network.login()
print(me.Network.get_online_devices().dump_json())
许可
MIT license
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
zzupy-4.0.0.tar.gz
(28.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zzupy-4.0.0-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file zzupy-4.0.0.tar.gz.
File metadata
- Download URL: zzupy-4.0.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4912718392716c5dda052195622de7e8ccf4e4ce14c04d661e5ae73d0150b8f6
|
|
| MD5 |
fc472f6c4f250453ccc0c9fbd875ca6e
|
|
| BLAKE2b-256 |
1b31e51b6c3b463acbd7f1140e83de1b0e84da7bf87279b584230e698763c50e
|
File details
Details for the file zzupy-4.0.0-py3-none-any.whl.
File metadata
- Download URL: zzupy-4.0.0-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21852429e6c3cbacef7e14724b4ab84d4602f72b7273327432cd369e4c30d305
|
|
| MD5 |
3f7e062cfee1111572fe1706982795f5
|
|
| BLAKE2b-256 |
8e5f43a02836961c801cc58fc807a7da6bbd933bd71281efb9c75ea169daee97
|