Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 790 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 790 Bytes

PlanetTerp API Python Wrapper

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).

Example usage

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)