An open API service indexing awesome lists of open source software.

https://github.com/petercollingridge/drawsvg

Python module to generate SVG files
https://github.com/petercollingridge/drawsvg

python python27 svg

Last synced: 10 months ago
JSON representation

Python module to generate SVG files

Awesome Lists containing this project

README

          

Python module to create SVG files.
Add to /usr/lib/python2.7/ for easy use.

Draw a basic rectangle:

from DrawSVG import SVG
mySVG = SVG()

mySVG.addChildElement('rect', {'x':20, 'y':20, 'width':60, 'height':20})
mySVG.write('test.svg')

For more information, see the wiki:
https://github.com/petercollingridge/DrawSVG/wiki