smuer

Easy access to SMU digital platform.


License
MIT
Install
pip install smuer==0.0.5

Documentation

smuer

py35

smuer is an open source api for smu digital platform. Acessing your personal account through smuer in python has never been easier.

Installation

smuer can be installed with this little one-line command:

pip install smuer

Quick start

from smuer import Smuer

#create a smuer
student = Smuer(username='', password='')

# query card info
info = student.get_card_info()
print(info)

# query 2nd semester courses arrangement
table2 = student.get_courses_table(2)
print(table2)

# query 1st semester grade info
table = student.get_grade_table(1)
print(table)

# caculate the average point of 1st semester
av1 = student.caculate_grade(1)
print(av1)

# calculate the average point of 2nd and 3rd semester
av2_3 = student.calculate_grade(2,3)
print(av2_3)

#get active tiezi
tiezis = student.get_active_tiezi()
print(tiezis)

Api

def get_card_info(self):
''' return a string contaning e-card balance info'''

def get_courses_table(self, semester_id):
'''return a list contaning several dicts . 
   every dict contains the structured course info,  
'''

def get_grade_table(self, semester_id):
'''return a list contaning several dicts . 
   every dict contains the structured grade info'''

def caculate_grade(self, *semester_id):
''' return the average point of the semesters'''

def get_active_tiezi(self):
'''return a list contaning several dicts . 
   every dict contains the structured active_tiezi info'''

Todoist

  • get details of Tiezi
  • get library info
  • evaluate teaching

FAQ

none yet

See also

csvwolf/smu-jwc-api: SMU digital APi

evercx/SMU_WebService: a set of restful Api of SMU digital platform

SnakeHacker/SMUHack: SmuLoginPassword_blasting