项目作者: capsulecorplab

项目描述 :
A graph data structure, for task management, in python
高级语言: Python
项目地址: git://github.com/capsulecorplab/mindgraph.git
创建时间: 2018-10-11T00:16:18Z
项目社区:https://github.com/capsulecorplab/mindgraph

开源协议:MIT License

下载


mindgraph

A graph data structure, for task management, in python

License: MIT
Build Status
Coverage Status
PRs Welcome

Usage

Install mindgraph from source code:

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

Example usage

  1. >>> import mindgraph as mg
  2. >>> project = mg.Project('learn all the things')
  3. >>> thing1 = project.append('1st thing')
  4. >>> thing2 = project.append('2nd thing')
  5. >>> thing3 = project.append('3rd thing')
  6. >>> project.remove(2)
  7. >>> thing1 = project[0]
  8. >>> thing1_1 = thing1.append('thing within a thing')
  9. >>> thing1_2 = thing1.append('thing blocking a thing')
  10. >>> thing1_1.blockedby(thing1_2)
  11. >>> thing2_1 = thing2.append('another thing within a thing')
  12. >>> thing2_2 = thing2.append('another thing blocking a thing')
  13. >>> thing2_2.blocking(thing2_1)
  14. >>> print(project)
  15. learn all the things:
  16. - 1st thing:
  17. - thing within a thing
  18. - thing blocking a thing
  19. - 2nd thing:
  20. - another thing within a thing
  21. - another thing blocking a thing

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

  1. >>> project.to_yaml('myproject.yaml')
  2. >>> 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