A Python SVG parser and drawing module
Python
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:
https://docs.python.org/2/library/re.html#simulating-scanf
Also reused number_re in a couple of other places

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

README.md

SVG parser library

This is a SVG parser library written in Python.

Capabilities:

  • 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+