Is there any scripting SVG editor?


Question

I would like to edit SVG files using some scripting language (preferably Python). In particular, I would like to merge two SVG files, add some annotations, and arrange them in a larger image. Is there any software available for such purposes?

Thanks,

Bartosz

UPDATE

I finally decided to use the approach proposed by nosklo. You can find the code of SVG handling python module on github repo. I also described how to use it in this post

1
7
5/15/2011 11:23:24 PM

Accepted Answer

You could use something like lxml - after all SVG files are XML. It's available from PyPI pip: https://pypi.python.org/pypi/lxml/

5
2/8/2016 12:45:42 AM

I don't know if you could do what you describe, but Inkscape supports some degree of scripting with Python.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon