pennathletics

Python SDK for Penn Athletics.


License
MIT
Install
pip install pennathletics==0.0.1

Documentation

Penn Athletics Python SDK

Python wrapper around the Penn Athletics website to easily access athletics data.

License

This is published under the MIT license. See LICENSE.

Setup

  • Install redis
  • Create new virtualenv
  • Install requirments using 'pip install -r requirements.txt'
  • Run the penn athletics API server using 'python runserver.py'

Sports

View All Sports (IDs)

URL http://api.pennlabs.org/athletics
Response Formats JSON

View Available Years

URL http://api.pennlabs.org/athletics/{sportid}
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Response Formats JSON

Athletes

Roster

URL http://api.pennlabs.org/athletics/{sportid}/{year}/roster
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Response Formats JSON

Search

URL http://api.pennlabs.org/athletics/{sportid}/{year}
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Parameters All sports have name & hometown. Looking at a sample roster from each sport will show all available parameters to search by. May search by any number at once.
Response Formats JSON

Schedules

View Schedule

URL http://api.pennlabs.org/athletics/{sportid}/{year}/schedule
HTTP Methods GET
Current Sport ID's View Section on Sport IDs
Supported Years View Section on years
Response Formats JSON