This is a Python wrapper around the PlanetTerp API.
To install, either use the code on GitHub, or install with pip install planetterp
(you might need to run pip3 install planetterp
).
import planetterp
course = planetterp.course(name="MATH140", reviews=True)
courses = planetterp.courses(department="MATH", limit=2)
# replace Jon Snow with the name of any professor
prof = planetterp.professor(name="Jon Snow", reviews="true")
profs = planetterp.professors(type_="ta", limit=2)
# same here
grades = planetterp.grades(course="MATH140", professor="Jon Snow")
print(course)
print(courses)
print(prof)
print(profs)
print(grades)