Reverse engineered prompt

GitHub

Build me a simple Inkscape extension in Python that makes one off drawing automation feel easy. I want to be able to open it from Inkscape, paste a few lines of Python or point it at a Python file, click Apply, and have it draw on the current canvas right away. It should come with friendly drawing helpers for common shapes like circles and rectangles, basic styling and transforms, and handy canvas info like width and height so simple scripts can place things without boilerplate. It would be great if common random functions are ready to use too, since a big use case is generating lots of repeated shapes with random colors or positions.

I also want the reverse workflow, where I can save an Inkscape drawing as a Python script that reproduces it later, even if some advanced Inkscape features are not supported yet. Please make it usable as a normal Inkscape extension, include a few example scripts and basic tests, and check current Inkscape extension docs online if you need to.

Have a live product UI? Try website reverse