pyexpander - a powerful macro processing language

Author: Goetz Pfeiffer (,


Pyexpander is a powerful macro processing language based on python. Instead of simple macro replacement it offers evaluation of arbitrary python expressions and execution of python code. Pyexpander is Turing Complete.


This software is copyrighted by the Helmholtz-Zentrum Berlin fuer Materialien und Energie GmbH (HZB), Berlin, Germany.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <>.


You find comprehensive documentation here:

Introduction and documentation


Here is the directory with tar and zip files, rpm and debian packages:

download pyexpander

Repository access

You can either access the software repository by a web interface:

browse pyexpander repository.

Or, if you plan to extend or improve pyexpander I would recommend that you get a clone of the repository with this command:

hg clone ssh:// pyexpander

You can then commit changes in your own repository copy.

If you plan to share these changes you can create a mercurial bundle and send it to my e-mail address.