Skip to main content

UE Katowice class schedule utility library

Project description

UE Class schedule utility library

A utility library used to download, filter and export class schedule at University of Economics in Katowice. Imports data from "Wirtualna uczelnia".

Each students gets a constant schedule id which is used to generate the schedule.

You can get your ID by going to "Wirtualna uczelnia" > "Rozkład zajęć" > "Prezentacja harmonogramu zajęć" > "Eksport planu do kalendarza".

The url ends with /calendarid_XXXXXX.ics, the XXXXXX will be your ID.

Installation

pip install ue-schedule

Development

You can install dependencies in a virtualenv with pipenv

pipenv install

# for dev dependencies (flake8, pylint, black)
pipenv install --dev 

# switch to the virtualenv
pipenv shell

Usage

from ue_schedule import Schedule

# initialize the downloader
s = Schedule(schedule_id)

# get event list
schedule.get_events()

# get event list as iCalendar
schedule.get_ical()

# get event list as json
schedule.get_json()

Data is automatically fetched when exporting, but you can force fetch with

schedule.fetch()

If you need to dump the event list and load later

# dump the event list
events = schedule.dump_events()

# load the event list
schedule.load_events(events)

Project details


Download files

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

Files for ue-schedule, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size ue_schedule-1.0.4-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ue-schedule-1.0.4.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page