Fractales, L-System implementation as open source

I’m looking for an open source implementation of L-System for 2D and 3D plants’ growth modelling.
I can’t find sources. I’m currently writing code for that but even if it doesn’t look too hard to handle, it takes a long time to code.