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
- Host: GitHub
- URL: https://github.com/petercollingridge/drawsvg
- Owner: petercollingridge
- Created: 2011-06-19T18:35:21.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T15:59:07.000Z (almost 7 years ago)
- Last Synced: 2025-03-23T19:22:54.425Z (11 months ago)
- Topics: python, python27, svg
- Language: Python
- Homepage: http://petercollingridge.co.uk/blog/python-svg-writer
- Size: 76.2 KB
- Stars: 36
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README
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