Git Product home page Git Product logo

mindgraph's Introduction

mindgraph

A graph data structure, for task management, in python

License: MIT Build Status Coverage Status PRs Welcome

Usage

Install mindgraph from source code:

$ pip install git+https://github.com/capsulecorplab/mindgraph.git

Example usage

>>> import mindgraph as mg

>>> project = mg.Project('learn all the things')
>>> thing1 = project.append('1st thing')
>>> thing2 = project.append('2nd thing')
>>> thing3 = project.append('3rd thing')

>>> project.remove(2)

>>> thing1 = project[0]
>>> thing1_1 = thing1.append('thing within a thing')
>>> thing1_2 = thing1.append('thing blocking a thing')
>>> thing1_1.blockedby(thing1_2)

>>> thing2_1 = thing2.append('another thing within a thing')
>>> thing2_2 = thing2.append('another thing blocking a thing')
>>> thing2_2.blocking(thing2_1)

>>> print(project)
learn all the things:
- 1st thing:
  - thing within a thing
  - thing blocking a thing
- 2nd thing:
  - another thing within a thing
  - another thing blocking a thing

Projects can be exported to, or imported from, a yaml file for external storage:

>>> project.to_yaml('myproject.yaml')
>>> revivedproject = mg.read_yaml('myproject.yaml')

Contribute

Optional (but recommended for viewing GitHub issues): Install the ZenHub for GitHub chrome extension.

  1. Fork it (https://github.com/yourusername/mindgraph/fork)
  2. Create your feature branch (git checkout -b feature/logarithms)
  3. Commit your changes (git commit -am 'Add some logarithms')
  4. Push to the branch (git push origin feature/logarithms)
  5. Create a new Pull Request

mindgraph's People

Contributors

capsulecorplab avatar yamad avatar solomon-b avatar abelarm avatar mohitabz avatar redmoon32 avatar sibidass avatar

Watchers

cynthia kwok 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.