Skip to main content

Misc helper-scripts for creating and expanding Plone-Add-Ons.

Project description


Yet another command-line Plone-Add-On-Generator, just the way I like it:

No dependencies, no possible conflicts, some Python-methods, that's all.


Be as generic as possible, e.g. `addDep` registers a dependencie's name in an existing addon, assuming you are located *somewhere* in your addon, it's:

$ devgen addDep collective.bestaddonever

But, you can also append a path ending with your addon-name, then this command will create the addon also on the fly, if it doesn't exist already:

$ devgen addDep collective.bestaddonever my.addon

Be able to specify the location-path where the command should be executed, so I do not have to change directories, or switch to other (screen-)windows all the time, I'm lazy. Incredibly lazy:

$ devgen addDep collective.bestaddonever /over/the/rainbow/my.addon

Put the documentation into the doc-strings of the functions. Function's are building up upon another, so one can learn developing step-by-step, starting with the minimal base-skel.


With lovely pip, as easy as:

$ pip install -e git+

If you haven't installed pip yet, do it. For Ubuntu that is:

$ sudo apt-get install python-pip -y

Or for Fedora:

$ sudo yum install python-pip -y

Alternatively, you can also clone this repo and add it to buildout as a development-egg, that'll give you the executable in the instance's bin-directory:

$ cd path/to/instance

$ ./bin/devgen


Type the command alone, to get a help-text, what it can do for you:

$ devgen

That also lists the available functions, to get a function's help-text, type:

$ devgen [FUNCTION_NAME]


Create boilerplate for an addon, that can do nothing, but be installed in a Plonesite:

$ devgen addProfileSkel your.addon

Create it not in the directory, where you are, but somewhere else:

$ devgen addProfileSkel your.addon /some/where/else

Register another addon as a dependency to your addon:

$ devgen addDep collective.bestaddonever your.addon

Or, first locate into your addon, then you can omit the appended path (defaults to '.'):

$ cd your.addon
$ devgen addDep collective.bestaddonever

Create an installable Plone-Addon, with a stylesheet, a javascript and a template in a skin folder:

$ devgen addSkinSkel your.addon

In contrary to browser-based resources, you won't need to empty the browser's cache on a reload, after changing your stylesheet or javascript.

Create an installable Plone-Addon, with a stylesheet and a javascript in a browser's resource-folder.

$ devgen addBrowserSkel your.addon

Add docs-folder and read defaults for

$ devgen addMetaSkel

If a file '~/.buildout/devgen.cfg' is present, values will be read of it and inserted to Its format is expected to be like:

author=Arbi Trary




- Regard more than one dotted namespace for addon.

- Split functions into smaller reusable chunks.

- Possibly transfer:


0.1 (150920)

- Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for adi.devgen, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size adi.devgen-0.1.tar.gz (22.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page