A graph data structure, for task management, in python
Install mindgraph from source code:
$ pip install git+https://github.com/capsulecorplab/mindgraph.git
>>> 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')
Optional (but recommended for viewing GitHub issues): Install the ZenHub for GitHub chrome extension.
- Fork it (https://github.com/yourusername/mindgraph/fork)
- Create your feature branch (
git checkout -b feature/logarithms
) - Commit your changes (
git commit -am 'Add some logarithms'
) - Push to the branch (
git push origin feature/logarithms
) - Create a new Pull Request