MetaPython provides a macro and code quoting facility for the Python programming
language. It accomplishes this via the use of an import hook. MetaPython files
are denoted with an .mpy extension and may contain quoted code blocks, macro
definitions, and macro expansions.
For those who’d prefer not to use setuptools/easy_install.
For discussion of all things MetaPython. Feel free to post questions,
comments, or feature requests here.
Provides a good starting point for learning MetaPython. Following the
tutorial you will learn how to use MetaPython to create a macro-ized version
of collections.namedtuple from the standard library.
Report any bugs or feature requests here.
The initial release announcement of MetaPython is here, along with a simple
conditional compilation example/tutorial.