Asynchronous API wrapper for PolyTech Schedule API
import asyncio
from aiospbstu import PolyScheduleAPI
api = PolyScheduleAPI()
async def main():
faculties = await api.get_faculties()
first_faculty = faculties[0]
print(first_faculty.name) # "Институт компьютерных наук и технологий"
groups = await first_faculty.get_groups()
schedule = await groups[0].get_schedule()
for day in schedule:
print(f'{day.date} - {len(day.lessons)} lessons')
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
$ pip install "https://github.com/MrMrRobat/aiospbstu/archive/master.zip"