Skip to main content

Check for course overlaps at Graz University of Technology

Project description

tug-overlap-checker

Check for course overlaps at Graz University of Technology 🎓

The tool will get the dates and times for specified courses, compare them, and report any conflicts.

Installation

pip install tug-overlap-checker

Usage

$ tug-overlap-checker -h
usage: tug-overlap-checker [-h] courseid [courseid ...]

positional arguments:
  courseid    course ids

optional arguments:
  -h, --help  show this help message and exit

The courseid argument can be repeated to specify multiple. This is the ID that is found in the URL of TUGO, not the visually displayed class ID. This may be changed in the future so the conventional IDs can be used.

E.g.:
https://online.tugraz.at/tug_online/ee/ui/ca2/app/desktop/#/slc.tm.cp/student/courses/xxxxxx <--

Example Usage

$ tug-overlap-checker 226888 221424 225088
Found course: Information and Communication Management, with 3 appointments.
Appointment: date: 2020-06-17, time range: ['13:30', '21:00']
Appointment: date: 2020-06-18, time range: ['09:30', '20:00']
Appointment: date: 2020-06-19, time range: ['08:00', '14:00']

Found course: Entrepreneurship, with 6 appointments.
Appointment: date: 2020-04-01, time range: ['14:00', '17:30']
Appointment: date: 2020-05-04, time range: ['09:00', '18:00']
Appointment: date: 2020-05-05, time range: ['09:00', '18:00']
Appointment: date: 2020-05-06, time range: ['09:00', '18:00']
Appointment: date: 2020-05-07, time range: ['09:00', '18:00']
Appointment: date: 2020-05-08, time range: ['09:00', '18:00']

Found course: Marketing Management, with 7 appointments.
Appointment: date: 2020-04-27, time range: ['12:00', '12:45']
Appointment: date: 2020-05-04, time range: ['09:00', '18:00']
Appointment: date: 2020-05-07, time range: ['08:15', '15:00']
Appointment: date: 2020-05-11, time range: ['08:15', '18:00']
Appointment: date: 2020-05-13, time range: ['08:15', '15:00']
Appointment: date: 2020-05-18, time range: ['08:15', '18:00']
Appointment: date: 2020-05-20, time range: ['08:15', '15:00']

Comparing "Information and Communication Management" and "Entrepreneurship"...
No date overlap.
Comparing "Information and Communication Management" and "Marketing Management"...
No date overlap.
Comparing "Entrepreneurship" and "Marketing Management"...
Found date overlap.
Conflicting dates:
2020-05-07
2020-05-04
Checking for time overlap on "2020-05-07"...
Times to check: ['09:00', '18:00'], ['08:15', '15:00']
Found time overlap.
For courses Entrepreneurship and Marketing Management on 2020-05-07
Checking for time overlap on "2020-05-04"...
Times to check: ['09:00', '18:00'], ['09:00', '18:00']
Found time overlap.
For courses Entrepreneurship and Marketing Management on 2020-05-04

Background

Due to many conflicting classes this semester and seeing how comparing them manually is a PITA, this tool was created to automate the process.

Since many different universities use the same online system, this may very well also work with other universities' sites like KFU. Changing the access URL is necessary for this though.

Unfortunately there is no API for TUGO, or at least none that is easily accessible for a small project like this (since Studo must have one), therefore the data is scraped from the website at generous intervals.

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

tug-overlap-checker-1.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

tug_overlap_checker-1.0.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file tug-overlap-checker-1.0.4.tar.gz.

File metadata

  • Download URL: tug-overlap-checker-1.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for tug-overlap-checker-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3384ec4f6895d239957a25ecd4f2df5bf8a0db4746604986362832d7cdebb0a2
MD5 709932d0339e4f499b1cdd83c043d295
BLAKE2b-256 e8b98e005134144b14f6ec3171c98477fe472f21a497d0a94c76587efb79e755

See more details on using hashes here.

File details

Details for the file tug_overlap_checker-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: tug_overlap_checker-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for tug_overlap_checker-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 df981a1c92ed800af2816eae78587f290aeb708b5b4a9932ba69bec1aee02454
MD5 67f2fa9d02d2e3935e29c39953e27d57
BLAKE2b-256 a22b609b925fd1f29ce90c49b53f51d7b9ec086f5398fa3e548d2a6f0f990b46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page