A Python SVG parser and drawing module
Switch branches/tags
Nothing to show
Clone or download
lesteve and cjlano 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>
Latest commit 3ea3384 Sep 8, 2014


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+