GithubHelp home page GithubHelp logo

egeldenhuys / csv-to-calendar Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 7.0 21 KB

Upload CSV timetable to Google Calendar

License: GNU General Public License v3.0

Python 100.00%
university-of-pretoria timetable google-calendar csv

csv-to-calendar's Introduction

csv-to-calendar

Upload CSV timetable to Google Calendar

Setup and Usage

  1. Modify the timetable.csv template using Libreoffice Calc
    • Do not place text outside of the allocated time slots
    • Subjects that have the same name and are vertically adjacent will be merged
    • Colour represents the colour id in Google Calendar (See image below)
  2. Run pip install -r requirements.txt to install all the dependencies.
  3. Run python upload.py
    • Will open webpage to get token
    • Token saved in ~/.credentials/calendar-python-quickstart.json
    • Will parse the csv and upload events accordingly

Features

Auth

  • Opens browser to get Google OAuth token
  • Saves token to ~/.credentials/calendar-python-quickstart.json for future use (might want to delete this file after use)

CSV

  • Parse from CSV template. See timetable.csv
               | Monday                      | Tuesday   ...
    Start Time | Subject | Location | Colour | Subject | ...
    07:30      | COS 226 | HB 4-1   |    7   | ...
    ...
    17:30
    

Calendar

  • Will operate on the calendar named csv-to-calendar
  • Everytime upload.py is run it will be cleared or created if it does not exist

Events

  • Recur weekly until 2017-11-02
  • Notification 15 minutes before each event
  • Colour can be specified in timetable.csv
    • See the colour Grid

Colours

colour grid

Images

Before

csv

After

calendar

Warning

This script requests Read/Write access to your calendar. If used incorrectly it may delete all the calendars/events on your account.

csv-to-calendar's People

Contributors

egeldenhuys avatar thealphadollar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csv-to-calendar's Issues

Take better care of OAuth token

Currently the token is stored at ~/.credentials/calendar-python-quickstart.json.

The token has write access so it will be better to store it where the user is aware of the sensitive file.

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.