Module Documentation¶
All sumodules listed below can be found in the fachschaftsempfaenger/
directory in this project.
bus.py¶
bus.py contains the functionality to show upcoming
departures of buses.
-
fachschaftsempfaenger.bus.get_departures(stop)[source]¶ Get the next departures from a certain bus stop.
- parameters, types, return and return types::
- param stop
the busstop id of swtue
- type stop
int
- return
each departure consists of the time till the bus departs, the bus route and the destination of the bus.
- rtype
list of tuple
calendar.py¶
calendar.py contains the functionality to show upcoming
events of the student union of Computer Science in Tuebingen.
-
fachschaftsempfaenger.calendar.events(url)[source]¶ Yields a generator of the events in the ical file provided by the url
- parameters, types, return and return types::
- param url
url to a ical file
- type url
str
- return
generator of quadrupel in the format (date, time, title, location)
- rtype
generator
mensa.py¶
mensa.py contains the functionality to get the current menues from the
website of student services in Tuebingen.
-
fachschaftsempfaenger.mensa.load_data(url, mensa_id)[source]¶ Get today’s meals from a mensa of the student services in Tuebingen. The current mapping of the mensa IDs can be found under https://www.my-stuwe.de/wp-json/mealplans/v1/canteens/.
- parameters, types, return and return types::
- param url
url to the website of the mensa which should be shown.
- param mensa_id
ID (the JSON key) of the mensa to be parsed.
- type url
str
- return
the date which is loaded and a list of the meals or an information that the mensa is closed on this day.
- rtype
tuple of str and list of str