Python API for interacting with Dartmouth Banner.
This utilizes the requests library and some cookie setting to simplify programmatically interacting with Banner.
You can install python-dartmouthbanner using pip
pip install python-dartmouthbanner
or via sources:
python setup.py install
- Login/logout to Dartmouth Banner
- Get your GPA
- Get your DBA amount
- Add a course given course ID
- Drop a course given course ID
from dartmouthbanner import BannerConnection
connection = BannerConnection()
connection.login("<username>", "<password>")
from dartmouthbanner import BannerConnection
from time import sleep
connection = BannerConnection()
connection.login("<username>", "<password>")
n = 0
while n != 1:
n = connection.addCourse(95799)
sleep(5)
connection.logout()