mb-make / python-svg

Python library to deal with scalable vector graphics (SVGs)
https://github.com/mb-make/python-svg/projects/2
GNU Affero General Public License v3.0
0 stars 0 forks source link

python-svg

This library imports and handles Scalable Vector Graphics (SVG). It does not aim for full file format support, only to enable format-aware scripting. Supports parsing essential tags, simple data extraction and some processing.

Primary use cases

...aimed to be supported, not necessarily working (yet).

File level: Import, inspect and export

The library enables loading i.e. importing an SVG from file and providing simplified access to it's content and properties e.g. the number of paths found.

DOM level: Find, create, edit and remove

The library shall enable jQuery-like search for SVG DOM elements and support basic manipulation.

Transformations

Path parsing

The library parses path definitions (the "d" attribute of path elements).

Read more about path commands here: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#path_commands

Testing

In a console run:

$ pytest -v

License

GNU Affero GPL v3, see LICENSE file.