Coder Social home page Coder Social logo

made2591 / google-task-gtd Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 34 KB

GoogleTask is a python utility to generate schedules based on a JSON dictionary with typical activities, in accordance with the commitments already taken during the day.

License: GNU General Public License v3.0

Python 100.00%
calendar google-calendar overlapping-events python python-utilities goals goal-stack-planner scheduler utility utilities

google-task-gtd's Introduction

GoogleTask

GoogleTask is a python utility to generate schedules based on a JSON dictionary with typical activities, in accordance with the commitments already taken during the day in specified calendars.

Run on Python v2. It has following dependencies:

  • google-api-python-client==1.6.2
  • httplib2==0.10.3
  • oauth2client==4.1.2
  • pyasn1==0.2.3
  • pyasn1-modules==0.0.9
  • rsa==3.4.2
  • six==1.10.0
  • uritemplate==3.0.0

After cloning, run the following (eventually in virtualenv):

pip install -r requirements.txt

Idea

I started this project some years ago after buying a Pebble Smartwatch (v2): it had a Timeline interface synced with my iPhone calendar so I create this lib to help me find motivations to carry out different projects without lose priorities (my thesis work). After a few months Google Goal came out so...you know :-). The idea is: using configuration file (look at default_one_tasks.json), create random task and try to fill the day with activities you want to carry on without overlap events already defined in your calendar.

Task

All the lib is defined around Task concept. The Task (class defined in lib package) represents an Activity: it has a name, a type, an importance, a list of daytimes in which it is more appropriate, a description that contains a count for several daytime slots in which the activity will be replicated during the day. It may also contain constraints.

Core

The idea is simple: first, split the day using parameters defined in configuration files. Second, randomly generate tasks and try to fit all timeslots. Each task is defined also in term of "minimum number of minutes" before discard, probabilities for generation, etc (look at default_one_tasks.json)

Merge

The lib provide API to save scheduling to a Google calendar, also considering events in one or more calendar (to fill the day without overlaps events you manually created outside the use of library).

Main

You can try the lib using this:

python day_scheduler.py

as a main. It provides a good start point to test the library and google calendar integration.

Features:

  • high parametric support to split each part of day in snapshot;
  • high parametric support to define task properties (type, priorities, even in each part of day);
  • pretty print of schedule for linux user (crontab job to see a proposal for each in your desktop);
  • print statistics to test configuration setup for each task;
  • google calendar integration to create schedule in defined calendar;

Todo:

  • improve errors handling;
  • improve algorithm to fill days;
  • add theaters / wheater forecast / tvshow support to provide better proposal based on day;
  • porting of logging (see project ****);

Improvements

  • parametric printing;
  • logic control;

google-task-gtd's People

Contributors

made2591 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.