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

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)

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

ue-schedule-2.1.5.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

ue_schedule-2.1.5-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ue-schedule-2.1.5.tar.gz.

File metadata

  • Download URL: ue-schedule-2.1.5.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.14.2-zen1-2-zen

File hashes

Hashes for ue-schedule-2.1.5.tar.gz
Algorithm Hash digest
SHA256 f3c45f84846d0b9f439690cee943554c24118a1cef530204ce6f5e1a3c46fb7a
MD5 660d0c5acf9513960fc39eed3c529d59
BLAKE2b-256 b88721f17f4cb4206203c3687956122a7ffe8554c85c543bfc21c2f9a81e1d55

See more details on using hashes here.

File details

Details for the file ue_schedule-2.1.5-py3-none-any.whl.

File metadata

  • Download URL: ue_schedule-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.14.2-zen1-2-zen

File hashes

Hashes for ue_schedule-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a77860e0da38d2dd7fd64ad7e14e1851215470e9e6334b7c49af1eb11cb99327
MD5 0eccf7c59c4215a9733de56c4d567fa9
BLAKE2b-256 d02c89c4f8ddd7933376103780e26548d1789c1be08a4460788e1a6df15a9818

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