LinkedInTwitterFacebook

The svgwrite python module – part 001.

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

Also 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