Skip to main content

A package for accessing the UMD API in Python

Project description

UMD API

API Source


UMD API Docs (umd_api/general)

https://beta.umd.io/

PlanetTerp (umd_api/planet_terp)

https://planetterp.com/api/

Weather (umd_api/weather)

https://weather.umd.edu

PyPI

https://pypi.org/project/umd-api

Installation

pip install umd-api

Initialization

from umd_api.general import Bus, Courses, Majors, Map, Professors 

bus = Bus()
courses = Courses()
majors = Majors()
map_ = Map()
professors = Professors()
from umd_api.planet_terp import Search, Grades, Professors, Courses

search = Search()
grades = Grades()
professors = Professors()
courses = Courses()
from umd_api.weather import Weather, Forecast

weather = Weather()
forecast = Forecast()

Modules

Not Up To Date

General

Bus

  • list_routes()
  • view_specific_routes(route_ids)
  • list_stops()
  • get_specific_stops(stop_ids : list)
  • current_bus_locations_by_route(route_id) (UMD.IO API IS BROKEN HERE)
  • bus_schedules(route_id)
  • get_arrivals_for_stop(route_id, stop_id)

Courses

  • list_courses(sort=None, page=None, per_page=None, semester=None, credits=None, dept_id=None, gen_ed=None)
  • list_minified_courses(sort=None, page=None, per_page=None, semester=None)
  • list_sections(sort=None, page=None, per_page=None, course_id=None, seats=None, open_seats=None, waitlist=None, semester=None)
  • view_specific_sections(section_ids : list)
  • view_specific_courses(course_ids : list, semester=None)
  • view_sections_for_course(course_ids : list, semester=None)
  • view_specific_sections_for_course(course_ids : list, section_ids : list)
  • list_semesters()
  • list_departments()

Majors

  • list_majors()

Map

  • list_buildings()
  • get_buildings(building_id : list)

Professors

  • get_professor(name: str, reviews=False)
  • get_all_professors(type=None, reviews=False, limit=100, offset=0)
PlanetTerp

Search

  • search(query, limit=30, offset=0)

Grades

  • get_grades(course=None, professor=None, semester=None, section=None)

Professors

  • get_professor(name: str, reviews=False)
  • get_all_professors(type=None, reviews=False, limit=100, offset=0)

Courses

  • get_course(name, reviews=False)
  • get_courses(department=None, reviews=False, limit=100, offset=0)
Weather

Weather

  • get_weather_data(station="", start_time="", end_time=")
  • get_hourly_forecast()
  • save_radar_gif()
  • get_weather_descrption()

Forecast

  • get_hourly_forecast()
  • get_weekly_forecast()

Wakatime (Time Spent Programming)

wakatime

wakatime

Combine the two for total time

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

umd_api-0.65.86.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umd_api-0.65.86-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file umd_api-0.65.86.tar.gz.

File metadata

  • Download URL: umd_api-0.65.86.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for umd_api-0.65.86.tar.gz
Algorithm Hash digest
SHA256 77e75a09b37ca9401495c316c9ef1a2c7789c16671e135b427dfb0f750f308d0
MD5 b2e9819981bcf21bc52850efce8edbc0
BLAKE2b-256 c527abc9a48c5b1aa0fbe97b94dacb48f4a16a2b8b27952702472b68543dc923

See more details on using hashes here.

File details

Details for the file umd_api-0.65.86-py3-none-any.whl.

File metadata

  • Download URL: umd_api-0.65.86-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for umd_api-0.65.86-py3-none-any.whl
Algorithm Hash digest
SHA256 4e95864e8c1a11bb978c8349c6d834f581ff22088962ad804d0033e26c9787e8
MD5 efaee2a0f1168e7d5fcea2f95d9df640
BLAKE2b-256 86a97593fe155a8a9a280c1c5f3fd36dfb88e7e6b0327c77b7fea32914054376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page