Skip to content

A graph data structure, for task management, in python

License

Notifications You must be signed in to change notification settings

cynful/mindgraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A graph data structure, for task management, in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%