The Project Manager provides support for managing application based on Python
$ vim manage.py
from pypm import ProjectManager
pm = ProjectManager()
@pm.command(messages=dict(type=str, nargs='+', help='echo messages'))
def echo(messages):
print messages
if __name__ == '__main__':
import sys
pm.run_command(sys.argv[1:])
$ python manage.py echo hello world
['hello', 'world']
Install with pip:
$ sudo pip install git+https://github.com/myevan/pypm.git
Setup project directory with pip:
$ cd ~/Project
$ mkdir Tools
$ pip install git+https://github.com/myevan/pypm.git --target Tools
$ touch Tools/__init__.py
$ vim manage.py
from Tools.pypm import ProjectManager
...
$ git clone https://github.com/myevan/pypm.git
$ cd pypm
$ ./setup.py develop