A svgwrite python module is a tool by Manfred Moitzi.
To install this python module uses Python 3.4 version.
Then you need to install svgwrite with pip3.4:

This svgwrite is the only module that needs to be imported and then you can deal with this module.
See this simple example:

The result of this python script is this SVG file.
svgwrite_001
If you use the dir() then you can see more about this python module:

For example you can add some text:

This tutorial can also be found at this website: python-catalin.blogspot.ro

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.