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
You can then run the ue-schedule tool from your shell like
ue-schedule <schedule_id>
Development
You can install dependencies in a virtualenv with poetry
poetry install
# switch to the virtualenv
poetry 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)
If there's a need to format the list acquired with .get_events(), you can use format functions
# format event list as ical file
Schedule.format_as_ical(events)
# format event list as json
Schedule.format_as_json(events)
Release files for ue-schedule 2.2.0.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ue-schedule-2.2.0.post1.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ue_schedule-2.2.0.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / ue-schedule-2.2.0.post1.tar.gz
| Download URL | ue-schedule-2.2.0.post1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aea943a6e711a7dfc565e384ba6e1d5706d1cb135adfc8109a4377a4099e6bce
|
|
BLAKE2b-256 checksum How to use checksums |
aa85b3200d552a0a5a103bab6ed38ffdbb3847cb1111b06a5eb8c2b9a272f0d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.7 Linux/5.14.8-arch1-1
|
Release files / ue_schedule-2.2.0.post1-py3-none-any.whl
| Download URL | ue_schedule-2.2.0.post1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ef8d362d378b074c175c9f3206866d04cc2308f6d2c49785b9d165c20fa9796
|
|
BLAKE2b-256 checksum How to use checksums |
164106e7e943e987782c6d6d277c47ab38ce746f2e9dcad19c5465f187bb1cd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.9.7 Linux/5.14.8-arch1-1
|