pluginbuilder - Create standalone Mac OS X plugins with Python

pluginbuilder is a Python package which will allow you to make standalone plugins from Python scripts.This plugin can then be used by an Objective-C application (through NSBundle). pluginbuilder is a fork of py2app, but without the distutils based command or the ability to create application bundles.

Why forking py2app just to remove stuff from it? Because the resulting code is much simpler (distutils sucks), which makes it much easier to maintain. The release of Python 3.2 broke py2app and being, I think, the only user of its “plugin” feature, I had to fix it myself and was thus exposed to the messiness of the code. I had to do something about it.

The logical name for such a fork of py2app would have been py2plugin, but a project named “pyplugin” already exists, hence this name.

Online Resources

Source code repository:
http://bitbucket.org/hsoft/pluginbuilder
PyPI Entry:
http://pypi.python.org/pypi/pluginbuilder/
Issue tracker:
http://bitbucket.org/hsoft/pluginbuilder/issues
Online Documentation (this doc):
http://www.hardcoded.net/docs/pluginbuilder

If you’re looking for help, pay special attention to the examples folder in the source, which demonstrates some (one in fact...) common use cases.

Table Of Contents

Next topic

Why plugins instead of apps?

This Page