Coder Social home page Coder Social logo

cqu-timetable-tools's Introduction

CQUniversity Timetable Tools

This repository contains tools designed to enhance the functionality of the CQUniversity Timetable. The following tools are included:

  • export-ics.py - exports timetable events as an iCalendar (RFC 5545) file, suitable for importing into most common calendar software.
  • export-json.py - exports timetable events as raw JSON data, suitable for consumption and further processing by other tools.

Requirements and installation

The scripts in this repository all require Python 3.5 or newer, as well as the dependency packages listed in the file requirements.txt.

To install the dependencies, simply run:

pip3 install -r requirements.txt

Exporting calendar events

Timetable events can be exported to iCalendar format using the script export-ics.py. The usage syntax is as follows (note that you may need to use python instead of python3 under Windows):

python3 export-ics.py OUTFILE.ICS CAMPUS TERM SUBJECT1 SUBJECT2 ... SUBJECTN

For example, to export the timetable events for the subject COIT11222 for Term 1 on the Cairns campus and store the results in a file called timetable.ics, you would run:

python3 export-ics.py timetable.ics CNS 1 COIT11222

Wildcards are also supported. For example, to export the timetable events for all IT subjects, you would run:

python3 export-ics.py timetable.ics CNS 1 COIT*

See the file common/Campus.py for a list of supported campus codes.

Exporting JSON data

The usage syntax of export-json.py is identical to that of export-ics.py. See the section Exporting calendar events for usage examples.

Legal

Copyright © 2019, Adam Rehn. Licensed under the MIT License, see the file LICENSE for details.

cqu-timetable-tools's People

Contributors

adamrehn avatar

Watchers

 avatar  avatar  avatar

Forkers

denfrost

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.