Skip to main content

XTU EMS API client and CLI utilities

Project description

湘潭大学网站接入指南

本项目旨在帮助开发者将湘潭大学的各类网站。

本项目采用开源协议,欢迎大家参与贡献。允许商用和二次开发,但请保留原作者信息。本项目对于因使用本项目而产生的任何法律责任不承担任何责任。使用者需自行承担使用风险。本项目仅作为技术分享学习之用。

项目创建于2026年1月,所用 API 和指南不保证全部可用,如有问题请提交issue

PyPI 打包使用说明

安装

pip install xtu-ems-api

命令行工具

安装后可直接使用下列命令获取湘潭大学 EMS 信息:

xtu-sso-login --username <学号> --password <密码>
xtu-ems-auth --token <token>
xtu-course-schedule --token <token>
xtu-classroom-availability --token <token> --year 2025 --term 1 --weeks 1 2 3 --day-of-week 1 --sections 1 2
xtu-exam-schedule --token <token>
xtu-student-info --token <token>
xtu-teaching-calendar --token <token>
xtu-transcript --token <token>

命令支持 --compressed 参数以兼容压缩后的 Cookie token。

作为库调用

from xtu_ems_api import sso_auth, ems_get_course_schedule

# 登录获取 token
cookies = sso_auth("202200000000", "your-password")

# 查询课表
courses = ems_get_course_schedule(cookies, year=2025, term=1)

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

xtu_ems_api-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xtu_ems_api-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file xtu_ems_api-1.0.0.tar.gz.

File metadata

  • Download URL: xtu_ems_api-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xtu_ems_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b4eb5d165f7ac5ae4e0115dfa79b8e6b6ed5f7fe5b9e89ff8463c7e601a88207
MD5 0b1fe6dc772f403763311d7e3ce09643
BLAKE2b-256 f47f3b522bd2f046a5e84d4306c869daf18b067804e1f11d149e2f2286dec06f

See more details on using hashes here.

File details

Details for the file xtu_ems_api-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: xtu_ems_api-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xtu_ems_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d14970a76b83a15d872680a0adcd0d58e200f63f56b7b70eb35bdcec243da4e8
MD5 35ed3767920550f821c46d5ca2f2a7cf
BLAKE2b-256 87794efbef9cbf998229d9fba5631cbeba13de05f5f189f72272f9b1543419d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page