MacroPy: Bringing Macros to Python. Quasiquotes, case classes, LINQ and more!

Hey All,

MacroPy ( is a project we've been working on, which gives you the ability to (very easily) perform AST manipulations on a Python program, and runs on a unmodified Python runtime (CPython 2.7 or PyPy 2.0).

We have a whole suite of demo macros, which I think are all pretty compelling use cases for macros in a language which traditionally doesn't have such functionality. They are pretty different from what comes up if you'd google "lisp macros"!

We think this is super cool, so hopefully you find it interesting. Looking forward to any feedback!