A Python SVG parser and drawing module
Latest commit 3ea3384 Sep 9, 2014 @lesteve lesteve committed with Use more general regex for numbers to cover scientific notation
The regex was taken from:
Also reused number_re in a couple of other places

Signed-off-by: CJlano <cjlano+github@free.fr>


SVG parser library

This is a SVG parser library written in Python.


  • Parse SVG XML
  • apply any transformation (svg transform)
  • Explode SVG Path into basic elements (Line, Bezier, ...)
  • Interpolate SVG Path as a series of segments
  • Able to simplify segments given a precision using Ramer-Douglas-Peucker algorithm

Not (yet) supported:

  • SVG Path Arc ('A')
  • Non-linear transformation drawing (SkewX, ...)

License: GPLv2+