Moksha provides templates for easily creating basic components.
$ paster moksha --help
Usage: /usr/bin/paster moksha [options]
Create new Moksha components
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-l, --livewidget Create an example Moksha LiveWidget
-c, --connector Create an example Moksha Connector
-u, --consumer Create an example Moksha Consumer
-C, --controller Create an example Moksha Controller
-P, --producer Create an example Moksha Producer
-p PACKAGE, --package=PACKAGE
package name for the code
-t TOPIC, --topic=TOPIC
The Moksha topic to utilize
Note
All of the above options can be mixed/matched and used to generate a plugin with different components.
$ paster moksha --livewidget --producer --consumer --controller
$ paver reinstall
See the TurboGears2 QuickStart Documentation as well as the Using Moksha with TurboGears2 example.