pubq is an open source, MIT licensed, tool for working with python plugins for QGis.
pip install pubq
You can also download/clone the source, in which case you have to:
git clone https://github.com/pubq/pubq.git
python setup.py install
To contribute a patch clone the repo, create a new branch, install in develop mode:
python setup.py develop