xtu-ems-api 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 XTU EMS API Maintainers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: xtu-ems-api
3
+ Version: 1.0.0
4
+ Summary: XTU EMS API client and CLI utilities
5
+ Author-email: LeoTan2004 <3509836544@qq.com>
6
+ License: MIT
7
+ Keywords: xtu,ems,education,cli,api
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Intended Audience :: Education
12
+ Classifier: Topic :: Education
13
+ Classifier: Topic :: Internet :: WWW/HTTP
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: requests>=2.28
18
+ Requires-Dist: beautifulsoup4>=4.12
19
+ Requires-Dist: pdfplumber>=0.11
20
+ Dynamic: license-file
21
+
22
+ # 湘潭大学网站接入指南
23
+
24
+ 本项目旨在帮助开发者将湘潭大学的各类网站。
25
+
26
+ 本项目采用开源协议,欢迎大家参与贡献。允许商用和二次开发,但请保留原作者信息。本项目对于因使用本项目而产生的任何法律责任不承担任何责任。使用者需自行承担使用风险。本项目仅作为技术分享学习之用。
27
+
28
+ 项目创建于2026年1月,所用 API 和指南不保证全部可用,如有问题请提交issue
29
+
30
+ ## PyPI 打包使用说明
31
+
32
+ ### 安装
33
+
34
+ ```bash
35
+ pip install xtu-ems-api
36
+ ```
37
+
38
+ ### 命令行工具
39
+
40
+ 安装后可直接使用下列命令获取湘潭大学 EMS 信息:
41
+
42
+ ```bash
43
+ xtu-sso-login --username <学号> --password <密码>
44
+ xtu-ems-auth --token <token>
45
+ xtu-course-schedule --token <token>
46
+ xtu-classroom-availability --token <token> --year 2025 --term 1 --weeks 1 2 3 --day-of-week 1 --sections 1 2
47
+ xtu-exam-schedule --token <token>
48
+ xtu-student-info --token <token>
49
+ xtu-teaching-calendar --token <token>
50
+ xtu-transcript --token <token>
51
+ ```
52
+
53
+ 命令支持 `--compressed` 参数以兼容压缩后的 Cookie token。
54
+
55
+ ### 作为库调用
56
+
57
+ ```python
58
+ from xtu_ems_api import sso_auth, ems_get_course_schedule
59
+
60
+ # 登录获取 token
61
+ cookies = sso_auth("202200000000", "your-password")
62
+
63
+ # 查询课表
64
+ courses = ems_get_course_schedule(cookies, year=2025, term=1)
65
+ ```
@@ -0,0 +1,44 @@
1
+ # 湘潭大学网站接入指南
2
+
3
+ 本项目旨在帮助开发者将湘潭大学的各类网站。
4
+
5
+ 本项目采用开源协议,欢迎大家参与贡献。允许商用和二次开发,但请保留原作者信息。本项目对于因使用本项目而产生的任何法律责任不承担任何责任。使用者需自行承担使用风险。本项目仅作为技术分享学习之用。
6
+
7
+ 项目创建于2026年1月,所用 API 和指南不保证全部可用,如有问题请提交issue
8
+
9
+ ## PyPI 打包使用说明
10
+
11
+ ### 安装
12
+
13
+ ```bash
14
+ pip install xtu-ems-api
15
+ ```
16
+
17
+ ### 命令行工具
18
+
19
+ 安装后可直接使用下列命令获取湘潭大学 EMS 信息:
20
+
21
+ ```bash
22
+ xtu-sso-login --username <学号> --password <密码>
23
+ xtu-ems-auth --token <token>
24
+ xtu-course-schedule --token <token>
25
+ xtu-classroom-availability --token <token> --year 2025 --term 1 --weeks 1 2 3 --day-of-week 1 --sections 1 2
26
+ xtu-exam-schedule --token <token>
27
+ xtu-student-info --token <token>
28
+ xtu-teaching-calendar --token <token>
29
+ xtu-transcript --token <token>
30
+ ```
31
+
32
+ 命令支持 `--compressed` 参数以兼容压缩后的 Cookie token。
33
+
34
+ ### 作为库调用
35
+
36
+ ```python
37
+ from xtu_ems_api import sso_auth, ems_get_course_schedule
38
+
39
+ # 登录获取 token
40
+ cookies = sso_auth("202200000000", "your-password")
41
+
42
+ # 查询课表
43
+ courses = ems_get_course_schedule(cookies, year=2025, term=1)
44
+ ```
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["setuptools>=69", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "xtu-ems-api"
7
+ version = "1.0.0"
8
+ description = "XTU EMS API client and CLI utilities"
9
+ readme = "README.md"
10
+ authors = [
11
+ { name = "LeoTan2004", email = "3509836544@qq.com"}
12
+ ]
13
+ license = { text = "MIT" }
14
+ requires-python = ">=3.10"
15
+ dependencies = [
16
+ "requests>=2.28",
17
+ "beautifulsoup4>=4.12",
18
+ "pdfplumber>=0.11",
19
+ ]
20
+ keywords = ["xtu", "ems", "education", "cli", "api"]
21
+ classifiers = [
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.10",
24
+ "License :: OSI Approved :: MIT License",
25
+ "Intended Audience :: Education",
26
+ "Topic :: Education",
27
+ "Topic :: Internet :: WWW/HTTP",
28
+ ]
29
+
30
+ [project.scripts]
31
+ xtu-sso-login = "xtu_ems_api.sso_login:main"
32
+ xtu-ems-auth = "xtu_ems_api.ems_auth:main"
33
+ xtu-course-schedule = "xtu_ems_api.course_schedule:main"
34
+ xtu-classroom-availability = "xtu_ems_api.classroom_availability:main"
35
+ xtu-exam-schedule = "xtu_ems_api.exam_schedule:main"
36
+ xtu-student-info = "xtu_ems_api.student_info:main"
37
+ xtu-teaching-calendar = "xtu_ems_api.teaching_calendar:main"
38
+ xtu-transcript = "xtu_ems_api.transcript:main"
39
+
40
+ [tool.setuptools.packages.find]
41
+ where = ["skills/scripts"]
42
+
43
+ [tool.setuptools.package-dir]
44
+ "" = "skills/scripts"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: xtu-ems-api
3
+ Version: 1.0.0
4
+ Summary: XTU EMS API client and CLI utilities
5
+ Author-email: LeoTan2004 <3509836544@qq.com>
6
+ License: MIT
7
+ Keywords: xtu,ems,education,cli,api
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Intended Audience :: Education
12
+ Classifier: Topic :: Education
13
+ Classifier: Topic :: Internet :: WWW/HTTP
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: requests>=2.28
18
+ Requires-Dist: beautifulsoup4>=4.12
19
+ Requires-Dist: pdfplumber>=0.11
20
+ Dynamic: license-file
21
+
22
+ # 湘潭大学网站接入指南
23
+
24
+ 本项目旨在帮助开发者将湘潭大学的各类网站。
25
+
26
+ 本项目采用开源协议,欢迎大家参与贡献。允许商用和二次开发,但请保留原作者信息。本项目对于因使用本项目而产生的任何法律责任不承担任何责任。使用者需自行承担使用风险。本项目仅作为技术分享学习之用。
27
+
28
+ 项目创建于2026年1月,所用 API 和指南不保证全部可用,如有问题请提交issue
29
+
30
+ ## PyPI 打包使用说明
31
+
32
+ ### 安装
33
+
34
+ ```bash
35
+ pip install xtu-ems-api
36
+ ```
37
+
38
+ ### 命令行工具
39
+
40
+ 安装后可直接使用下列命令获取湘潭大学 EMS 信息:
41
+
42
+ ```bash
43
+ xtu-sso-login --username <学号> --password <密码>
44
+ xtu-ems-auth --token <token>
45
+ xtu-course-schedule --token <token>
46
+ xtu-classroom-availability --token <token> --year 2025 --term 1 --weeks 1 2 3 --day-of-week 1 --sections 1 2
47
+ xtu-exam-schedule --token <token>
48
+ xtu-student-info --token <token>
49
+ xtu-teaching-calendar --token <token>
50
+ xtu-transcript --token <token>
51
+ ```
52
+
53
+ 命令支持 `--compressed` 参数以兼容压缩后的 Cookie token。
54
+
55
+ ### 作为库调用
56
+
57
+ ```python
58
+ from xtu_ems_api import sso_auth, ems_get_course_schedule
59
+
60
+ # 登录获取 token
61
+ cookies = sso_auth("202200000000", "your-password")
62
+
63
+ # 查询课表
64
+ courses = ems_get_course_schedule(cookies, year=2025, term=1)
65
+ ```
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ skills/scripts/xtu_ems_api.egg-info/PKG-INFO
5
+ skills/scripts/xtu_ems_api.egg-info/SOURCES.txt
6
+ skills/scripts/xtu_ems_api.egg-info/dependency_links.txt
7
+ skills/scripts/xtu_ems_api.egg-info/entry_points.txt
8
+ skills/scripts/xtu_ems_api.egg-info/requires.txt
9
+ skills/scripts/xtu_ems_api.egg-info/top_level.txt
@@ -0,0 +1,9 @@
1
+ [console_scripts]
2
+ xtu-classroom-availability = xtu_ems_api.classroom_availability:main
3
+ xtu-course-schedule = xtu_ems_api.course_schedule:main
4
+ xtu-ems-auth = xtu_ems_api.ems_auth:main
5
+ xtu-exam-schedule = xtu_ems_api.exam_schedule:main
6
+ xtu-sso-login = xtu_ems_api.sso_login:main
7
+ xtu-student-info = xtu_ems_api.student_info:main
8
+ xtu-teaching-calendar = xtu_ems_api.teaching_calendar:main
9
+ xtu-transcript = xtu_ems_api.transcript:main
@@ -0,0 +1,3 @@
1
+ requests>=2.28
2
+ beautifulsoup4>=4.12
3
+ pdfplumber>=0.11