A Python package that allows for quick use of USTC network services.
- Unified Identity Authentication System: Simplifies login and session management.
- Educational System: Access course table, grades, and course planning tools.
- Young Platform: Manage Second Classes.
Install PyUSTC via pip:
pip install pyustc
Here's an example of logging in via the UIAS:
from pyustc import Passport
passport = Passport()
passport.login('username', 'password')
Access your course table via the EduSystem module:
from pyustc import EduSystem
es = EduSystem(passport)
table = es.get_course_table()
for course in table.courses:
print(course)
For more examples and detailed documentation, see here.
We welcome contributions of all types! Submit issues, code, or suggestions via GitHub.