# ZZU.Py
<font color=gray size=3>郑州大学移动校园的 Python API 封装</font>
## 安装
```shell
pip install zzupy --upgrade
```
## Done & To Do
- [x] Supwisdom
- [x] 获取课表
- [x] Network
- [x] 校园网认证
- [x] 校园网
- [x] 移动宽带
- [x] 获取在线设备数据
- [x] 获取消耗流量
- [x] 获取使用时长
- [x] 注销设备
- [x] eCard
- [x] 充值电费
- [x] 获取校园卡余额
- [x] 获取剩余电费
前往 [ZZU.Py Completion Plan](https://github.com/users/Illustar0/projects/1) 查看 To Do
## 文档
[文档](https://illustar0.github.io/ZZU.Py/)
## Note
[Note](https://github.com/Illustar0/ZZU.Py/blob/main/NOTE.md)
## Example
```Py
from zzupy import ZZUPy
me = ZZUPy("usercode","password")
info = me.login()
print(f"{info[0]} {info[1]} 登录成功")
print("校园卡余额:", str(me.eCard.get_balance()))
print("剩余电费:", str(me.eCard.get_remaining_power("roomid")))
print("课表JSON:", me.Supwisdom.get_courses("2024-12-09"))
me.Network.login()
print(me.Network.get_online_devices())
```
## 许可
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Raw data
{
"_id": null,
"home_page": "https://github.com/Illustar0/ZZU.Py",
"name": "zzupy",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Illustar0",
"author_email": "me@illustar0.com",
"download_url": "https://files.pythonhosted.org/packages/41/31/c291a580a66584eef2d58865ad601f2ba47fbc44b483aaa28a333ec0e0e6/zzupy-1.0.2.tar.gz",
"platform": null,
"description": "# ZZU.Py\n<font color=gray size=3>\u90d1\u5dde\u5927\u5b66\u79fb\u52a8\u6821\u56ed\u7684 Python API \u5c01\u88c5</font>\n\n## \u5b89\u88c5\n\n```shell\npip install zzupy --upgrade\n```\n\n## Done & To Do\n- [x] Supwisdom\n - [x] \u83b7\u53d6\u8bfe\u8868\n- [x] Network\n - [x] \u6821\u56ed\u7f51\u8ba4\u8bc1 \n - [x] \u6821\u56ed\u7f51\n - [x] \u79fb\u52a8\u5bbd\u5e26\n - [x] \u83b7\u53d6\u5728\u7ebf\u8bbe\u5907\u6570\u636e\n - [x] \u83b7\u53d6\u6d88\u8017\u6d41\u91cf\n - [x] \u83b7\u53d6\u4f7f\u7528\u65f6\u957f\n - [x] \u6ce8\u9500\u8bbe\u5907\n- [x] eCard\n - [x] \u5145\u503c\u7535\u8d39 \n - [x] \u83b7\u53d6\u6821\u56ed\u5361\u4f59\u989d\n - [x] \u83b7\u53d6\u5269\u4f59\u7535\u8d39\n\n\u524d\u5f80 [ZZU.Py Completion Plan](https://github.com/users/Illustar0/projects/1) \u67e5\u770b To Do\n\n## \u6587\u6863\n\n[\u6587\u6863](https://illustar0.github.io/ZZU.Py/)\n\n## Note\n[Note](https://github.com/Illustar0/ZZU.Py/blob/main/NOTE.md)\n\n## Example\n\n```Py\nfrom zzupy import ZZUPy\n\nme = ZZUPy(\"usercode\",\"password\")\ninfo = me.login()\nprint(f\"{info[0]} {info[1]} \u767b\u5f55\u6210\u529f\")\nprint(\"\u6821\u56ed\u5361\u4f59\u989d\uff1a\", str(me.eCard.get_balance()))\nprint(\"\u5269\u4f59\u7535\u8d39\uff1a\", str(me.eCard.get_remaining_power(\"roomid\")))\nprint(\"\u8bfe\u8868JSON\uff1a\", me.Supwisdom.get_courses(\"2024-12-09\"))\nme.Network.login()\nprint(me.Network.get_online_devices())\n```\n\n## \u8bb8\u53ef\n\nLicense :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u90d1\u5dde\u5927\u5b66\u79fb\u52a8\u6821\u56ed\u7684 Python API \u5c01\u88c5 / An API wrapper for Zhengzhou University Mobile Campus written in Python.",
"version": "1.0.2",
"project_urls": {
"Documentation": "https://illustar0.github.io/ZZU.Py",
"Homepage": "https://github.com/Illustar0/ZZU.Py",
"Repository": "https://github.com/Illustar0/ZZU.Py"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b2a7d4106f4213dbb9180af342f3c3c720579bf2e1761fed5952745403094e2e",
"md5": "6bc07f2267bf6fa6e8e4a71659810982",
"sha256": "90d9df34c6e9cc41fb454a54fe2290f77b25440b577ed697696e68ed2c6ceca7"
},
"downloads": -1,
"filename": "zzupy-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6bc07f2267bf6fa6e8e4a71659810982",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 14766,
"upload_time": "2025-02-09T09:51:43",
"upload_time_iso_8601": "2025-02-09T09:51:43.523433Z",
"url": "https://files.pythonhosted.org/packages/b2/a7/d4106f4213dbb9180af342f3c3c720579bf2e1761fed5952745403094e2e/zzupy-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4131c291a580a66584eef2d58865ad601f2ba47fbc44b483aaa28a333ec0e0e6",
"md5": "0164cd994910147c0fbff4a3b2fb9218",
"sha256": "ccf9c3536b7e0526751e4b05fba7544ff7d855c7a6198a2e97432c8823cdc92c"
},
"downloads": -1,
"filename": "zzupy-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "0164cd994910147c0fbff4a3b2fb9218",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 11516,
"upload_time": "2025-02-09T09:51:45",
"upload_time_iso_8601": "2025-02-09T09:51:45.295980Z",
"url": "https://files.pythonhosted.org/packages/41/31/c291a580a66584eef2d58865ad601f2ba47fbc44b483aaa28a333ec0e0e6/zzupy-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-09 09:51:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Illustar0",
"github_project": "ZZU.Py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "fake_useragent",
"specs": []
},
{
"name": "gmalg",
"specs": []
},
{
"name": "httpx",
"specs": []
},
{
"name": "loguru",
"specs": []
},
{
"name": "psutil",
"specs": []
},
{
"name": "pycryptodome",
"specs": []
},
{
"name": "typing_extensions",
"specs": []
}
],
"lcname": "zzupy"
}