Giter VIP home page Giter VIP logo

hjson_to_gantt's Introduction

hjson_to_gantt

Introduction

hjson_to_gantt is a simple script with a very simple aim: produce a Gantt chart based on (H)JSON input. It is built upon the excellent python-gantt library.

See the accompanying blog post for a little more motivation.

Dependencies

pip install gantt fuzzyfinder hjson

Example

{
  projects: [
    {
      name: Project Alpha
      color: green
    }
  ]

  tasks: [
    {
      name: Design widget
      begin: 2016-10-14
      duration: 7,
      people: Farquaad
      project: alpha
    }
    {
      name: Set up widget production line
      begin: 2016-10-19
      duration: 6
      people: Zack
      project: alpha
    }
    {
      name: Manufacture widgets
      duration: 7
      people: Carrie
      deps: ["design widget", "widget prod line"]
      project: alpha
    }
  ]

  milestones: [
    {
      name: Widgets start shipping
      start: 2016-10-30
      deps: ["mftr widgets"]
      project: alpha
    }
  ]
}

You'll note that for specifying dependencies and projects, the full name doesn't need to be used. Thanks to fuzzy matching, you can just specify e.g. "mftr widgets" and have it match "Manufacture widgets".

To try out the example:

./hjson_to_gantt --begin-date 2016-10-10 --end-date 2016-11-13 example.hjson --name example

This will output example_daily.svg and example_weekly.svg.

A PNG rendering of example_daily.svg is shown below (Github doesn't allow embedded SVG):

Example Gantt chart

License

This script is released under the terms of the MIT license (see LICENSE). However, note that the python-gantt library this script uses is GPLv3+ meaning the combination is effectively GPLv3+.

hjson_to_gantt's People

Contributors

asb avatar

Watchers

James Cloos avatar zpeng1989 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.